84% wpcore

Code Review | WPCore Plugin Manager

WordPress plugin WPCore Plugin Manager scored84%from 54 tests.

About plugin

  • Plugin page: wpcore
  • Plugin version: 1.9.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.2.2
  • WordPress version: 6.3.1
  • First release: Jul 13, 2014
  • Latest release: Jun 10, 2023
  • Number of updates: 73
  • Update frequency: every 44.6 days
  • Top authors: stueynet (100%)

Code review

54 tests

User reviews

31 reviews

Install metrics

10,000+ active /144,299 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼5.71ms] Passed 4 tests

An overview of server-side resources used by WPCore Plugin Manager
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.65 ▼2.26
Dashboard /wp-admin3.42 ▲0.1251.46 ▼3.94
Posts /wp-admin/edit.php3.47 ▲0.1256.28 ▲1.68
Add New Post /wp-admin/post-new.php5.94 ▲0.0587.30 ▼18.30
Media Library /wp-admin/upload.php3.28 ▲0.0541.21 ▲3.56

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 56 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
wpcore_keys
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

WPCore Plugin Manager: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲6513.33 ▼0.974.57 ▲2.7144.31 ▼1.02
Dashboard /wp-admin2,214 ▲295.98 ▲0.1097.96 ▼8.8480.84 ▲38.15
Posts /wp-admin/edit.php2,103 ▲142.03 ▼0.0143.28 ▲6.2938.63 ▲1.34
Add New Post /wp-admin/post-new.php1,538 ▲1923.19 ▼0.21696.37 ▲26.3353.98 ▼9.60
Media Library /wp-admin/upload.php1,396 ▲84.17 ▲0.02102.15 ▼16.0770.99 ▲20.54

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpcore/lib/TGM-Plugin-Activation-2.6.1/example.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/wpcore/views/settings.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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
Attributes that need to be fixed:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

wpcore/wpcore.php Passed 13 tests

This is the main PHP file of "WPCore Plugin Manager" version 1.9.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
82 characters long description:
Keep all your favorite plugins in one place and install them instantly on any site

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected8,112 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
PO File171,4491,9934,842
PHP86262,0052,382
Markdown51860780
CSS2142590
JavaScript18518

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity42.44
▷ Minimum class complexity1.00
▷ Maximum class complexity207.00
Average method complexity4.01
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods124
▷ Static methods118.87%
▷ Public methods9879.03%
▷ Protected methods2318.55%
▷ Private methods32.42%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/key.png107.07KB38.01KB▼ 64.50%
assets/img/icon.png0.42KB0.24KB▼ 43.29%