Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.11MB] [CPU: ▼18.86ms] Passed 4 tests
A check of server-side resources used by Disable Delete Post or Page
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.08 | 38.66 ▼6.52 |
Dashboard /wp-admin | 3.25 ▼0.05 | 33.36 ▼16.17 |
Posts /wp-admin/edit.php | 3.32 ▼0.04 | 35.52 ▼14.51 |
Add New Post /wp-admin/post-new.php | 5.50 ▼0.38 | 71.36 ▼37.19 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 31.84 ▼7.56 |
Disable delete link /wp-admin/options-general.php?page=rd-disable-delete-post-or-page | 3.11 | 28.89 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Disable Delete Post or Page
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.26 ▼1.12 | 1.53 ▼0.25 | 38.64 ▼11.74 |
Dashboard /wp-admin | 2,210 ▲25 | 4.88 ▼0.98 | 95.40 ▼5.81 | 41.80 ▼2.04 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.01 | 33.38 ▼9.11 | 33.03 ▼3.96 |
Add New Post /wp-admin/post-new.php | 1,539 ▲25 | 23.22 ▲5.75 | 664.93 ▲60.13 | 57.75 ▲4.51 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.21 ▲0.00 | 92.96 ▼11.73 | 43.73 ▲1.59 |
Disable delete link /wp-admin/options-general.php?page=rd-disable-delete-post-or-page | 1,017 | 2.03 | 25.42 | 28.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=rd-disable-delete-post-or-page
- > Notice in wp-content/plugins/disable-delete-post-or-page-link-wordpress-plugin/js_disable_delete_post.php+208
Trying to get property 'post_type' of non-object
- > GET request to /wp-admin/options-general.php?page=rd-disable-delete-post-or-page
- > Notice in wp-content/plugins/disable-delete-post-or-page-link-wordpress-plugin/js_disable_delete_post.php+157
Undefined index: post
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 server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/disable-delete-post-or-page-link-wordpress-plugin/js_disable_delete_post.php:81
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: No descriptions were found for these screenshots #2, #3 in disable-delete-post-or-page-link-wordpress-plugin/assets to your readme.txt
disable-delete-post-or-page-link-wordpress-plugin/js_disable_delete_post.php 92% from 13 tests
The main PHP script in "Disable Delete Post or Page" version 3.0 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("disable-delete-post-or-page-link-wordpress-plugin.php" instead of "js_disable_delete_post.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected313 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 98 | 134 | 260 |
JavaScript | 1 | 17 | 27 | 24 |
Markdown | 1 | 14 | 0 | 20 |
CSS | 1 | 3 | 13 | 9 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
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 | 12 | |
▷ Named functions | 12 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin