94% debug-plugin-activation-errors

Code Review | Debug "unexpected output" During Plugin Activation

WordPress plugin Debug "unexpected output" During Plugin Activation scored 94% from 54 tests.

About plugin

  • Plugin page: debug-plugin-acti...
  • Plugin version: 1.9.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.6
  • WordPress version: 5.9.2
  • First release: Sep 25, 2013
  • Latest release: Dec 13, 2013
  • Number of updates: 28
  • Update frequency: every 2.8 days
  • Top authors: DavidWells (100%)

Code review

54 tests

User reviews

39 reviews

Install metrics

50+ active / 7,388 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼293.53ms] Passed 4 tests

An overview of server-side resources used by Debug "unexpected output" During Plugin Activation
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0154.97 ▲4.66
Dashboard /wp-admin3.42 ▲0.0131.40 ▼4.32
Posts /wp-admin/edit.php3.66 ▲0.0135.84 ▼0.91
Add New Post /wp-admin/post-new.php6.89 ▼0.0898.83 ▼1,171.33
Media Library /wp-admin/upload.php3.31 ▲0.0125.45 ▲2.45

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 1 new option
New WordPress options
plugin_activation_error_message

Browser metrics Passed 4 tests

An overview of browser requirements for Debug "unexpected output" During Plugin Activation
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,789 ▲3515.95 ▲0.257.14 ▲1.272.13 ▲0.06
Dashboard /wp-admin2,901 ▲406.07 ▼0.11118.93 ▼15.40168.41 ▲8.37
Posts /wp-admin/edit.php2,695 ▲43.24 ▲0.0162.24 ▼5.26138.07 ▼3.27
Add New Post /wp-admin/post-new.php1,715 ▲5420.69 ▲4.52447.16 ▲46.17154.00 ▲3.37
Media Library /wp-admin/upload.php1,704 ▲95.54 ▲0.02155.52 ▲16.16202.16 ▲18.75

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script 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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/debug-plugin-activation-errors/debug-plugin-activation-errors.php:11

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)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Donate link: Please fix this invalid url: ""
You can look at the official readme.txt

debug-plugin-activation-errors/debug-plugin-activation-errors.php 92% from 13 tests

"Debug "unexpected output" During Plugin Activation" version 1.9.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 326 characters long)

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
Everything looks great! No dangerous files found in this plugin37 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP181337

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions5
▷ Named functions5100.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 images were found in this plugin