94% add-contributor

Code Review | Add Contributor

WordPress plugin Add Contributor scored 94% 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: 5.9.2
  • 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,556 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼303.99ms] 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.54 ▲0.0352.02 ▲0.68
Dashboard /wp-admin3.43 ▲0.0232.70 ▼1.31
Posts /wp-admin/edit.php3.66 ▲0.0237.00 ▼1.19
Add New Post /wp-admin/post-new.php6.90 ▼0.0792.04 ▼1,213.59
Media Library /wp-admin/upload.php3.32 ▲0.0223.77 ▲0.14
Add Contributor /wp-admin/tools.php?page=add-contributor-menu3.2822.47

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Add Contributor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,768 ▲1415.79 ▲0.185.74 ▼0.702.42 ▼0.64
Dashboard /wp-admin2,894 ▲336.20 ▲0.08120.94 ▼11.53154.76 ▼8.97
Posts /wp-admin/edit.php2,690 ▼43.24 ▲0.0162.76 ▼0.94135.16 ▼10.40
Add New Post /wp-admin/post-new.php1,664 ▲316.21 ▼0.67410.78 ▲5.08156.06 ▲3.56
Media Library /wp-admin/upload.php1,703 ▲55.48 ▼0.02147.55 ▲8.46186.18 ▲1.69
Add Contributor /wp-admin/tools.php?page=add-contributor-menu1,1932.5555.20115.40

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > 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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: Please a description for screenshot #1 in add-contributor/assets to your readme.txt
  • Donate link: Please fix this invalid url: ""
You can take inspiration from this readme.txt

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

This is the main PHP file of "Add Contributor" version 1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
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
Good job! No executable or dangerous file extensions detected195 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1188151
JavaScript101239
CSS1005

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
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 were not PNG files found in your plugin