Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲1.64MB] [CPU: ▲7.44ms] Passed 4 tests
An overview of server-side resources used by Timetable and Event Schedule by MotoPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.14 ▲1.68 | 52.70 ▲14.20 |
Dashboard /wp-admin | 4.97 ▲1.62 | 54.24 ▼3.99 |
Posts /wp-admin/edit.php | 5.03 ▲1.67 | 55.36 ▲10.92 |
Add New Post /wp-admin/post-new.php | 7.70 ▲1.81 | 104.53 ▲10.09 |
Media Library /wp-admin/upload.php | 4.83 ▲1.59 | 50.10 ▲12.73 |
Events /wp-admin/edit.php?post_type=mp-event | 4.95 | 44.63 |
Settings /wp-admin/edit.php?post_type=mp-event&page=mptt-settings | 4.87 | 41.20 |
Event Categories /wp-admin/edit-tags.php?taxonomy=mp-event_category&post_type=mp-event | 4.82 | 42.05 |
Add Column /wp-admin/post-new.php?post_type=mp-column | 7.69 | 92.66 |
Event Tags /wp-admin/edit-tags.php?taxonomy=mp-event_tag&post_type=mp-event | 4.82 | 44.56 |
Columns /wp-admin/edit.php?post_type=mp-column | 4.95 | 43.71 |
Add Event /wp-admin/post-new.php?post_type=mp-event | 7.76 | 92.25 |
Help & Shortcode /wp-admin/edit.php?post_type=mp-event&page=mptt-help | 4.87 | 43.59 |
Export / Import /wp-admin/edit.php?post_type=mp-event&page=mptt-import | 4.87 | 40.78 |
Server storage [IO: ▲1.04MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 126 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_mp_timetable_data |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_mp-timetable |
widget_theysaidso_widget |
mp_timetable_permalinks |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Timetable and Event Schedule by MotoPress: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,861 ▲100 | 14.36 ▲0.09 | 1.75 ▲0.20 | 43.09 ▲5.03 |
Dashboard /wp-admin | 2,257 ▲77 | 5.52 ▼0.13 | 83.50 ▼1.46 | 37.50 ▼5.60 |
Posts /wp-admin/edit.php | 2,164 ▲61 | 2.22 ▲0.23 | 35.65 ▼4.96 | 32.80 ▼2.62 |
Add New Post /wp-admin/post-new.php | 6,478 ▲4,952 | 23.44 ▲0.47 | 852.47 ▲188.18 | 38.02 ▼21.62 |
Media Library /wp-admin/upload.php | 1,462 ▲65 | 4.23 ▲0.05 | 99.07 ▼19.28 | 41.59 ▼6.07 |
Events /wp-admin/edit.php?post_type=mp-event | 1,195 | 2.15 | 33.31 | 32.14 |
Settings /wp-admin/edit.php?post_type=mp-event&page=mptt-settings | 1,211 | 1.80 | 27.11 | 37.51 |
Event Categories /wp-admin/edit-tags.php?taxonomy=mp-event_category&post_type=mp-event | 1,341 | 2.24 | 32.49 | 29.55 |
Add Column /wp-admin/post-new.php?post_type=mp-column | 6,333 | 19.81 | 880.15 | 30.87 |
Event Tags /wp-admin/edit-tags.php?taxonomy=mp-event_tag&post_type=mp-event | 1,310 | 2.30 | 33.65 | 28.93 |
Columns /wp-admin/edit.php?post_type=mp-column | 1,153 | 2.14 | 34.70 | 29.99 |
Add Event /wp-admin/post-new.php?post_type=mp-event | 2,764 | 17.72 | 783.61 | 76.27 |
Help & Shortcode /wp-admin/edit.php?post_type=mp-event&page=mptt-help | 1,500 | 1.79 | 28.46 | 43.59 |
Export / Import /wp-admin/edit.php?post_type=mp-event&page=mptt-import | 1,176 | 2.00 | 25.67 | 31.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% 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 1 table in the database
- wp_mp_timetable_data
- Zombie WordPress options detected upon uninstall: 8 options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_mp-timetable
- can_compress_scripts
- mp_timetable_permalinks
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% 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 items
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/mp-timetable/templates/shortcodes/table-header.php
- > /wp-content/plugins/mp-timetable/admin/import/footer.php
- > /wp-content/plugins/mp-timetable/templates/events/no-script.php
- 52× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/mp-timetable/templates/theme/event-timeslots.php:3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/mp-timetable/templates/widgets/widget-view.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/mp-timetable/templates/column/metabox-column-options.php:2
- > PHP Fatal error
Uncaught Error: Class 'mp_timetable\\plugin_core\\classes\\Model' not found in wp-content/plugins/mp-timetable/classes/models/class-column.php:10
- > PHP Fatal error
Uncaught Error: Class 'mp_timetable\\plugin_core\\classes\\Module' not found in wp-content/plugins/mp-timetable/classes/modules/class-taxonomy.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/mp-timetable/admin/import/export.php:1
- > PHP Fatal error
Uncaught Error: Class 'mp_timetable\\plugin_core\\classes\\Model' not found in wp-content/plugins/mp-timetable/classes/models/class-settings.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post() in wp-content/plugins/mp-timetable/templates/shortcodes/event-container.php:1
- > PHP Fatal error
Uncaught Error: Class 'mp_timetable\\plugin_core\\classes\\Controller' not found in wp-content/plugins/mp-timetable/classes/controllers/class-controller-import.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/mp-timetable/templates/events/metabox-event-data.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
10 plugin tags: events calendar, dates, event organizer, booking, event...
mp-timetable/mp-timetable.php Passed 13 tests
The entry point to "Timetable and Event Schedule by MotoPress" version 2.4.9 is a PHP file that has certain tags in its header comment area
108 characters long description:
Smart time-management tool with a clean minimalist design for featuring your timetables and upcoming events.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin16,588 lines of code in 104 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 64 | 1,600 | 2,410 | 8,012 |
JavaScript | 21 | 1,003 | 951 | 5,504 |
PO File | 2 | 449 | 553 | 1,069 |
CSS | 11 | 195 | 75 | 1,032 |
LESS | 5 | 79 | 24 | 809 |
JSON | 1 | 0 | 0 | 162 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 28.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 241.00 |
Average method complexity | 3.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 56.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 35 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 35 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 341 | |
▷ Static methods | 52 | 15.25% |
▷ Public methods | 278 | 81.52% |
▷ Protected methods | 54 | 15.84% |
▷ Private methods | 9 | 2.64% |
Functions | 44 | |
▷ Named functions | 39 | 88.64% |
▷ Anonymous functions | 5 | 11.36% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
16 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
media/css/images/ui-bg_gloss-wave_35_f6a828_500x100.png | 3.67KB | 1.93KB | ▼ 47.53% |
media/css/images/column_icon.png | 2.29KB | 0.98KB | ▼ 56.96% |
media/css/images/ui-bg_glass_100_f6f6f6_1x400.png | 0.10KB | 0.11KB | 0.00% |
media/css/images/ui-icons_228ef1_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
media/css/images/ui-bg_highlight-soft_75_ffe45c_1x100.png | 0.13KB | 0.18KB | 0.00% |