84% wpmu-plugin-stats

Code Review | WPMU Plugin Stats

WordPress plugin WPMU Plugin Stats scored84%from 54 tests.

About plugin

  • Plugin page: wpmu-plugin-stats
  • Plugin version: 3.0.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.9.6
  • WordPress version: 6.3.1
  • First release: Nov 10, 2009
  • Latest release: Aug 30, 2018
  • Number of updates: 47
  • Update frequency: every 68.4 days
  • Top authors: cfoellmann (65.96%)DeannaS (27.66%)deployer (6.38%)MadtownLems (6.38%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /13,642 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼9.19ms] Passed 4 tests

An overview of server-side resources used by WPMU Plugin Stats
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.54 ▼2.32
Dashboard /wp-admin3.31 ▼0.0450.59 ▼12.97
Posts /wp-admin/edit.php3.36 ▲0.0047.39 ▼3.49
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.46 ▼17.97
Media Library /wp-admin/upload.php3.23 ▲0.0037.34 ▲1.18

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WPMU Plugin Stats
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.17 ▼0.181.97 ▲0.4443.40 ▼0.66
Dashboard /wp-admin2,198 ▲215.63 ▼0.0396.83 ▲2.3240.99 ▲1.01
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.0134.53 ▼8.2835.28 ▼3.33
Add New Post /wp-admin/post-new.php1,526 ▼223.06 ▼0.11677.55 ▲7.3052.52 ▼5.56
Media Library /wp-admin/upload.php1,394 ▼64.20 ▲0.02100.80 ▼13.9647.70 ▲0.98

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 detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

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)
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/wpmu-plugin-stats/wpmu-plugin-stats.php

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)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: wordpress multiuser, multisite, wpmu, usage, network...

wpmu-plugin-stats/wpmu-plugin-stats.php Passed 13 tests

The entry point to "WPMU Plugin Stats" version 3.0.1 is a PHP file that has certain tags in its header comment area
111 characters long description:
Gives network admins an easy way to see what plugins are actively used on the sites of a multisite installation

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin59 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2185659

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods375.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin