Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.99ms] Passed 4 tests
A check of server-side resources used by Prevent Pages From Deleting
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.05 ▼1.63 |
Dashboard /wp-admin | 3.33 ▼0.02 | 44.58 ▼11.00 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 49.01 ▲3.68 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 85.83 ▼14.50 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.88 ▲3.16 |
Prevent Deleting /wp-admin/options-general.php?page=prevent_deleting | 3.23 | 33.12 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Prevent Pages From Deleting
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.64 ▲0.01 | 1.57 ▼0.18 | 39.87 ▼4.23 |
Dashboard /wp-admin | 2,202 ▲22 | 5.62 ▲0.00 | 81.90 ▼13.62 | 41.47 ▲2.91 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.95 ▼0.06 | 34.66 ▼6.19 | 34.15 ▼4.74 |
Add New Post /wp-admin/post-new.php | 1,531 ▼5 | 23.27 ▲4.84 | 693.35 ▲54.96 | 54.43 ▼14.45 |
Media Library /wp-admin/upload.php | 1,401 ▲7 | 4.18 ▼0.03 | 107.78 ▲13.07 | 47.99 ▲3.38 |
Prevent Deleting /wp-admin/options-general.php?page=prevent_deleting | 802 | 2.03 | 23.54 | 26.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 1× 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/prevent-pages-from-deleting/prevent-posts-from-deleting.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please add an image for screenshot #1 (This screen shot description the plugin settings.)
- Screenshots: A description for screenshot #2 is required in prevent-pages-from-deleting/assets to your readme.txt
prevent-pages-from-deleting/prevent-posts-from-deleting.php 92% from 13 tests
The main PHP file in "Prevent Pages From Deleting" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("prevent-pages-from-deleting.php" instead of "prevent-posts-from-deleting.php")
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
There were no executable files found in this plugin123 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 17 | 22 | 88 |
PO File | 1 | 51 | 99 | 28 |
HTML | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
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 | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected