Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/readme-detonator/index.php+26
Function create_function() is deprecated
Server metrics [RAM: ▼1.89MB] [CPU: ▼52.78ms] Passed 4 tests
Analyzing server-side resources used by Readme Detonator
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.37 | 4.72 ▼37.55 |
Dashboard /wp-admin | 2.11 ▼1.19 | 6.21 ▼39.62 |
Posts /wp-admin/edit.php | 2.11 ▼1.24 | 5.73 ▼44.04 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.77 | 5.76 ▼89.91 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 5.32 ▼31.58 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Please try to fix the following items
- There were 2 files (0.00KB) illegally modified outside of "wp-content/plugins/readme-detonator/" and "wp-content/uploads/"
- (deleted) readme.html
- (deleted) license.txt
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Readme Detonator
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲87 | 13.28 ▼1.14 | 1.70 ▼0.54 | 38.59 ▼14.65 |
Dashboard /wp-admin | 2,252 ▲67 | 4.88 ▼1.03 | 109.98 ▲6.02 | 41.99 ▲1.38 |
Posts /wp-admin/edit.php | 2,097 ▲5 | 2.01 ▼0.02 | 40.65 ▲1.72 | 36.45 ▲0.96 |
Add New Post /wp-admin/post-new.php | 1,540 ▼2 | 23.15 ▲4.81 | 653.45 ▲33.77 | 56.21 ▼2.39 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.30 ▲0.15 | 95.10 ▼13.15 | 43.20 ▼1.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5905
Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the readme-detonator handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/readme-detonator/index.php:16
- > PHP Fatal error
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 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: security
readme-detonator/index.php 85% from 13 tests
This is the main PHP file of "Readme Detonator" version 1.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("readme-detonator.php" instead of "index.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 156 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin425 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 51 | 21 | 243 |
CSS | 1 | 19 | 0 | 94 |
PO File | 1 | 19 | 23 | 88 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected