Benchmarks
Plugin footprint 83% 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.05MB] [CPU: ▼2.38ms] Passed 4 tests
This is a short check of server-side resources used by Easy CPT Maker
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 36.41 ▼4.46 |
Dashboard /wp-admin | 3.36 ▲0.05 | 50.72 ▼1.02 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 51.77 ▼2.77 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 97.00 ▲3.89 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.70 ▼1.25 |
Add New Custom Post Type /wp-admin/post-new.php?post_type=ecpt_cpt | 3.37 | 47.64 |
All Custom Post Types /wp-admin/edit.php?post_type=ecpt_cpt | 3.33 | 36.64 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Easy CPT Maker
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 14.19 ▼0.29 | 1.97 ▼0.03 | 41.07 ▼3.15 |
Dashboard /wp-admin | 2,222 ▲51 | 5.64 ▲0.11 | 93.00 ▼4.76 | 42.03 ▼4.69 |
Posts /wp-admin/edit.php | 2,127 ▲24 | 2.00 ▼0.01 | 38.85 ▼4.50 | 36.22 ▼1.31 |
Add New Post /wp-admin/post-new.php | 1,391 ▼139 | 16.58 ▼6.56 | 566.26 ▼70.79 | 51.94 ▼4.14 |
Media Library /wp-admin/upload.php | 1,427 ▲27 | 4.17 ▼0.04 | 102.26 ▼5.78 | 42.01 ▼5.68 |
Add New Custom Post Type /wp-admin/post-new.php?post_type=ecpt_cpt | 1,866 | 3.55 | 65.99 | 34.41 |
All Custom Post Types /wp-admin/edit.php?post_type=ecpt_cpt | 1,100 | 1.96 | 32.23 | 30.06 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/easy-cpt-maker/inc/starter.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-cpt-maker/inc/hooks.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
2 plugin tags: cpt, custom post type
easy-cpt-maker/easy-cptmaker.php 85% from 13 tests
"Easy CPT Maker" version 0.0.1'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:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("easy-cpt-maker.php" instead of "easy-cptmaker.php")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
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
Good job! No executable or dangerous file extensions detected194 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 16 | 44 | 194 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
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 | 4 | |
▷ Global constants | 4 | 100.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