94% active-plugins-on-multisite

Code Review | Active Plugins

WordPress plugin Active Plugins scored 94% 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: 5.9.2
  • 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,089 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼291.34ms] Passed 4 tests

A check of server-side resources used by Active Plugins
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0555.22 ▲3.56
Dashboard /wp-admin3.45 ▲0.0435.38 ▲2.53
Posts /wp-admin/edit.php3.68 ▲0.0438.72 ▲0.94
Add New Post /wp-admin/post-new.php6.95 ▼0.0596.39 ▼1,168.08
Media Library /wp-admin/upload.php3.33 ▲0.0424.42 ▼0.74

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Active Plugins
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,777 ▲3316.25 ▲0.606.03 ▼0.202.42 ▲0.33
Dashboard /wp-admin2,909 ▲486.03 ▼0.18119.83 ▼12.86150.12 ▼10.10
Posts /wp-admin/edit.php2,696 ▲83.24 ▲0.0167.13 ▼4.01141.95 ▼11.06
Add New Post /wp-admin/post-new.php1,718 ▲4620.69 ▼0.16430.70 ▲13.20161.92 ▲5.90
Media Library /wp-admin/upload.php1,709 ▲115.48 ▼0.10140.51 ▼0.54185.33 ▼0.59

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > 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 shallow check for browser errors
No browser errors were detected


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: utility, mutlisite, plugins

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

The principal PHP file in "Active Plugins" v. 1.7 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file 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 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin178 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued 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
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin