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
Install script ran successfully
Server metrics [RAM: ▲0.26MB] [CPU: ▼2.90ms] Passed 4 tests
Analyzing server-side resources used by WP Safe Mode
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.15 | 42.61 ▼3.03 |
Dashboard /wp-admin | 3.60 ▲0.29 | 50.99 ▼7.26 |
Posts /wp-admin/edit.php | 3.72 ▲0.36 | 53.28 ▲1.33 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.29 | 91.70 ▼2.63 |
Media Library /wp-admin/upload.php | 3.53 ▲0.29 | 43.12 ▲7.51 |
Server storage [IO: ▲0.60MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Just a few items left to fix
- There were 2 files (4.83KB) illegally modified outside of "wp-content/plugins/wp-safe-mode/" and "wp-content/uploads/"
- (modified) wp-config.php
- (new file) wp-content/wp-safe-mode/wp-safe-mode-bootstrap.php
Filesystem: 68 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by WP Safe Mode
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,876 ▲115 | 14.69 ▲0.43 | 1.89 ▼0.48 | 45.15 ▼0.03 |
Dashboard /wp-admin | 2,234 ▲60 | 5.62 ▲0.10 | 89.67 ▼6.00 | 42.76 ▼1.13 |
Posts /wp-admin/edit.php | 2,142 ▲42 | 2.00 ▲0.00 | 38.80 ▲1.13 | 36.11 ▼0.57 |
Add New Post /wp-admin/post-new.php | 1,556 ▲28 | 23.09 ▼0.08 | 689.59 ▲12.00 | 64.96 ▲8.24 |
Media Library /wp-admin/upload.php | 1,442 ▲42 | 4.17 ▼0.08 | 102.28 ▼6.47 | 42.91 ▼3.01 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-safe-mode/wp-safe-mode-test.php
- 9× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-safe-mode/wp-safe-mode-admin.php on line 14
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-safe-mode/wp-safe-mode-admin.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/wp-safe-mode/wp-safe-mode-loader.php:175
- > PHP Warning
Use of undefined constant NONCE_SALT - assumed 'NONCE_SALT' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-safe-mode/wp-safe-mode-loader.php on line 161
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-safe-mode/wp-safe-mode-admin.php on line 16
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-safe-mode/wp-safe-mode-admin.php on line 16
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-safe-mode/bootstrap/wp-safe-mode-bootstrap.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-safe-mode/wp-safe-mode.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-safe-mode/wp-safe-mode-admin.php:20
- > PHP Warning
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
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: debug, debugging, recovery, troubleshooting, safe mode...
wp-safe-mode/wp-safe-mode.php Passed 13 tests
"WP Safe Mode" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
90 characters long description:
Safe mode for debugging WordPress issues, without destroying your site for other visitors.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected11,210 lines of code in 67 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 59 | 2,464 | 695 | 9,414 |
PHP | 5 | 84 | 379 | 1,331 |
CSS | 3 | 58 | 0 | 465 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.69 |
Average class complexity | 186.50 |
▷ Minimum class complexity | 171.00 |
▷ Maximum class complexity | 202.00 |
Average method complexity | 9.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 66.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 43 | 100.00% |
▷ Public methods | 41 | 95.35% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.65% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
There were not PNG files found in your plugin