84% debug-bar-plugin-activation

Code Review | Debug Bar Plugin Activation

WordPress plugin Debug Bar Plugin Activation scored 84% from 54 tests.

About plugin

  • Plugin page: debug-bar-plugin-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.5
  • WordPress version: 6.3.1
  • First release: Jul 1, 2016
  • Latest release: Jul 2, 2016
  • Number of updates: 8
  • Update frequency: N/A
  • Top authors: jrf (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 2,857 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.00MB] [CPU: ▼3.02ms] Passed 4 tests

Analyzing server-side resources used by Debug Bar Plugin Activation
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.07 ▲0.54
Dashboard /wp-admin3.31 ▲0.0045.44 ▼2.40
Posts /wp-admin/edit.php3.36 ▲0.0050.20 ▲1.68
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.52 ▼8.80
Media Library /wp-admin/upload.php3.23 ▲0.0033.92 ▼1.42

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Debug Bar Plugin Activation
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.23 ▼1.141.69 ▼0.1143.45 ▲1.18
Dashboard /wp-admin2,206 ▲155.78 ▲0.9194.27 ▼5.2038.81 ▼7.97
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0538.88 ▼0.8535.66 ▼1.24
Add New Post /wp-admin/post-new.php1,542 ▲418.29 ▲0.14597.60 ▼23.3357.26 ▼4.90
Media Library /wp-admin/upload.php1,388 ▼04.21 ▼0.0993.60 ▼8.7342.46 ▼1.34

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

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
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 items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/debug-bar-plugin-activation/uninstall.php:9

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
7 plugin tags: debug bar, plugin activation, debugbar, plugin deactivation, unexpected output...

debug-bar-plugin-activation/debug-bar-plugin-activation.php Passed 13 tests

The entry point to "Debug Bar Plugin Activation" version 1.0 is a PHP file that has certain tags in its header comment area
107 characters long description:
Debug Bar Plugin Activation adds a new panel to the Debug Bar which displays plugin (de-)activation errors.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin517 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP5128318328
CSS2132130
JavaScript2221559

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity16.00
▷ Minimum class complexity14.00
▷ Maximum class complexity18.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods1666.67%
▷ Protected methods833.33%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants120.00%
▷ Class constants480.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin