77% wp-org-plugin-stats

Code Review | WP.org Plugin Stats

WordPress plugin WP.org Plugin Stats scored77%from 54 tests.

About plugin

  • Plugin page: wp-org-plugin-stats
  • Plugin version: 1.0.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Dec 22, 2015
  • Latest release: Aug 21, 2023
  • Number of updates: 10
  • Update frequency: every 279.9 days
  • Top authors: Litonice13 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,029 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.21MB] [CPU: ▲1,053.45ms] 50% from 4 tests

This is a short check of server-side resources used by WP.org Plugin Stats
Please take the time to fix the following items
  • CPU: You should keep total CPU usage under 500.00ms (currently 1,185.58ms on /wp-admin/options-general.php?page=wp-org-plugin-stats-recommended-plugins)
  • Extra CPU: The extra CPU usage should be kept under 200.00ms (currently 1,053.45ms on /wp-admin/options-general.php?page=wp-org-plugin-stats-recommended-plugins)
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.19691.31 ▲652.61
Dashboard /wp-admin3.60 ▲0.251,453.87 ▲1,394.15
Posts /wp-admin/edit.php3.60 ▲0.241,229.87 ▲1,187.06
Add New Post /wp-admin/post-new.php6.08 ▲0.191,290.55 ▲1,185.37
Media Library /wp-admin/upload.php3.43 ▲0.201,221.25 ▲1,188.75
Recommended /wp-admin/options-general.php?page=wp-org-plugin-stats-recommended-plugins3.401,185.58

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 13 new options
New WordPress options
jltwporgst_notice_ask_for_rating
jltwporgst_activation_time
jltwporgst_notice_what_we_collect
widget_recent-posts
widget_recent-comments
wp_org_plugin_stats_version
jltwporgst_sheet_promo_data
jltwporgst_sheet_promo_data_hash
theysaidso_admin_options
db_upgraded
...

Browser metrics Passed 4 tests

WP.org Plugin Stats: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,945 ▲19914.45 ▲0.061.69 ▲0.1137.85 ▲0.33
Dashboard /wp-admin2,352 ▲1605.90 ▲0.92102.24 ▼12.4036.94 ▼4.04
Posts /wp-admin/edit.php2,187 ▲982.17 ▲0.1234.60 ▼2.7131.62 ▼1.61
Add New Post /wp-admin/post-new.php1,620 ▲8721.13 ▼2.07628.17 ▲49.0956.50 ▲5.40
Media Library /wp-admin/upload.php1,486 ▲984.19 ▲0.0194.21 ▼1.1640.47 ▼1.97
Recommended /wp-admin/options-general.php?page=wp-org-plugin-stats-recommended-plugins1,2672.0128.7829.42

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 13 options
    • jltwporgst_sheet_promo_data
    • jltwporgst_notice_subscribe
    • jltwporgst_sheet_promo_data_hash
    • wp_org_plugin_stats_version
    • jltwporgst_activation_time
    • widget_recent-posts
    • db_upgraded
    • jltwporgst_notice_ask_for_rating
    • widget_recent-comments
    • theysaidso_admin_options
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means 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
  • 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'JLTWPORGST\\Inc\\Classes\otifications\\Model\otice' not found in wp-content/plugins/wp-org-plugin-stats/Inc/Classes/Notifications/What_We_Collect.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'JLTWPORGST\\Inc\\Classes\otifications\\Model\otice' not found in wp-content/plugins/wp-org-plugin-stats/Inc/Classes/Notifications/Subscribe.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'JLTWPORGST\\Libs\\RowLinks' not found in wp-content/plugins/wp-org-plugin-stats/Inc/Classes/Row_Links.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'JLTWPORGST\\Libs\\Recommended' not found in wp-content/plugins/wp-org-plugin-stats/Inc/Classes/Recommended_Plugins.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'JLTWPORGST\\Inc\\Classes\otifications\\Model\\Popup' not found in wp-content/plugins/wp-org-plugin-stats/Inc/Classes/Notifications/Upgrade_Notice.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/wp-org-plugin-stats/wp-org-plugin-stats.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'JLTWPORGST\\Libs\\Upgrader' not found in wp-content/plugins/wp-org-plugin-stats/Inc/Classes/Upgrade_Plugin.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'JLTWPORGST\\Inc\\Classes\otifications\\Model\otice' not found in wp-content/plugins/wp-org-plugin-stats/Inc/Classes/Notifications/Ask_For_Rating.php:12

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=wp-org-plugin-stats-recommended-plugins
    • > Javascript (severe) in unknown
    /wp-content/plugins/wp-org-plugin-stats/assets/js/wp-org-plugin-stats-admin.js?ver=1.0.6 74:4 Uncaught ReferenceError: tinymce is not defined
    • > GET request to /wp-admin/options-general.php?page=wp-org-plugin-stats-recommended-plugins
    • > Network (severe)
    https://ps.w.org/ultimate-blocks-for-gutenberg/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: wordpress plugin directory, plugin data, wordpress plugin data, plugin directory, plugin list

wp-org-plugin-stats/wp-org-plugin-stats.php 85% from 13 tests

The principal PHP file in "WP.org Plugin Stats" v. 1.0.6 is loaded by WordPress automatically on each request
The following require your attention:
  • Domain Path: The domain path should be prefixed with a forward slash character ("/languages/")
  • Domain Path: Use only dashes and lowercase characters for the domain path ("languages/")

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
Good job! No executable or dangerous file extensions detected3,872 lines of code in 41 files:
LanguageFilesBlank linesComment linesLines of code
PHP387861,4843,079
CSS211813606
JavaScript1208187

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity10.79
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.45
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces8
Interfaces0
Traits2
Classes27
▷ Abstract classes414.81%
▷ Concrete classes2385.19%
▷ Final classes14.35%
Methods198
▷ Static methods3216.16%
▷ Public methods19598.48%
▷ Protected methods10.51%
▷ Private methods21.01%
Functions9
▷ Named functions555.56%
▷ Anonymous functions444.44%
Constants16
▷ Global constants1593.75%
▷ Class constants16.25%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin