78% add-contributor

Code Review | Add Contributor

WordPress plugin Add Contributor scored78%from 54 tests.

About plugin

  • Plugin page: add-contributor
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0
  • WordPress version: 6.3.1
  • First release: Dec 23, 2011
  • Latest release: Sep 10, 2014
  • Number of updates: 18
  • Update frequency: every 55.2 days
  • Top authors: dkukral (72.22%)Droyal (27.78%)jboydston (11.11%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,804 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.26ms] Passed 4 tests

This is a short check of server-side resources used by Add Contributor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0239.51 ▼1.02
Dashboard /wp-admin3.33 ▲0.0249.48 ▼2.76
Posts /wp-admin/edit.php3.38 ▲0.0253.79 ▲11.15
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.23 ▼17.17
Media Library /wp-admin/upload.php3.25 ▲0.0235.53 ▼0.07
Add Contributor /wp-admin/tools.php?page=add-contributor-menu3.2231.80

Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Add Contributor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.76 ▲0.411.80 ▲0.1540.84 ▼8.82
Dashboard /wp-admin2,210 ▲224.85 ▼0.06111.91 ▼5.3839.71 ▼3.33
Posts /wp-admin/edit.php2,096 ▲71.99 ▼0.0343.06 ▲4.0033.71 ▼4.20
Add New Post /wp-admin/post-new.php1,536 ▲1723.24 ▼0.08650.08 ▼4.2581.61 ▼10.56
Media Library /wp-admin/upload.php1,383 ▼54.21 ▲0.0199.19 ▼14.8742.73 ▼2.23
Add Contributor /wp-admin/tools.php?page=add-contributor-menu9201.7725.9827.77

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=add-contributor-menu
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+204
    Undefined offset: 0
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=add-contributor-menu
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+205
    Trying to get property 'guid' of non-object
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=add-contributor-menu
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+221
    Trying to get property 'ID' of non-object
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=add-contributor-menu
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+222
    Trying to get property 'post_title' of non-object

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/add-contributor/add-contributor.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: Please a description for screenshot #1 in add-contributor/assets to your readme.txt
  • Donate link: Invalid URI ("")
Please take inspiration from this readme.txt

add-contributor/add-contributor.php Passed 13 tests

Analyzing the main PHP file in "Add Contributor" version 1.4
56 characters long description:
Plugin allows Editor and Admin roles to add Contributors

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin195 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1188151
JavaScript101239
CSS1005

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin