Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼1.96MB] [CPU: ▼54.32ms] Passed 4 tests
A check of server-side resources used by DeadDelete
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 6.00 ▼34.99 |
Dashboard /wp-admin | 2.05 ▼1.25 | 12.07 ▼37.30 |
Posts /wp-admin/edit.php | 2.05 ▼1.30 | 6.29 ▼44.88 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.41 ▼100.12 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.48 ▼27.39 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 41 new files
Database: 1 new table, 6 new options
New tables |
---|
deaddelete |
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by DeadDelete
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.79 ▲0.56 | 1.81 ▲0.13 | 45.35 ▼1.14 |
Dashboard /wp-admin | 2,203 ▲12 | 5.83 ▲0.79 | 94.06 ▼9.28 | 38.45 ▼4.06 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.00 ▼0.03 | 38.00 ▼4.87 | 35.58 ▼0.03 |
Add New Post /wp-admin/post-new.php | 1,542 ▼0 | 18.27 ▲0.10 | 590.24 ▼7.58 | 55.68 ▼7.50 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.19 ▼0.00 | 95.18 ▼24.18 | 40.37 ▼2.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function is_singular was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
- The plugin did not uninstall successfully, leaving 1 table in the database
- deaddelete
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/deaddelete/public/partials/deaddelete-public-display.php
- > /wp-content/plugins/deaddelete/admin/partials/deaddelete-admin-display.php
- > /wp-content/plugins/deaddelete/index.php
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/deaddelete/includes/class-deaddelete-activator.php on line 2
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/deaddelete/includes/class-deaddelete-activator.php on line 2
- > PHP Warning
require_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/deaddelete/includes/class-deaddelete-activator.php on line 2
- > PHP Fatal error
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
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: content management, delete
deaddelete/deaddelete.php Passed 13 tests
The entry point to "DeadDelete" version 1.1.0 is a PHP file that has certain tags in its header comment area
98 characters long description:
The DeadDelete Plugin for Wordpress allows aggregators delete dead links at the click of a button.
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
Success! There were no dangerous files found in this plugin846 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 338 | 714 | 820 |
CSS | 3 | 0 | 8 | 13 |
JSON | 2 | 0 | 0 | 7 |
JavaScript | 2 | 4 | 54 | 6 |
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.37 |
Average class complexity | 8.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 60 | |
▷ Static methods | 17 | 28.33% |
▷ Public methods | 53 | 88.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 11.67% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
Constants | 1 | |
▷ Global constants | 1 | 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
2 PNG files occupy 0.06MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 24.75KB | 5.54KB | ▼ 77.61% |
assets/icon-256x256.png | 41.41KB | 11.54KB | ▼ 72.13% |