10% category-contributors

Code Review | Category Contributors

WordPress plugin Category Contributors scored10%from 54 tests.

About plugin

  • Plugin page: category-contribu...
  • Plugin version: 2017.08.13
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.8.0
  • WordPress version: 6.3.1
  • First release: Apr 1, 2013
  • Latest release: Jul 13, 2017
  • Number of updates: 13
  • Update frequency: every 120.3 days
  • Top authors: christopherross (69.23%)horshipsrectors (38.46%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,151 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/category-contributors/category-contributors.php+27
    Methods with the same name as their class will not be constructors in a future version of PHP; CategoryContributorsWidget has a deprecated constructor

Server metrics [RAM: ▼1.93MB] [CPU: ▼54.87ms] Passed 4 tests

Analyzing server-side resources used by Category Contributors
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.394.13 ▼36.64
Dashboard /wp-admin2.09 ▼1.255.77 ▼52.67
Posts /wp-admin/edit.php2.09 ▼1.266.20 ▼40.33
Add New Post /wp-admin/post-new.php2.09 ▼3.805.60 ▼89.84
Media Library /wp-admin/upload.php2.09 ▼1.145.13 ▼27.08

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_categorycontributorswidget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Category Contributors
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.32 ▼1.331.54 ▼0.5443.35 ▼0.68
Dashboard /wp-admin2,206 ▲185.86 ▼0.0499.69 ▼17.2939.66 ▼7.43
Posts /wp-admin/edit.php2,092 ▲31.97 ▼0.0442.14 ▲3.8634.35 ▼5.47
Add New Post /wp-admin/post-new.php1,514 ▼517.42 ▼5.92644.37 ▼22.4352.42 ▼3.45
Media Library /wp-admin/upload.php1,388 ▼04.20 ▲0.0595.50 ▼9.8140.42 ▼6.11

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/category-contributors/category-contributors.php+27
    Methods with the same name as their class will not be constructors in a future version of PHP; CategoryContributorsWidget has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_categorycontributorswidget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/category-contributors/category-contributors.php:27

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Invalid URI found ("")
You can look at the official readme.txt

category-contributors/category-contributors.php Passed 13 tests

"Category Contributors" version 2017.08.13's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
122 characters long description:
Displays a list of contributors from a category, and on posts will list authors who have contributed to the same category.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected86 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1332286

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity5.25
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin