Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼4.72ms] Passed 4 tests
Server-side resources used by Custom Post Type Manager
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 37.74 ▼4.99 |
Dashboard /wp-admin | 3.38 ▲0.08 | 48.23 ▼4.86 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 47.47 ▼0.05 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 84.46 ▼8.97 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 37.49 ▲1.74 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_custom_posts |
New WordPress options |
---|
theysaidso_admin_options |
cptm_version |
widget_recent-posts |
widget_recent-comments |
cptm_db_version |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Custom Post Type Manager
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲44 | 14.35 ▲0.00 | 1.68 ▼0.05 | 42.63 ▼1.46 |
Dashboard /wp-admin | 2,211 ▲33 | 5.62 ▲0.01 | 89.11 ▼25.25 | 43.81 ▲0.16 |
Posts /wp-admin/edit.php | 2,119 ▲19 | 2.01 ▲0.01 | 36.32 ▼0.10 | 40.23 ▲2.74 |
Add New Post /wp-admin/post-new.php | 1,541 ▲10 | 23.27 ▲0.12 | 605.18 ▼64.85 | 50.70 ▼20.46 |
Media Library /wp-admin/upload.php | 1,419 ▲19 | 4.22 ▲0.03 | 98.33 ▲3.57 | 43.37 ▼1.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'cptm_deactive' not found or invalid function name
- Zombie tables were found after uninstall: 1 table
- wp_custom_posts
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- wp_calendar_block_has_published_posts
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
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 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: post types, custom post type, custom post types
custom-post-type-manager/custom-post-type-manager.php 92% from 13 tests
"Custom Post Type Manager" version 0.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected614 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 77 | 34 | 439 |
PO File | 1 | 71 | 72 | 175 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
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 | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icons/address-book.png | 0.70KB | 0.78KB | 0.00% |
icons/report.png | 0.48KB | 0.43KB | ▼ 11.56% |
icons/sticky-notes.png | 0.57KB | 0.45KB | ▼ 20.78% |
icons/calendar.png | 0.47KB | 0.42KB | ▼ 10.14% |
icons/anchor.png | 0.68KB | 0.54KB | ▼ 20.32% |