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
Install script ran successfully
Server metrics [RAM: ▲1.21MB] [CPU: ▼0.68ms] Passed 4 tests
This is a short check of server-side resources used by TP Education
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.65 ▲1.19 | 45.77 ▲0.21 |
Dashboard /wp-admin | 4.52 ▲1.22 | 56.02 ▲4.41 |
Posts /wp-admin/edit.php | 4.57 ▲1.22 | 59.36 ▲8.12 |
Add New Post /wp-admin/post-new.php | 7.13 ▲1.24 | 103.96 ▼15.46 |
Media Library /wp-admin/upload.php | 4.44 ▲1.21 | 45.82 ▲12.80 |
All Testimonials /wp-admin/edit.php?post_type=tp-testimonial | 4.49 | 45.12 |
Add New /wp-admin/post-new.php?post_type=tp-class | 4.60 | 66.35 |
All Events /wp-admin/edit.php?post_type=tp-event | 4.49 | 47.82 |
Add New /wp-admin/post-new.php?post_type=tp-excursion | 4.60 | 64.46 |
Team Category /wp-admin/edit-tags.php?taxonomy=tp-team-category&post_type=tp-team | 4.44 | 42.64 |
Event Tag /wp-admin/edit-tags.php?taxonomy=tp-event-tag&post_type=tp-event | 4.44 | 50.22 |
Excursion Tag /wp-admin/edit-tags.php?taxonomy=tp-excursion-tag&post_type=tp-excursion | 4.44 | 43.38 |
All Team /wp-admin/edit.php?post_type=tp-team | 4.49 | 45.00 |
TP Education Settings /wp-admin/options-general.php?page=tp-education-admin | 4.35 | 40.66 |
Event Category /wp-admin/edit-tags.php?taxonomy=tp-event-category&post_type=tp-event | 4.44 | 42.12 |
Server storage [IO: ▲0.69MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 83 new files
Database: no new tables, 10 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_widget_tp_featured_course_widget |
widget_theysaidso_widget |
widget_widget_tp_top_affiliation_widget |
widget_recent-posts |
tp_education_setting_option |
widget_tp_education_team_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for TP Education
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,157 ▲396 | 13.58 ▼0.77 | 10.66 ▲8.74 | 37.30 ▼9.40 |
Dashboard /wp-admin | 2,438 ▲261 | 5.69 ▼0.04 | 91.55 ▲3.21 | 41.30 ▼3.19 |
Posts /wp-admin/edit.php | 2,343 ▲243 | 1.98 ▼0.05 | 41.57 ▲0.80 | 36.01 ▲2.79 |
Add New Post /wp-admin/post-new.php | 1,748 ▲222 | 23.17 ▲0.16 | 665.34 ▼21.48 | 56.37 ▲2.63 |
Media Library /wp-admin/upload.php | 1,643 ▲246 | 4.25 ▲0.08 | 93.80 ▼37.74 | 44.22 ▲0.09 |
All Testimonials /wp-admin/edit.php?post_type=tp-testimonial | 1,355 | 1.93 | 31.48 | 31.00 |
Add New /wp-admin/post-new.php?post_type=tp-class | 3,043 | 7.94 | 180.24 | 71.40 |
All Events /wp-admin/edit.php?post_type=tp-event | 1,366 | 1.97 | 32.17 | 32.68 |
Add New /wp-admin/post-new.php?post_type=tp-excursion | 2,995 | 8.18 | 174.52 | 65.14 |
Team Category /wp-admin/edit-tags.php?taxonomy=tp-team-category&post_type=tp-team | 1,514 | 2.14 | 28.25 | 30.49 |
Event Tag /wp-admin/edit-tags.php?taxonomy=tp-event-tag&post_type=tp-event | 1,489 | 2.27 | 30.65 | 36.16 |
Excursion Tag /wp-admin/edit-tags.php?taxonomy=tp-excursion-tag&post_type=tp-excursion | 1,489 | 2.26 | 26.14 | 31.78 |
All Team /wp-admin/edit.php?post_type=tp-team | 1,366 | 1.96 | 34.26 | 32.07 |
TP Education Settings /wp-admin/options-general.php?page=tp-education-admin | 1,083 | 1.70 | 25.60 | 29.48 |
Event Category /wp-admin/edit-tags.php?taxonomy=tp-event-category&post_type=tp-event | 1,520 | 2.17 | 27.03 | 29.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.04MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 10 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_widget_tp_top_affiliation_widget
- widget_tp_education_team_widget
- widget_theysaidso_widget
- tp_education_setting_option
- widget_widget_tp_featured_course_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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 take a closer look at the following
- 26× 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/tp-education/template-parts/tp-search-tab-class-form.php:43
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tp-education/template-parts/tp-search-tab-excursion-form.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tp-education/template-parts/tp-content-single.php:222
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/tp-education/templates/tp-archive-affiliation.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/tp-education/templates/tp-archive-search.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tp-education/template-parts/tp-content-class.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tp-education/template-parts/tp-search-tab-event-form.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/tp-education/templates/tp-archive-course.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tp-education/template-parts/tp-content-excursion.php:67
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/tp-education/templates/tp-archive-excursion.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: custom post type, meta data, education
tp-education/tp-education.php 92% from 13 tests
The main PHP file in "TP Education" ver. 4.5 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 207 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected9,792 lines of code in 70 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 52 | 848 | 1,270 | 4,671 |
CSS | 10 | 414 | 38 | 4,118 |
JavaScript | 8 | 226 | 69 | 1,003 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 17.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 90.00 |
Average method complexity | 4.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 24 | 100.00% |
▷ Final classes | 1 | 4.17% |
Methods | 114 | |
▷ Static methods | 1 | 0.88% |
▷ Public methods | 112 | 98.25% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 1.75% |
Functions | 78 | |
▷ Named functions | 78 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/images/ui-icons_555555_256x240.png | 3.53KB | 3.53KB | 0.03% |
assets/css/images/ui-icons_cc0000_256x240.png | 3.19KB | 3.49KB | 0.00% |
assets/css/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.08KB | 0.08KB | 0.00% |
assets/css/images/ui-icons_ffffff_256x240.png | 3.19KB | 3.49KB | 0.00% |
assets/css/images/ui-icons_444444_256x240.png | 3.52KB | 3.52KB | 0.06% |