Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.32MB] [CPU: ▼0.54ms] Passed 4 tests
A check of server-side resources used by Custom Post Type Maker
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.33 | 42.05 ▼2.56 |
Dashboard /wp-admin | 3.62 ▲0.32 | 50.35 ▲0.43 |
Posts /wp-admin/edit.php | 3.68 ▲0.33 | 51.04 ▲3.46 |
Add New Post /wp-admin/post-new.php | 6.21 ▲0.33 | 91.21 ▼1.95 |
Media Library /wp-admin/upload.php | 3.55 ▲0.33 | 38.09 ▲1.94 |
Taxonomies /wp-admin/edit.php?post_type=cptm_tax | 3.60 | 37.96 |
Post Types /wp-admin/edit.php?post_type=cptm | 3.60 | 37.88 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Custom Post Type Maker
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,881 ▲146 | 13.37 ▼0.99 | 1.52 ▼0.37 | 41.34 ▼11.14 |
Dashboard /wp-admin | 2,290 ▲99 | 5.90 ▲1.01 | 110.58 ▼3.51 | 38.12 ▼9.05 |
Posts /wp-admin/edit.php | 2,170 ▲81 | 2.00 ▼0.01 | 39.80 ▲5.08 | 34.75 ▼3.21 |
Add New Post /wp-admin/post-new.php | 1,604 ▲71 | 23.41 ▲0.11 | 601.94 ▼78.71 | 49.18 ▼5.40 |
Media Library /wp-admin/upload.php | 1,469 ▲78 | 4.18 ▼0.07 | 94.95 ▼6.58 | 42.18 ▲0.56 |
Taxonomies /wp-admin/edit.php?post_type=cptm_tax | 1,169 | 2.03 | 36.64 | 39.93 |
Post Types /wp-admin/edit.php?post_type=cptm | 1,177 | 2.01 | 39.45 | 34.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
custom-post-type-maker/class-cptm.php 92% from 13 tests
The primary PHP file in "Custom Post Type Maker" version 1.2.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("custom-post-type-maker.php" instead of "class-cptm.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin1,539 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 143 | 197 | 1,272 |
CSS | 2 | 33 | 13 | 146 |
Markdown | 2 | 60 | 0 | 71 |
JavaScript | 2 | 10 | 0 | 50 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 240.00 |
▷ Minimum class complexity | 240.00 |
▷ Maximum class complexity | 240.00 |
Average method complexity | 12.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 85.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 | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin