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: ▼4.18ms] Passed 4 tests
An overview of server-side resources used by WordPress Canvas - Custom Post Types
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 36.74 ▼8.96 |
Dashboard /wp-admin | 3.36 ▲0.06 | 45.70 ▼2.74 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 47.19 ▲1.10 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 81.05 ▼5.37 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 34.89 ▲0.36 |
Portfolio Items /wp-admin/edit.php?post_type=wc_portfolio_item | 3.32 | 36.53 |
Tags /wp-admin/edit-tags.php?taxonomy=wc_portfolio_tag&post_type=wc_portfolio_item | 3.27 | 28.13 |
Add New /wp-admin/post-new.php?post_type=wc_portfolio_item | 3.41 | 53.81 |
Categories /wp-admin/edit-tags.php?taxonomy=wc_portfolio_cat&post_type=wc_portfolio_item | 3.28 | 34.35 |
WC Post Types /wp-admin/options-general.php?page=wc-cpt | 3.22 | 26.56 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WordPress Canvas - Custom Post Types
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲95 | 13.25 ▼1.03 | 1.77 ▲0.08 | 40.60 ▼5.70 |
Dashboard /wp-admin | 2,244 ▲56 | 5.88 ▲0.02 | 96.69 ▼20.09 | 72.78 ▲30.28 |
Posts /wp-admin/edit.php | 2,127 ▲41 | 1.97 ▼0.06 | 38.33 ▲2.34 | 36.22 ▼0.26 |
Add New Post /wp-admin/post-new.php | 1,565 ▲46 | 18.23 ▼4.79 | 688.83 ▲1.66 | 64.94 ▲9.39 |
Media Library /wp-admin/upload.php | 1,429 ▲44 | 4.23 ▲0.04 | 93.38 ▼6.13 | 63.60 ▲20.59 |
Portfolio Items /wp-admin/edit.php?post_type=wc_portfolio_item | 1,133 | 1.95 | 30.28 | 29.15 |
Tags /wp-admin/edit-tags.php?taxonomy=wc_portfolio_tag&post_type=wc_portfolio_item | 1,269 | 2.14 | 29.43 | 30.58 |
Add New /wp-admin/post-new.php?post_type=wc_portfolio_item | 2,566 | 7.74 | 171.60 | 116.30 |
Categories /wp-admin/edit-tags.php?taxonomy=wc_portfolio_cat&post_type=wc_portfolio_item | 1,303 | 2.13 | 25.92 | 31.03 |
WC Post Types /wp-admin/options-general.php?page=wc-cpt | 871 | 2.22 | 24.02 | 30.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=wc-cpt
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=wc-cpt
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-custom-post-types/wc-custom-post-types.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/wc-custom-post-types/uninstall.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-custom-post-types/includes/post-types.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-custom-post-types/admin/admin.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-custom-post-types/includes/taxonomies.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wc-custom-post-types/includes/functions.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: custom post types, portfolio, custom post type, common post types, custom portfolio
wc-custom-post-types/wc-custom-post-types.php Passed 13 tests
Analyzing the main PHP file in "WordPress Canvas - Custom Post Types" version 1.3
71 characters long description:
Portfolio post types with minimal configuration to be used with themes.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected547 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 116 | 277 | 380 |
PO File | 1 | 350 | 829 | 133 |
Markdown | 1 | 23 | 0 | 34 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 21 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/screen-icon.png | 1.20KB | 1.25KB | 0.00% |
images/menu-icon.png | 0.77KB | 0.78KB | 0.00% |