68% plugin-central

Code Review | Plugin Central

WordPress plugin Plugin Central scored 68% from 54 tests.

About plugin

  • Plugin page: plugin-central
  • Plugin version: 2.5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.3.1
  • WordPress version: 6.3.1
  • First release: Apr 3, 2008
  • Latest release: Nov 23, 2015
  • Number of updates: 44
  • Update frequency: every 63.4 days
  • Top authors: freediver (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active / 217,608 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.95MB] [CPU: ▼34.08ms] Passed 4 tests

A check of server-side resources used by Plugin Central
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.81 ▼1.96
Dashboard /wp-admin3.00 ▼0.3123.68 ▼26.80
Posts /wp-admin/edit.php3.00 ▼0.3623.78 ▼24.09
Add New Post /wp-admin/post-new.php3.00 ▼2.8923.24 ▼71.92
Media Library /wp-admin/upload.php3.00 ▼0.2321.99 ▼13.49
Plugin Central /wp-admin/plugins.php?page=plugin-central/plugin-central.class.php3.0022.53

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Plugin Central: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲11514.74 ▲0.121.69 ▼0.1443.22 ▼6.66
Dashboard /wp-admin2,256 ▲804.90 ▼0.95112.06 ▼2.0539.51 ▼8.19
Posts /wp-admin/edit.php2,099 ▲102.02 ▼0.1135.94 ▼1.3536.75 ▲2.42
Add New Post /wp-admin/post-new.php1,529 ▼423.07 ▼0.21670.08 ▼23.1361.93 ▲0.73
Media Library /wp-admin/upload.php1,401 ▲194.30 ▲0.1595.02 ▼5.5441.34 ▼2.35
Plugin Central /wp-admin/plugins.php?page=plugin-central/plugin-central.class.php8532.0324.8931.57

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/plugins.php?page=plugin-central/plugin-central.class.php
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

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
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 trailingslashit() in wp-content/plugins/plugin-central/plugin-central.class.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Plugin in action on the Dashboard), #2 (Multiple plugin installs)
You can take inspiration from this readme.txt

plugin-central/plugin-central.php Passed 13 tests

The main PHP script in "Plugin Central" version 2.5.1 is automatically included on every request by WordPress
134 characters long description:
Receive dashboard plugin update notifications with changelogs, update all plugins at once, move your plugins from one blog to another.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected824 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP219642776
CSS19048

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity126.00
▷ Minimum class complexity126.00
▷ Maximum class complexity126.00
Average method complexity6.95
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
8 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
i/mwp250_2.png22.54KB21.97KB▼ 2.52%
i/home.png0.94KB0.85KB▼ 9.97%
i/help.png0.97KB0.98KB0.00%
i/twit.png0.71KB0.80KB0.00%
i/idea.png0.81KB0.70KB▼ 13.99%