PublishThis Feed API
It provides options to import Publishthis content as node on your Drupal site and show publishthis content as a Block. Please review this module.
Link to the project : https://www.drupal.org/sandbox/sandeepscs/2430641
git clone --branch publishthis_review http://git.drupal.org/sandbox/sandeepscs/2430641.git publishthis_feed_api
cd publishthis_feed_api
Comments
Comment #1
sandeepscs commentedComment #2
ajitsMoving this to the correct issue queue. Some of the useful links that you need to follow
Please make sure you go through these links and other links from these pages and make changes to the project accordingly. After you do so, you could change the status of this issue to needs review.
Comment #3
Farreres commentedYou should change your git clone line. You have written the maintainer git clone line. To correct this you shold go to your project page, version control tab, and there deselect the administrator option. Then press show and your git clone line will change. This is the line you should post in the project application issue.
Also there is a lot of information missing in the application. Please follow the instructions in your module page.
Comment #4
sandeepscs commentedComment #5
sandeepscs commented@Ajit, I have done all changes, as per your suggestion. Please review it.
Also Farreres, I have done Git clone line change.
Comment #6
ajitsAssigning myself for a review.
Comment #7
PA robot commentedWe are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #8
ajalan065 commentedHi sandeepscs,
1. Please remove any one README file from your application. There are duplicates.
2. You may remove DEVELOPER.txt and include those two lines in your README itself under a Note.
3. Please correct the Pareview errors of your application.
4. Please keep all the css files at one place. Move the form_theme.css to css folder.
5. In your .module file, under hook_block_configure(), you have called drupal_add_js() without any parameters. Please give the file name there which you want to invoke. Similar is the case in publishthis.api under get_bundle_auto_contents().
6. Instead of calling drupal_get_path() so many times, you can call it once and save it in a constance, and use it each time whenever required as you have done for other cases.
define('PUBLISHTHIS_MODULE', drupal_get_path('module', 'publishthis'));Could not get the opportunity to go through the project in details. Hope to get the time soon.
@AjitS, please check for the security requirements.
Comment #9
mangeshrs commentedI have resolved the problems reported by ajalan065
Comment #10
ajalan065 commentedHi mangeshrs,
This application was submitted by sandeepscs.
So how come you resolved these issues??
Comment #11
sandeepscs commentedHi Ajalan,
I have resolved all issues. Please verify.
Thanks
Comment #12
gaja_daran commentedHi,
Manual Review
1. Getting 404 error on clicking following links in publishthis setting page
Publishthis block setting
Publishthis curated content
Publishthis automated (feed) content
2. I am seeing this module under core package. Kindly move into corresponding package.
Comment #13
sandeepscs commentedHi Gaja,
We have changed ifo file to move from core to Publishthis package.
Have you set permission for access above URL?
Comment #14
ajitsAutomated Review
There are number of issues reported by pareview. Please have a look at them and resolve them.
Note that perfect adherence to Drupal Coding Standard is NOT a reason to block an application, except for total disregard of them. However, modules should follow them as closely as possible.
Manual Review
The way you have added the JS code to the form is not ideal.
Eg. In
get_bundle_auto_contents:This could expose the module to security loophole, if the values returned in the variables
$image_path, and$pagecould be manipulated.Note: I could not test this due to the issues mentioned below. There is a possiblity of this being a false positive.
The ideal way to add JS to a form is using the
#attachedattribute.include_onceat the start of publishthis.module. The Drupal way of adding external files is by using themodule_load_includefunction.The recommended way to include such files is to add them to the .info file as follows:
publishthis.incfile, the functions should be prefixed using the module name to avoid namespace conflicts.admin/config/content/publish/deleteshowed a WSOD. The following error messages were displayed on navigating to the other page:Fix the directory structure so that it looks something like the following:
Remove the duplicate README file.
hook_initis not required / reliable. The JS and CSS files could also be added using the .info file as mentioned above.admin/config/development/publishthisthere should be a message displayed to the user (eg. "Your configurations have been saved"). I was not sure if anything happened when I first submitted the form.admin/config/development/curatedbundlecontentandadmin/config/development/bundleautocontentdisplayed the following warning message with nothing else on the page:I was not able to test the module further due to this.
admin/config/development. These could live underadmin/config/servicesIMO because it makes service calls. Also, the menus could be displayed as tabs with a common parent, which makes it easy for the user to navigate between them.drupal_install_schemainside the implementation ofhook_install. Drupal installs the schema automatically. Similarly,drupal_uninstall_schemais also not necessary.hook_schemathere are many TODO. Eg.TODO: please describe this table!.Please make sure you have correct description given to the table and columns.
hook_uninstallmake sure you delete all the variables defined by the module.define("PUBLISHTHIS_URL", "admin/config/publishthis");. It left the module code hard to read and understand; I had to go to and fro from publishthis.inc where these constants are defined, and the other files where they have been used (mainly the module file). Most of these constants could be removed. Just a recommendation.publishthis_as_block_settings_formcould returnsystem_settings_form, with appropriate variable name.get_publish_thisdatamakes curl request to the API. It is recommended to usedrupal_http_requestfunction to not have dependency on PHP curl. Note: This is not so important as guzzlehttp library in Drupal 8 uses CURL internally.The starred items (*) are fairly big issues and warrant going back to Needs Work. Items marked with a plus sign (+) are important and should be addressed before a stable project release. The rest of the comments in the code walkthrough are recommendations.
If added, please don't remove the security tag, we keep that for statistics and to show examples of security problems.
This review uses the Project Application Review Template.
Comment #15
ajitsAlso check for the issues mentioned by @ajalan065
Comment #16
PA robot commentedClosing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).
I'm a robot and this is an automated message from Project Applications Scraper.