83% wp-marvelous-debug

Code Review | WP Marvelous Debug

WordPress plugin WP Marvelous Debug scored83%from 54 tests.

About plugin

  • Plugin page: wp-marvelous-debug
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.3
  • WordPress version: 6.3.1
  • First release: Mar 19, 2020
  • Latest release: Mar 28, 2020
  • Number of updates: 11
  • Update frequency: every 0.8 days
  • Top authors: Karzin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /706 total downloads

Benchmarks

Plugin footprint 82% from 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.18MB] [CPU: ▼3.73ms] Passed 4 tests

A check of server-side resources used by WP Marvelous Debug
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.15 ▼1.74
Dashboard /wp-admin3.54 ▲0.2451.34 ▲1.71
Posts /wp-admin/edit.php3.59 ▲0.2358.02 ▲17.31
Add New Post /wp-admin/post-new.php6.09 ▲0.2192.95 ▼21.03
Media Library /wp-admin/upload.php3.44 ▲0.2142.18 ▲6.13
Debugging /wp-admin/options-general.php?page=wpmd_settings3.4340.14
Log File /wp-admin/tools.php?page=wpmd_log_file3.4443.61

Server storage [IO: ▲0.70MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
Just a few items left to fix
  • You have illegally modified 1 file (4.23KB) outside of "wp-content/plugins/wp-marvelous-debug/" and "wp-content/uploads/"
    • (modified) wp-config.php
Filesystem: 171 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
wpmd_general
db_upgraded
theysaidso_admin_options
wpmd_log
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for WP Marvelous Debug
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,987 ▲24114.89 ▲0.082.03 ▲0.3742.03 ▼0.58
Dashboard /wp-admin2,371 ▲1806.63 ▲1.76132.79 ▲25.0538.55 ▼6.27
Posts /wp-admin/edit.php2,279 ▲1873.53 ▲1.5258.97 ▲15.9832.84 ▼2.45
Add New Post /wp-admin/post-new.php1,689 ▲14722.82 ▲4.45585.62 ▼76.3031.78 ▼21.79
Media Library /wp-admin/upload.php1,410 ▲254.30 ▲0.1285.89 ▼12.2842.59 ▼4.21
Debugging /wp-admin/options-general.php?page=wpmd_settings1,4063.4253.3531.53
Log File /wp-admin/tools.php?page=wpmd_log_file1,1533.3541.5227.68

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_theysaidso_widget
    • wpmd_general
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • wpmd_log
    • can_compress_scripts
    • theysaidso_admin_options

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
  • 99× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-marvelous-debug/vendor/composer/installers/src/Composer/Installers/FuelphpInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-marvelous-debug/vendor/composer/installers/src/Composer/Installers/AglInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-marvelous-debug/vendor/composer/installers/src/Composer/Installers/SMFInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-marvelous-debug/vendor/composer/installers/src/Composer/Installers/PlentymarketsInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-marvelous-debug/vendor/composer/installers/src/Composer/Installers/ModxInstaller.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-marvelous-debug/vendor/composer/installers/src/Composer/Installers/MODXEvoInstaller.php:7
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/wp-marvelous-debug/vendor/tareq1988/wordpress-settings-api-class/example/oop-example.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-marvelous-debug/vendor/tareq1988/wordpress-settings-api-class/plugin.php on line 12
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-marvelous-debug/vendor/composer/installers/src/Composer/Installers/OntoWikiInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-marvelous-debug/vendor/composer/installers/src/Composer/Installers/PimcoreInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-marvelous-debug/vendor/composer/installers/src/Composer/Installers/TuskInstaller.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed: You can take inspiration from this readme.txt

wp-marvelous-debug/wp-marvelous-debug.php 92% from 13 tests

"WP Marvelous Debug" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Domain Path: The domain path folder does not exist ("/src/languages")

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 detected5,997 lines of code in 148 files:
LanguageFilesBlank linesComment linesLines of code
PHP1309242,2384,840
JSON1000727
Markdown61320360
JavaScript24970

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity4.72
▷ Minimum class complexity1.00
▷ Maximum class complexity69.00
Average method complexity2.56
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces7
Interfaces6
Traits0
Classes116
▷ Abstract classes10.86%
▷ Concrete classes11599.14%
▷ Final classes00.00%
Methods291
▷ Static methods62.06%
▷ Public methods24283.16%
▷ Protected methods3612.37%
▷ Private methods134.47%
Functions29
▷ Named functions413.79%
▷ Anonymous functions2586.21%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.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
2 PNG files occupy 0.39MB with 0.25MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/tareq1988/wordpress-settings-api-class/screenshot-1.png389.59KB115.93KB▼ 70.24%
vendor/thanks-to-it/wp-settings-api/assets/subsection.png8.92KB3.73KB▼ 58.18%