Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲1.25MB] [CPU: ▲6.49ms] 75% from 4 tests
Server-side resources used by Online Lesson Booking
Please take the time to fix the following items
- CPU: Try to keep total CPU usage under 500.00ms (currently 5,375.56ms on /wp-admin/admin.php?page=olb-settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.74 ▲1.28 | 51.02 ▲10.08 |
Dashboard /wp-admin | 4.84 ▲1.49 | 91.32 ▲31.96 |
Posts /wp-admin/edit.php | 4.60 ▲1.24 | 52.01 ▲1.99 |
Add New Post /wp-admin/post-new.php | 7.13 ▲1.24 | 109.01 ▲6.25 |
Media Library /wp-admin/upload.php | 4.47 ▲1.24 | 43.79 ▲7.64 |
Mail /wp-admin/admin.php?page=olb-mail | 4.44 | 39.35 |
Special Pages /wp-admin/admin.php?page=olb-specialpages | 4.44 | 41.21 |
General /wp-admin/admin.php?page=olb-settings | 5.75 | 5,375.56 |
Reset /wp-admin/admin.php?page=olb-reset | 4.44 | 41.66 |
Server storage [IO: ▲0.85MB] [DB: ▲0.06MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 29 new files
Database: 3 new tables, 11 new options
New tables |
---|
wp_olb_history |
wp_olb_timetable |
wp_olb_logs |
New WordPress options |
---|
olbversion |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
olbsystem |
widget_olbwidgetmembersmenu |
theysaidso_admin_options |
widget_olbwidgetteachersmenu |
widget_olbwidgetadminsmenu |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Online Lesson Booking
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,004 ▲257 | 13.40 ▼0.95 | 8.52 ▲6.88 | 40.91 ▼6.63 |
Dashboard /wp-admin | 2,305 ▲125 | 5.65 ▼0.00 | 82.47 ▼7.02 | 40.41 ▲3.63 |
Posts /wp-admin/edit.php | 2,137 ▲37 | 2.01 ▲0.01 | 37.83 ▼1.93 | 33.54 ▲1.44 |
Add New Post /wp-admin/post-new.php | 1,556 ▲30 | 23.64 ▲0.69 | 637.97 ▼41.60 | 54.50 ▼2.77 |
Media Library /wp-admin/upload.php | 1,437 ▲43 | 4.18 ▲0.01 | 96.20 ▲0.06 | 42.05 ▲0.84 |
Mail /wp-admin/admin.php?page=olb-mail | 1,111 | 2.00 | 26.52 | 27.95 |
Special Pages /wp-admin/admin.php?page=olb-specialpages | 1,021 | 2.00 | 24.84 | 27.56 |
General /wp-admin/admin.php?page=olb-settings | 1,271 | 2.01 | 23.26 | 30.80 |
Reset /wp-admin/admin.php?page=olb-reset | 871 | 2.00 | 25.04 | 26.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.06MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 3 tables in the database
- wp_olb_timetable
- wp_olb_history
- wp_olb_logs
- The uninstall procedure has failed, leaving 9 options in the database
- widget_olbwidgetmembersmenu
- theysaidso_admin_options
- can_compress_scripts
- widget_olbwidgetadminsmenu
- widget_olbwidgetteachersmenu
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/online-lesson-booking-system/class/my-adminpage.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/online-lesson-booking-system/class/my-calendar.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/online-lesson-booking-system/class/my-settings.php:6
- > PHP Fatal error
Uncaught Error: Class 'olbPaging' not found in wp-content/plugins/online-lesson-booking-system/class/my-history.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/online-lesson-booking-system/class/my-ticket.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/online-lesson-booking-system/class/my-widget.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/online-lesson-booking-system/class/my-hookactions.php:5
- > PHP Fatal error
Uncaught Error: Class 'OLBsystem' not found in wp-content/plugins/online-lesson-booking-system/class/my-timetable.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/online-lesson-booking-system/class/my-settings.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/online-lesson-booking-system/class/my-room.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 ("Scheduler" page), #2 ("Daily schedule" page), #3 ("Weekly schedule" page), #4 ("Reservation form" page), #5 ("Plugin option" page)
online-lesson-booking-system/olb-system.php 92% from 13 tests
The main file in "Online Lesson Booking" v. 0.9.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("online-lesson-booking-system.php" instead of "olb-system.php")
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
Success! There were no dangerous files found in this plugin7,988 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 738 | 1,252 | 6,751 |
PO File | 1 | 228 | 274 | 623 |
CSS | 3 | 41 | 41 | 561 |
JavaScript | 1 | 2 | 3 | 53 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 38.04 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 203.00 |
Average method complexity | 4.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 23 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 223 | |
▷ Static methods | 153 | 68.61% |
▷ Public methods | 223 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.51MB with 0.40MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-5.png | 195.84KB | 36.33KB | ▼ 81.45% |
screenshot-3.png | 105.58KB | 15.85KB | ▼ 84.99% |
screenshot-2.png | 91.88KB | 20.38KB | ▼ 77.82% |
screenshot-4.png | 22.89KB | 6.46KB | ▼ 71.80% |
screenshot-1.png | 106.91KB | 22.30KB | ▼ 79.14% |