Benchmarks
Plugin footprint 83% 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: ▲0.08MB] [CPU: ▼4.59ms] Passed 4 tests
Analyzing server-side resources used by Completely Delete
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 39.61 ▼5.71 |
Dashboard /wp-admin | 3.40 ▲0.09 | 51.21 ▼0.63 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 49.79 ▲2.45 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 93.11 ▼13.40 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 37.66 ▲1.37 |
Completely Delete /wp-admin/options-general.php?page=completely-delete | 3.29 | 33.43 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
cd-display-activation-message |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
completely-delete |
Browser metrics Passed 4 tests
Checking browser requirements for Completely Delete
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.14 ▼0.21 | 1.88 ▲0.22 | 46.49 ▲3.06 |
Dashboard /wp-admin | 2,202 ▲22 | 5.62 ▲0.08 | 97.86 ▲2.80 | 42.71 ▼0.47 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 1.99 ▲0.01 | 34.78 ▼3.79 | 35.76 ▼3.55 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.59 ▲0.01 | 646.69 ▼35.73 | 60.38 ▲7.48 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.16 ▼0.00 | 96.30 ▼6.74 | 47.76 ▲2.19 |
Completely Delete /wp-admin/options-general.php?page=completely-delete | 813 | 2.01 | 24.07 | 29.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- 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 everything seems fine, this is not an exhaustive test
SRP 50% 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
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Completely_Delete' not found in wp-content/plugins/completely-delete/admin/includes/settings.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/completely-delete/admin/views/admin.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: pages, posts, attachemnts
completely-delete/completely-delete.php Passed 13 tests
"Completely Delete" version 0.8.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
68 characters long description:
A plugin to let you completely delete all related objects of a post.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin422 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 171 | 411 | 374 |
PO File | 1 | 9 | 11 | 43 |
JavaScript | 1 | 4 | 1 | 5 |
CSS | 1 | 0 | 1 | 0 |
PHP code Passed 2 tests
A short review 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.35 |
Average class complexity | 18.67 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 2.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 8 | 25.00% |
▷ Public methods | 26 | 81.25% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 18.75% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected