79% easy-debug-info

Code Review | Easy Debug Info

WordPress plugin Easy Debug Info scored79%from 54 tests.

About plugin

  • Plugin page: easy-debug-info
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7.0-4.0
  • WordPress version: 6.3.1
  • First release: Aug 15, 2014
  • Latest release: Sep 25, 2014
  • Number of updates: 8
  • Update frequency: every 5.3 days
  • Top authors: JonasDoebertin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,452 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼5.93ms] Passed 4 tests

Analyzing server-side resources used by Easy Debug Info
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.50 ▼5.08
Dashboard /wp-admin3.41 ▲0.0649.74 ▼14.79
Posts /wp-admin/edit.php3.52 ▲0.1651.43 ▲2.69
Add New Post /wp-admin/post-new.php5.99 ▲0.1099.28 ▼1.72
Media Library /wp-admin/upload.php3.33 ▲0.1039.23 ▼2.14
Easy Debug Info /wp-admin/tools.php?page=easydebuginfo3.3133.30

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 108 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
easydebuginfo_latest_report
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy Debug Info
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.72 ▲0.372.03 ▲0.0044.34 ▲5.14
Dashboard /wp-admin2,193 ▲135.61 ▼0.0491.16 ▼0.3043.00 ▲2.23
Posts /wp-admin/edit.php2,104 ▲41.97 ▼0.0739.38 ▼2.8438.74 ▲0.89
Add New Post /wp-admin/post-new.php1,529 ▲123.12 ▲0.02682.22 ▼21.8556.10 ▼10.08
Media Library /wp-admin/upload.php1,398 ▼24.18 ▼0.0194.83 ▼15.0846.11 ▲0.17
Easy Debug Info /wp-admin/tools.php?page=easydebuginfo8912.1622.0837.89

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 5× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/easy-debug-info/easy-debug-info.php
    • > /wp-content/plugins/easy-debug-info/views/notices/legacy.php
    • > /wp-content/plugins/easy-debug-info/bootstrap.php
    • > /wp-content/plugins/easy-debug-info/uninstall.php
    • > /wp-content/plugins/easy-debug-info/legacy.php
  • 39× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'TestFixture' not found in wp-content/plugins/easy-debug-info/vendor/nesbot/carbon/tests/IssetTest.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'TestFixture' not found in wp-content/plugins/easy-debug-info/vendor/nesbot/carbon/tests/CreateFromDateTest.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'TestFixture' not found in wp-content/plugins/easy-debug-info/vendor/nesbot/carbon/tests/CopyTest.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/easy-debug-info/vendor/rych/bytesize/test/Formatter/MetricTest.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Console_Table' not found in wp-content/plugins/easy-debug-info/classes/Tools/ConsoleTable.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'TestFixture' not found in wp-content/plugins/easy-debug-info/vendor/nesbot/carbon/tests/NowAndOtherStaticHelpersTest.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'TestFixture' not found in wp-content/plugins/easy-debug-info/vendor/nesbot/carbon/tests/TestingAidsTest.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'jdpowered\\EasyDebugInfo\\Reporters\\BaseReporter' not found in wp-content/plugins/easy-debug-info/classes/Reporters/StatisticsReporter.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'jdpowered\\EasyDebugInfo\\Reporters\\BaseReporter' not found in wp-content/plugins/easy-debug-info/classes/Reporters/DatabaseReporter.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/easy-debug-info/views/tools-page/tools-page.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: statistics, debugging, constants, debug, themes...

easy-debug-info/easy-debug-info.php Passed 13 tests

This is the main PHP file of "Easy Debug Info" version 1.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
66 characters long description:
Making collecting extensive and extendable debug info finally easy

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
Good job! No executable or dangerous file extensions detected8,516 lines of code in 95 files:
LanguageFilesBlank linesComment linesLines of code
PHP731,1583,3386,311
Markdown32780824
JSON500491
XML430411
Sass3360200
PO File25256186
CSS2211246
JavaScript1111219
SVG10018
YAML10010

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity7.12
▷ Minimum class complexity1.00
▷ Maximum class complexity96.00
Average method complexity1.35
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces9
Interfaces2
Traits0
Classes47
▷ Abstract classes24.26%
▷ Concrete classes4595.74%
▷ Final classes24.44%
Methods865
▷ Static methods283.24%
▷ Public methods77089.02%
▷ Protected methods9410.87%
▷ Private methods10.12%
Functions15
▷ Named functions533.33%
▷ Anonymous functions1066.67%
Constants29
▷ Global constants1034.48%
▷ Class constants1965.52%
▷ Public constants19100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin