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: ▼1.33MB] [CPU: ▼335.82ms] Passed 4 tests
Analyzing server-side resources used by Magee Custom Post
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.12 ▼0.40 | 17.25 ▼31.66 |
Dashboard /wp-admin | 3.03 ▼0.38 | 15.52 ▼25.67 |
Posts /wp-admin/edit.php | 3.03 ▼0.61 | 17.34 ▼35.16 |
Add New Post /wp-admin/post-new.php | 3.03 ▼3.94 | 19.03 ▼1,250.79 |
Media Library /wp-admin/upload.php | 3.03 ▼0.26 | 14.47 ▼9.65 |
Add Slide /wp-admin/post-new.php?post_type=mcp_slide | 3.03 | 17.52 |
Features /wp-admin/edit.php?post_type=mcp_feature | 3.03 | 16.38 |
Groups /wp-admin/edit-tags.php?taxonomy=mcp_client_group&post_type=mcp_client | 3.03 | 15.75 |
Slides /wp-admin/edit.php?post_type=mcp_slide | 3.03 | 14.90 |
Categories /wp-admin/edit-tags.php?taxonomy=mcp_team_group&post_type=mcp_team | 3.03 | 16.12 |
Slider /wp-admin/edit-tags.php?taxonomy=mcp_slider&post_type=mcp_slide | 3.03 | 14.99 |
Add Testimonial /wp-admin/post-new.php?post_type=mcp_testimonial | 3.03 | 15.64 |
Add Client /wp-admin/post-new.php?post_type=mcp_client | 3.03 | 16.57 |
Add Member /wp-admin/post-new.php?post_type=mcp_team | 3.03 | 16.06 |
Add Portfolio /wp-admin/post-new.php?post_type=mcp_portfolio | 3.03 | 14.32 |
Server storage [IO: ▲2.91MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 67 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Magee Custom Post
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,393 ▲635 | 17.94 ▲2.00 | 11.97 ▲5.90 | 2.93 ▼0.02 |
Dashboard /wp-admin | 3,348 ▲487 | 8.05 ▲1.83 | 144.48 ▲4.60 | 164.54 ▲3.08 |
Posts /wp-admin/edit.php | 3,193 ▲502 | 5.16 ▲1.93 | 80.25 ▲16.08 | 151.92 ▲8.99 |
Add New Post /wp-admin/post-new.php | 1,884 ▲223 | 22.01 ▲5.80 | 379.07 ▼45.92 | 160.56 ▲6.50 |
Media Library /wp-admin/upload.php | 1,993 ▲298 | 5.42 ▼0.06 | 107.49 ▼34.97 | 191.80 ▲2.58 |
Add Slide /wp-admin/post-new.php?post_type=mcp_slide | 3,452 | 10.16 | 212.78 | 251.35 |
Features /wp-admin/edit.php?post_type=mcp_feature | 1,878 | 5.11 | 75.91 | 127.49 |
Groups /wp-admin/edit-tags.php?taxonomy=mcp_client_group&post_type=mcp_client | 2,128 | 4.91 | 75.65 | 122.54 |
Slides /wp-admin/edit.php?post_type=mcp_slide | 1,881 | 5.10 | 77.23 | 128.01 |
Categories /wp-admin/edit-tags.php?taxonomy=mcp_team_group&post_type=mcp_team | 2,130 | 5.00 | 76.08 | 125.63 |
Slider /wp-admin/edit-tags.php?taxonomy=mcp_slider&post_type=mcp_slide | 2,128 | 4.96 | 77.09 | 124.77 |
Add Testimonial /wp-admin/post-new.php?post_type=mcp_testimonial | 3,312 | 10.11 | 196.49 | 240.18 |
Add Client /wp-admin/post-new.php?post_type=mcp_client | 2,619 | 6.23 | 103.43 | 184.39 |
Add Member /wp-admin/post-new.php?post_type=mcp_team | 3,535 | 10.17 | 198.79 | 301.66 |
Add Portfolio /wp-admin/post-new.php?post_type=mcp_portfolio | 3,473 | 10.21 | 194.27 | 232.10 |
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
You still need to fix the following
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/magee-custom-post/inc/metaboxes/init.php+701
count(): Parameter must be an array or an object that implements Countable
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 84 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=mcp_portfolio
- > Warning in wp-content/plugins/magee-custom-post/inc/metaboxes/init.php+701
count(): Parameter must be an array or an object that implements Countable
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
Please fix the following
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/magee-custom-post/inc/post-type/class-feature.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/magee-custom-post/inc/post-type/class-portfolio.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/magee-custom-post/inc/post-type/class-client.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/magee-custom-post/inc/metaboxes/metabox-options.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/magee-custom-post/inc/post-type/class-team.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/magee-custom-post/inc/post-type/class-slider.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/magee-custom-post/inc/post-type/class-testimonial.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/magee-custom-post/inc/metaboxes/init.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: Please describe screenshot #2 in magee-custom-post/assets to your readme.txt
magee-custom-post/magee-custom-post.php 92% from 13 tests
The main PHP script in "Magee Custom Post" version 1.0.4 is automatically included on every request by WordPress
Please take the time to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
Good job! No executable or dangerous file extensions detected18,568 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 11 | 71 | 98 | 10,411 |
JavaScript | 10 | 916 | 568 | 4,778 |
PHP | 14 | 790 | 839 | 2,406 |
SVG | 2 | 0 | 0 | 973 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 32.23 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 136.00 |
Average method complexity | 3.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 164 | |
▷ Static methods | 38 | 23.17% |
▷ Public methods | 161 | 98.17% |
▷ Protected methods | 2 | 1.22% |
▷ Private methods | 1 | 0.61% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/metaboxes/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
inc/metaboxes/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
inc/metaboxes/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
inc/metaboxes/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
inc/metaboxes/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |