84% excessive-plugins-cop

Code Review | Excessive Plugins Cop

WordPress plugin Excessive Plugins Cop scored84%from 54 tests.

About plugin

  • Plugin page: excessive-plugins...
  • Plugin version: 1.4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 6.3.1
  • First release: Nov 19, 2019
  • Latest release: May 18, 2022
  • Number of updates: 13
  • Update frequency: every 70.1 days
  • Top authors: mikeyott (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,542 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼11.04ms] 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 /3.50 ▲0.0447.69 ▲8.63
Dashboard /wp-admin3.34 ▲0.0047.33 ▼13.48
Posts /wp-admin/edit.php3.40 ▲0.0443.87 ▼4.46
Add New Post /wp-admin/post-new.php5.93 ▲0.0480.55 ▼23.01
Media Library /wp-admin/upload.php3.27 ▲0.0433.19 ▼3.19
Excessive Plugins Cop /wp-admin/options-general.php?page=epcop_settings3.2330.68

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_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 /2,822 ▲3614.17 ▼0.112.36 ▲0.3949.47 ▲9.44
Dashboard /wp-admin2,203 ▲235.62 ▲0.0694.63 ▲11.3040.83 ▲0.14
Posts /wp-admin/edit.php2,108 ▲82.03 ▲0.0333.56 ▼4.4831.93 ▼1.40
Add New Post /wp-admin/post-new.php1,533 ▲423.04 ▼0.17655.64 ▼0.0864.18 ▲14.32
Media Library /wp-admin/upload.php1,411 ▲84.28 ▲0.0993.16 ▼3.1444.74 ▲1.25
Excessive Plugins Cop /wp-admin/options-general.php?page=epcop_settings8882.0022.2827.10

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

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: warning, notifier, excessive, plugins

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

The principal PHP file in "Excessive Plugins Cop" v. 1.4.0 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 plugin217 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13920217

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.31
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%
Functions9
▷ Named functions9100.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