84% active-plugins-on-multisite

Code Review | Active Plugins

WordPress plugin Active Plugins scored84%from 54 tests.

About plugin

  • Plugin page: active-plugins-on...
  • Plugin version: 1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.0-4.6
  • WordPress version: 6.3.1
  • First release: Jul 22, 2010
  • Latest release: Sep 9, 2016
  • Number of updates: 16
  • Update frequency: every 140.1 days
  • Top authors: trepmal (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /3,377 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.30ms] Passed 4 tests

An overview of server-side resources used by Active Plugins
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0436.65 ▼4.18
Dashboard /wp-admin3.34 ▲0.0446.81 ▼5.05
Posts /wp-admin/edit.php3.39 ▲0.0450.13 ▲1.51
Add New Post /wp-admin/post-new.php5.92 ▲0.0484.44 ▼7.40
Media Library /wp-admin/upload.php3.27 ▲0.0434.83 ▼4.57

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Active Plugins: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲7713.27 ▼1.401.70 ▼0.1540.94 ▼12.13
Dashboard /wp-admin2,221 ▲304.90 ▲0.01104.52 ▼12.7640.81 ▼7.04
Posts /wp-admin/edit.php2,100 ▲112.03 ▲0.0144.20 ▲3.8639.32 ▲2.76
Add New Post /wp-admin/post-new.php1,541 ▼12723.23 ▲0.84609.82 ▼71.4953.84 ▲6.19
Media Library /wp-admin/upload.php1,403 ▲124.22 ▲0.0399.67 ▼7.5741.48 ▼1.30

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/active-plugins-on-multisite/active-plugins.php:35

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 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: mutlisite, plugins, utility

active-plugins-on-multisite/active-plugins.php 92% from 13 tests

"Active Plugins" version 1.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("active-plugins-on-multisite.php" instead of "active-plugins.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin178 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP149109178

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity4.67
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.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 files were detected