68% mp-timetable

Code Review | Timetable and Event Schedule by MotoPress

WordPress plugin Timetable and Event Schedule by MotoPress scored68%from 54 tests.

About plugin

  • Plugin page: mp-timetable
  • Plugin version: 2.4.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2
  • WordPress version: 6.3.1
  • First release: Apr 4, 2016
  • Latest release: Apr 17, 2023
  • Number of updates: 116
  • Update frequency: every 22.4 days
  • Top authors: MotoPress (82.76%)jetmonsters (15.52%)endzevich (3.45%)

Code review

54 tests

User reviews

61 reviews

Install metrics

30,000+ active /660,124 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /5.14 ▲1.6852.70 ▲14.20
Dashboard /wp-admin4.97 ▲1.6254.24 ▼3.99
Posts /wp-admin/edit.php5.03 ▲1.6755.36 ▲10.92
Add New Post /wp-admin/post-new.php7.70 ▲1.81104.53 ▲10.09
Media Library /wp-admin/upload.php4.83 ▲1.5950.10 ▲12.73
Events /wp-admin/edit.php?post_type=mp-event4.9544.63
Settings /wp-admin/edit.php?post_type=mp-event&page=mptt-settings4.8741.20
Event Categories /wp-admin/edit-tags.php?taxonomy=mp-event_category&post_type=mp-event4.8242.05
Add Column /wp-admin/post-new.php?post_type=mp-column7.6992.66
Event Tags /wp-admin/edit-tags.php?taxonomy=mp-event_tag&post_type=mp-event4.8244.56
Columns /wp-admin/edit.php?post_type=mp-column4.9543.71
Add Event /wp-admin/post-new.php?post_type=mp-event7.7692.25
Help & Shortcode /wp-admin/edit.php?post_type=mp-event&page=mptt-help4.8743.59
Export / Import /wp-admin/edit.php?post_type=mp-event&page=mptt-import4.8740.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,861 ▲10014.36 ▲0.091.75 ▲0.2043.09 ▲5.03
Dashboard /wp-admin2,257 ▲775.52 ▼0.1383.50 ▼1.4637.50 ▼5.60
Posts /wp-admin/edit.php2,164 ▲612.22 ▲0.2335.65 ▼4.9632.80 ▼2.62
Add New Post /wp-admin/post-new.php6,478 ▲4,95223.44 ▲0.47852.47 ▲188.1838.02 ▼21.62
Media Library /wp-admin/upload.php1,462 ▲654.23 ▲0.0599.07 ▼19.2841.59 ▼6.07
Events /wp-admin/edit.php?post_type=mp-event1,1952.1533.3132.14
Settings /wp-admin/edit.php?post_type=mp-event&page=mptt-settings1,2111.8027.1137.51
Event Categories /wp-admin/edit-tags.php?taxonomy=mp-event_category&post_type=mp-event1,3412.2432.4929.55
Add Column /wp-admin/post-new.php?post_type=mp-column6,33319.81880.1530.87
Event Tags /wp-admin/edit-tags.php?taxonomy=mp-event_tag&post_type=mp-event1,3102.3033.6528.93
Columns /wp-admin/edit.php?post_type=mp-column1,1532.1434.7029.99
Add Event /wp-admin/post-new.php?post_type=mp-event2,76417.72783.6176.27
Help & Shortcode /wp-admin/edit.php?post_type=mp-event&page=mptt-help1,5001.7928.4643.59
Export / Import /wp-admin/edit.php?post_type=mp-event&page=mptt-import1,1762.0025.6731.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP641,6002,4108,012
JavaScript211,0039515,504
PO File24495531,069
CSS11195751,032
LESS57924809
JSON100162

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 code0.42
Average class complexity28.71
▷ Minimum class complexity1.00
▷ Maximum class complexity241.00
Average method complexity3.85
▷ Minimum method complexity1.00
▷ Maximum method complexity56.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes35
▷ Abstract classes00.00%
▷ Concrete classes35100.00%
▷ Final classes00.00%
Methods341
▷ Static methods5215.25%
▷ Public methods27881.52%
▷ Protected methods5415.84%
▷ Private methods92.64%
Functions44
▷ Named functions3988.64%
▷ Anonymous functions511.36%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
media/css/images/ui-bg_gloss-wave_35_f6a828_500x100.png3.67KB1.93KB▼ 47.53%
media/css/images/column_icon.png2.29KB0.98KB▼ 56.96%
media/css/images/ui-bg_glass_100_f6f6f6_1x400.png0.10KB0.11KB0.00%
media/css/images/ui-icons_228ef1_256x240.png4.27KB4.11KB▼ 3.78%
media/css/images/ui-bg_highlight-soft_75_ffe45c_1x100.png0.13KB0.18KB0.00%