Benchmarks
Plugin footprint Passed 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.02MB] [CPU: ▼145.15ms] Passed 4 tests
An overview of server-side resources used by WP Dead Man's Snitch
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.02 | 34.52 ▲3.25 |
Dashboard /wp-admin | 3.09 ▲0.03 | 40.00 ▼8.88 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 38.97 ▼9.48 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 91.31 ▼561.44 |
Media Library /wp-admin/upload.php | 3.03 ▲0.02 | 32.60 ▼0.79 |
Dead Man's Snitch /wp-admin/options-general.php?page=wpdms-settings | 3.00 | 27.66 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
WP Dead Man's Snitch: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 15.81 ▲0.11 | 11.96 ▲3.17 | 49.06 ▲1.81 |
Dashboard /wp-admin | 2,975 ▲38 | 6.04 ▲0.04 | 141.37 ▼1.65 | 108.85 ▼6.21 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▼0.00 | 63.81 ▲0.16 | 88.83 ▲1.73 |
Add New Post /wp-admin/post-new.php | 1,904 ▲404 | 19.22 ▲0.73 | 380.25 ▲23.82 | 111.71 ▼3.65 |
Media Library /wp-admin/upload.php | 1,815 ▲8 | 5.05 ▲0.00 | 148.40 ▼0.00 | 119.62 ▼4.28 |
Dead Man's Snitch /wp-admin/options-general.php?page=wpdms-settings | 1,045 | 2.09 | 55.03 | 62.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully
Smoke tests 75% 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 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
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-dead-mans-snitch/wp-deadmanssnitch.php:42
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/wp-dead-mans-snitch/admin-form.inc.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
These attributes need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== wp-dead-mans-snitch ===
)
wp-dead-mans-snitch/wp-deadmanssnitch.php 92% from 13 tests
Analyzing the main PHP file in "WP Dead Man's Snitch" version 0.1.0
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-dead-mans-snitch.php" instead of "wp-deadmanssnitch.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin82 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 15 | 7 | 82 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 1 | 20.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 7 | 100.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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
No PNG files were detected