Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲1.10MB] [CPU: ▲5.40ms] Passed 4 tests
An overview of server-side resources used by Essential Content Types
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.54 ▲1.08 | 45.31 ▲6.37 |
Dashboard /wp-admin | 4.42 ▲1.11 | 55.95 ▲8.80 |
Posts /wp-admin/edit.php | 4.47 ▲1.11 | 58.21 ▲8.65 |
Add New Post /wp-admin/post-new.php | 7.50 ▲1.61 | 96.45 ▼2.23 |
Media Library /wp-admin/upload.php | 4.34 ▲1.10 | 43.37 ▲11.70 |
Menu Item Labels /wp-admin/edit-tags.php?taxonomy=ect_food_menu_item_label&post_type=ect_food_menu_item | 4.33 | 40.66 |
Menu Sections /wp-admin/edit-tags.php?taxonomy=ect_food_menu&post_type=ect_food_menu_item | 4.33 | 42.62 |
Service Types /wp-admin/edit-tags.php?taxonomy=ect-service-type&post_type=ect-service | 4.33 | 42.19 |
Add New /wp-admin/post-new.php?post_type=jetpack-testimonial | 7.50 | 92.72 |
Add Many Items /wp-admin/edit.php?post_type=ect_food_menu_item&page=add_many_ect_food_items | 4.31 | 46.58 |
All Contents /wp-admin/edit.php?post_type=featured-content | 4.39 | 49.19 |
All Testimonials /wp-admin/edit.php?post_type=jetpack-testimonial | 4.38 | 43.86 |
Menu Items /wp-admin/edit.php?post_type=ect_food_menu_item | 4.39 | 43.63 |
Add New /wp-admin/post-new.php?post_type=ect-service | 7.50 | 101.79 |
All Projects /wp-admin/edit.php?post_type=jetpack-portfolio | 4.39 | 44.72 |
Server storage [IO: ▲0.66MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 61 new files
Database: no new tables, 11 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
ect_portfolio |
ect_featured_content |
widget_recent-posts |
ect_testimonial |
widget_recent-comments |
ect_food_menu |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Essential Content Types
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,028 ▲266 | 14.34 ▲0.02 | 1.82 ▲0.09 | 37.91 ▼6.83 |
Dashboard /wp-admin | 2,393 ▲213 | 5.59 ▲0.05 | 94.18 ▼0.86 | 42.27 ▼6.31 |
Posts /wp-admin/edit.php | 2,292 ▲189 | 1.98 ▼0.02 | 40.09 ▼2.10 | 37.82 ▼0.68 |
Add New Post /wp-admin/post-new.php | 1,686 ▲152 | 23.15 ▲4.71 | 673.99 ▲14.92 | 54.54 ▼14.21 |
Media Library /wp-admin/upload.php | 1,592 ▲198 | 4.09 ▼0.17 | 102.00 ▲2.81 | 43.27 ▼1.14 |
Menu Item Labels /wp-admin/edit-tags.php?taxonomy=ect_food_menu_item_label&post_type=ect_food_menu_item | 1,441 | 2.14 | 33.80 | 35.36 |
Menu Sections /wp-admin/edit-tags.php?taxonomy=ect_food_menu&post_type=ect_food_menu_item | 1,466 | 2.14 | 28.47 | 31.57 |
Service Types /wp-admin/edit-tags.php?taxonomy=ect-service-type&post_type=ect-service | 1,469 | 2.14 | 29.99 | 31.89 |
Add New /wp-admin/post-new.php?post_type=jetpack-testimonial | 6,331 | 19.34 | 929.37 | 35.51 |
Add Many Items /wp-admin/edit.php?post_type=ect_food_menu_item&page=add_many_ect_food_items | 1,110 | 1.66 | 26.57 | 38.06 |
All Contents /wp-admin/edit.php?post_type=featured-content | 1,328 | 1.93 | 32.86 | 31.89 |
All Testimonials /wp-admin/edit.php?post_type=jetpack-testimonial | 1,265 | 1.94 | 31.94 | 32.97 |
Menu Items /wp-admin/edit.php?post_type=ect_food_menu_item | 1,267 | 2.36 | 36.98 | 30.19 |
Add New /wp-admin/post-new.php?post_type=ect-service | 6,382 | 23.22 | 826.71 | 33.90 |
All Projects /wp-admin/edit.php?post_type=jetpack-portfolio | 1,325 | 1.94 | 33.55 | 32.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options were found after uninstall: 8 options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- ect_food_menu
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- ect_service
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 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
Please fix the following
- 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/essential-content-types/admin/class-service.php:641
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/essential-content-types/admin/class-food-menu.php:1429
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/essential-content-types/admin/class-testimonial.php:694
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/essential-content-types/admin/class-featured-content.php:685
- > PHP Fatal error
Uncaught Error: Call to undefined function remove_action() in wp-content/plugins/essential-content-types/includes/CatchThemesThemePlugin.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/essential-content-types/admin/partials/footer.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/essential-content-types/admin/partials/dashboard-display.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/essential-content-types/admin/class-portfolio.php:778
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/essential-content-types/admin/partials/sidebar.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/essential-content-types/admin/partials/essential-content-types-admin-display.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
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
Attributes that require attention:
- Tags: There are too many tags (16 tag instead of maximum 10)
essential-content-types/essential-content-types.php 92% from 13 tests
The primary PHP file in "Essential Content Types" version 2.2.3 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 286 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin8,015 lines of code in 50 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 1,153 | 1,662 | 4,832 |
CSS | 10 | 351 | 178 | 1,763 |
PO File | 1 | 398 | 465 | 1,113 |
JavaScript | 13 | 89 | 55 | 307 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 31.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 127.00 |
Average method complexity | 3.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 180 | |
▷ Static methods | 34 | 18.89% |
▷ Public methods | 175 | 97.22% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 2.78% |
Functions | 54 | |
▷ Named functions | 54 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 25 | |
▷ Global constants | 4 | 16.00% |
▷ Class constants | 21 | 84.00% |
▷ Public constants | 21 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/premium-plugin-246x116.png | 9.01KB | 4.16KB | ▼ 53.83% |
admin/images/free-plugin-246x116.png | 8.01KB | 3.81KB | ▼ 52.42% |