84% wp-plugin-repo-stats

Code Review | WP Plugin Repo Stats

WordPress plugin WP Plugin Repo Stats scored84%from 54 tests.

About plugin

  • Plugin page: wp-plugin-repo-stats
  • Plugin version: 0.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9
  • WordPress version: 6.3.1
  • First release: Jan 28, 2013
  • Latest release: Aug 16, 2014
  • Number of updates: 39
  • Update frequency: every 14.5 days
  • Top authors: jp2112 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /5,786 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.18MB] [CPU: ▼5.77ms] Passed 4 tests

This is a short check of server-side resources used by WP Plugin Repo Stats
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1934.43 ▼2.99
Dashboard /wp-admin3.49 ▲0.1544.81 ▼15.88
Posts /wp-admin/edit.php3.60 ▲0.2548.76 ▲2.12
Add New Post /wp-admin/post-new.php6.07 ▲0.1991.58 ▼6.02
Media Library /wp-admin/upload.php3.41 ▲0.1934.15 ▲1.80
WordPress Plugin Repo Stats /wp-admin/options-general.php?page=wp-plugin-repo-stats3.3829.23

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

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

Browser metrics Passed 4 tests

WP Plugin Repo Stats: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.16 ▼1.221.66 ▼0.5040.35 ▼4.81
Dashboard /wp-admin2,210 ▲254.82 ▼0.06107.23 ▼7.8342.31 ▼0.50
Posts /wp-admin/edit.php2,093 ▲42.03 ▼0.0039.38 ▲3.8334.47 ▼1.39
Add New Post /wp-admin/post-new.php1,542 ▲718.55 ▼4.63606.52 ▼76.4255.40 ▼6.61
Media Library /wp-admin/upload.php1,392 ▲44.23 ▲0.0394.03 ▼8.1642.30 ▼0.89
WordPress Plugin Repo Stats /wp-admin/options-general.php?page=wp-plugin-repo-stats1,0132.2026.9848.09

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-plugin-repo-stats/wp_plugin_repo_stats.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Screenshots: Add an image for screenshot #3 (Screenshot of single plugin output display)
Please take inspiration from this readme.txt

wp-plugin-repo-stats/wp_plugin_repo_stats.php 92% from 13 tests

The primary PHP file in "WP Plugin Repo Stats" version 0.3.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-plugin-repo-stats.php" instead of "wp_plugin_repo_stats.php")

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
Success! There were no dangerous files found in this plugin721 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP33986697
CSS20021
JavaScript1003

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions35
▷ Named functions35100.00%
▷ Anonymous functions00.00%
Constants30
▷ Global constants30100.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
7 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/wordpress_icon.png2.57KB2.26KB▼ 12.30%
images/settings.png2.11KB2.31KB0.00%
images/examples.png3.78KB2.24KB▼ 40.82%
images/parameters.png3.48KB2.94KB▼ 15.45%
images/stars.png1.97KB1.07KB▼ 45.82%