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
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼2.07ms] Passed 4 tests
An overview of server-side resources used by Custom Post Type Cleanup
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 33.55 ▼6.94 |
Dashboard /wp-admin | 3.37 ▲0.07 | 45.43 ▼4.61 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 46.43 ▲0.84 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 89.85 ▲2.43 |
Media Library /wp-admin/upload.php | 3.30 ▲0.06 | 35.83 ▲2.45 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Custom Post Type Cleanup: 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 / | 2,804 ▲69 | 13.24 ▼1.02 | 1.69 ▼0.08 | 41.22 ▼3.93 |
Dashboard /wp-admin | 2,210 ▲22 | 4.84 ▼1.01 | 107.41 ▼12.75 | 41.57 ▼1.80 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.03 ▲0.04 | 39.81 ▲2.38 | 35.64 ▲1.67 |
Add New Post /wp-admin/post-new.php | 1,531 ▲12 | 18.31 ▼4.84 | 650.77 ▼72.41 | 48.92 ▼7.92 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.20 ▲0.00 | 98.33 ▼9.67 | 43.73 ▼2.76 |
Custom Post Type Cleanup /wp-admin/custom-post-type-cleanup.php | 26 | 0.44 | 0.10 | 14.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
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 no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/custom-post-type-cleanup/includes/templates/admin-form.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/custom-post-type-cleanup/custom-post-type-cleanup.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/custom-post-type-cleanup/includes/templates/admin-registered-post-types.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/custom-post-type-cleanup/includes/templates/admin-no-posts.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-post-type-cleanup/includes/register-post-type.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/custom-post-type-cleanup.php
- > Network (severe)
wp-admin/custom-post-type-cleanup.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
There were not plugin tags detected
custom-post-type-cleanup/custom-post-type-cleanup.php Passed 13 tests
The main PHP script in "Custom Post Type Cleanup" version 1.3.0 is automatically included on every request by WordPress
73 characters long description:
Detect and delete posts from custom post types that are no longer in use.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin541 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 101 | 186 | 511 |
JavaScript | 1 | 12 | 0 | 30 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 24.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 4.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 16.67% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin