84% gorilla-debug

Code Review | Gorilla Debug

WordPress plugin Gorilla Debug scored84%from 54 tests.

About plugin

  • Plugin page: gorilla-debug
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-5.7
  • WordPress version: 6.3.1
  • First release: Jun 3, 2021
  • Latest release: Jun 10, 2021
  • Number of updates: 6
  • Update frequency: every 1.3 days
  • Top authors: gorillasolutions (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /366 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.04MB] [CPU: ▼7.10ms] Passed 4 tests

Server-side resources used by Gorilla Debug
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.34 ▼1.97
Dashboard /wp-admin3.36 ▲0.0247.44 ▼13.09
Posts /wp-admin/edit.php3.40 ▲0.0548.87 ▲2.24
Add New Post /wp-admin/post-new.php5.94 ▲0.0581.51 ▼9.19
Media Library /wp-admin/upload.php3.26 ▲0.0331.38 ▼4.14
Debug Log /wp-admin/admin.php?page=gorilla-debug-log-page3.2530.94
Settings /wp-admin/admin.php?page=gorilla-debug-settings-page3.2632.23

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

Filesystem and database footprint
These are issues you should consider
  • The plugin illegally modified 3 files (8.48KB) outside of "wp-content/plugins/gorilla-debug/" and "wp-content/uploads/"
    • (modified) wp-config.php
    • (new file) wp-content/debug.log
    • (new file) wp-config.php.gorilla_debug.bak
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Gorilla Debug: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲3014.35 ▲0.071.63 ▼0.2843.46 ▼2.88
Dashboard /wp-admin2,222 ▲515.62 ▲0.0598.22 ▼6.2541.53 ▼3.29
Posts /wp-admin/edit.php2,127 ▲272.02 ▼0.1235.97 ▼2.9832.92 ▼1.97
Add New Post /wp-admin/post-new.php1,548 ▲2223.11 ▼0.48677.10 ▼14.4454.61 ▼0.39
Media Library /wp-admin/upload.php1,427 ▲274.19 ▼0.0295.45 ▼16.4839.67 ▼8.49
Debug Log /wp-admin/admin.php?page=gorilla-debug-log-page9852.3540.7035.66
Settings /wp-admin/admin.php?page=gorilla-debug-settings-page9162.1723.1526.35

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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
  • 18× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/gorilla-debug/inc/functions.php
    • > /wp-content/plugins/gorilla-debug/inc/pages/fallback.php
    • > /wp-content/plugins/gorilla-debug/inc/activate.php
    • > /wp-content/plugins/gorilla-debug/inc/admin-menus.php
    • > /wp-content/plugins/gorilla-debug/inc/classes/file-manager.php
    • > /wp-content/plugins/gorilla-debug/inc/pages/setup.php
    • > /wp-content/plugins/gorilla-debug/gorilla-debug.php
    • > /wp-content/plugins/gorilla-debug/inc/notices.php
    • > /wp-content/plugins/gorilla-debug/inc/pages/settings.php
    • > /wp-content/plugins/gorilla-debug/inc/ajax.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
3 plugin tags: debugging, debug, development

gorilla-debug/gorilla-debug.php Passed 13 tests

The primary PHP file in "Gorilla Debug" version 1.0.0 is used by WordPress to initiate all plugin functionality
58 characters long description:
This is a simple and awesome debugging tool for WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin8,713 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript39621,0197,844
PHP18457201583
CSS24223286

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity6.00
▷ Minimum class complexity3.00
▷ Maximum class complexity12.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods1191.67%
▷ Protected methods00.00%
▷ Private methods18.33%
Functions13
▷ Named functions969.23%
▷ Anonymous functions430.77%
Constants9
▷ Global constants00.00%
▷ Class constants9100.00%
▷ Public constants9100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin