94% excessive-plugins-cop

Code Review | Excessive Plugins Cop

WordPress plugin Excessive Plugins Cop scored 94% from 54 tests.

About plugin

  • Plugin page: excessive-plugins...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 5.8.1
  • First release: Nov 19, 2019
  • Latest release: Jul 10, 2021
  • Number of updates: 10
  • Update frequency: every 59.9 days
  • Top authors: mikeyott (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,711 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼139.08ms] Passed 4 tests

This is a short check of server-side resources used by Excessive Plugins Cop
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.1732.87 ▲12.08
Dashboard /wp-admin3.12 ▲0.0652.24 ▲17.76
Posts /wp-admin/edit.php3.17 ▲0.0645.99 ▲1.09
Add New Post /wp-admin/post-new.php5.47 ▲0.0484.55 ▼570.46
Media Library /wp-admin/upload.php3.06 ▲0.0632.64 ▲0.98
Excessive Plugins Cop /wp-admin/tools.php?page=excessive_plugins_cop3.0329.30

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Excessive Plugins Cop
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,712 ▲11615.83 ▲0.258.57 ▲0.3044.87 ▼6.47
Dashboard /wp-admin2,979 ▲485.94 ▲0.00138.63 ▲1.81106.94 ▼3.30
Posts /wp-admin/edit.php2,748 ▲92.69 ▲0.0066.60 ▲1.6992.64 ▲2.61
Add New Post /wp-admin/post-new.php1,507 ▲718.92 ▲0.25369.04 ▼3.61111.37 ▲7.64
Media Library /wp-admin/upload.php1,819 ▲95.01 ▲0.01152.82 ▼1.46117.98 ▲2.99
Excessive Plugins Cop /wp-admin/tools.php?page=excessive_plugins_cop1,2532.2254.3073.16

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 fix 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/excessive-plugins-cop/excessive-plugins-cop.php:17

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)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: plugins, excessive, warning, notifier

excessive-plugins-cop/excessive-plugins-cop.php Passed 13 tests

The principal PHP file in "Excessive Plugins Cop" v. 1.3 is loaded by WordPress automatically on each request
93 characters long description:
Limit how many plugins can be activated, and get notified by email when the limit is reached.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin306 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14624305
SVG1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
No PNG files were detected