Benchmarks
Plugin footprint 47% 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: ▲4.94MB] [CPU: ▲36.53ms] 75% from 4 tests
This is a short check of server-side resources used by Court Reservation - Manage Your Court Bookings Online
Please take the time to fix the following items
- CPU: Try to keep total CPU usage under 500.00ms (currently 1,802.73ms on /wp-admin/admin.php?page=court-reservation)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.44 ▲4.98 | 73.39 ▲29.45 |
Dashboard /wp-admin | 8.46 ▲5.16 | 85.72 ▲33.61 |
Posts /wp-admin/edit.php | 8.46 ▲5.10 | 88.59 ▲42.88 |
Add New Post /wp-admin/post-new.php | 10.42 ▲4.54 | 133.96 ▲40.18 |
Media Library /wp-admin/upload.php | 8.46 ▲5.23 | 84.86 ▲53.33 |
Reservations /wp-admin/admin.php?page=courtres-reservations | 8.46 | 72.21 |
Edit Members /wp-admin/admin.php?page=courtres-user | 8.46 | 68.26 |
Settings /wp-admin/admin.php?page=courtres | 8.46 | 66.53 |
Challenges /wp-admin/admin.php?page=courtres-challenges | 8.46 | 68.54 |
Court Reservation /wp-admin/admin.php?page=court-reservation | 8.46 | 1,802.73 |
Members /wp-admin/admin.php?page=courtres-users | 8.46 | 82.15 |
Edit Court /wp-admin/admin.php?page=courtres-court | 8.46 | 69.61 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 8.46 | 69.50 |
Events /wp-admin/admin.php?page=courtres-events | 8.46 | 66.99 |
Edit Events /wp-admin/admin.php?page=courtres-event | 8.46 | 71.11 |
Server storage [IO: ▲3.78MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 258 new files
Database: 8 new tables, 10 new options
New tables |
---|
wp_courtres_reserv_players |
wp_courtres_settings |
wp_courtres_piramids_players |
wp_courtres_courts |
wp_courtres_events |
wp_courtres_piramid_challenges |
wp_courtres_reservations |
wp_courtres_piramids |
New WordPress options |
---|
fs_active_plugins |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
fs_debug_mode |
fs_accounts |
widget_theysaidso_widget |
fs_gdpr |
Browser metrics Passed 4 tests
Court Reservation - Manage Your Court Bookings Online: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,098 ▲311 | 14.19 ▼0.21 | 10.71 ▲8.66 | 27.31 ▼19.10 |
Dashboard /wp-admin | 2,371 ▲197 | 5.83 ▲0.24 | 102.22 ▲7.35 | 45.58 ▲5.89 |
Posts /wp-admin/edit.php | 2,291 ▲191 | 2.71 ▲0.74 | 59.54 ▲21.91 | 35.97 ▼0.71 |
Add New Post /wp-admin/post-new.php | 1,674 ▲145 | 21.04 ▼2.65 | 679.74 ▼2.70 | 58.40 ▲5.85 |
Media Library /wp-admin/upload.php | 1,579 ▲176 | 4.31 ▲0.02 | 121.42 ▲17.66 | 42.65 ▼6.16 |
Reservations /wp-admin/admin.php?page=courtres-reservations | 1,159 | 2.29 | 45.50 | 30.39 |
Edit Members /wp-admin/admin.php?page=courtres-user | 1,258 | 9.70 | 103.57 | 27.23 |
Settings /wp-admin/admin.php?page=courtres | 1,143 | 2.13 | 33.30 | 28.66 |
Challenges /wp-admin/admin.php?page=courtres-challenges | 1,280 | 2.39 | 45.50 | 28.92 |
Court Reservation /wp-admin/admin.php?page=court-reservation | 1,401 | 2.18 | 35.55 | 51.96 |
Members /wp-admin/admin.php?page=courtres-users | 1,128 | 2.24 | 36.10 | 30.30 |
Edit Court /wp-admin/admin.php?page=courtres-court | 1,030 | 2.00 | 31.43 | 28.99 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 1,215 | 2.11 | 31.73 | 28.49 |
Events /wp-admin/admin.php?page=courtres-events | 1,117 | 2.25 | 32.99 | 30.44 |
Edit Events /wp-admin/admin.php?page=courtres-event | 1,099 | 2.24 | 35.89 | 30.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/court-reservation/freemius/includes/class-freemius.php+8663
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 4 tables in the database
- wp_courtres_piramid_challenges
- wp_courtres_piramids
- wp_courtres_reserv_players
- wp_courtres_piramids_players
- Zombie WordPress options detected upon uninstall: 10 options
- fs_gdpr
- widget_recent-comments
- db_upgraded
- fs_accounts
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- fs_active_plugins
- fs_debug_mode
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=courtres-event
- > Notice in wp-content/plugins/court-reservation/includes/class-courtres-base.php+91
Trying to get property 'option_value' of non-object
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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/court-reservation/admin/partials/courtres-notice-message.php
- 40× 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 esc_attr() in wp-content/plugins/court-reservation/public/partials/courtres-public-table-calendar.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/court-reservation/public/partials/courtres-public-display.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/court-reservation/admin/partials/courtres-courts.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/court-reservation/admin/partials/__courtres-settings.php:17
- > PHP Notice
Undefined variable: atts in wp-content/plugins/court-reservation/public/partials/courtres-public-table.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/court-reservation/public/partials/courtres-public-challenges.php:19
- > PHP Fatal error
Uncaught Error: Class 'Courtres_Entity_Base' not found in wp-content/plugins/court-reservation/includes/entity/challenges.php:11
- > PHP Fatal error
Uncaught Error: Class 'Courtres_Entity_Base' not found in wp-content/plugins/court-reservation/includes/entity/piramid.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/court-reservation/admin/partials/courtres-event.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/court-reservation/admin/partials/courtres-court.php:18
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: Too many tags (18 tag instead of maximum 10); only the first 5 tags are used in your directory listing
court-reservation/courtres.php 85% from 13 tests
The main PHP file in "Court Reservation - Manage Your Court Bookings Online" ver. 1.8.5 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("court-reservation.php" instead of "courtres.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected51,530 lines of code in 192 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 155 | 9,027 | 18,648 | 44,239 |
CSS | 22 | 413 | 156 | 3,133 |
PO File | 5 | 1,104 | 1,619 | 2,241 |
JavaScript | 8 | 153 | 199 | 1,676 |
Markdown | 1 | 68 | 0 | 214 |
JSON | 1 | 0 | 0 | 27 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please tend to the following items
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 2,910)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 77.21 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,910.00 |
Average method complexity | 4.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 62 | |
▷ Abstract classes | 2 | 3.23% |
▷ Concrete classes | 60 | 96.77% |
▷ Final classes | 0 | 0.00% |
Methods | 1,365 | |
▷ Static methods | 220 | 16.12% |
▷ Public methods | 986 | 72.23% |
▷ Protected methods | 26 | 1.90% |
▷ Private methods | 353 | 25.86% |
Functions | 108 | |
▷ Named functions | 105 | 97.22% |
▷ Anonymous functions | 3 | 2.78% |
Constants | 131 | |
▷ Global constants | 100 | 76.34% |
▷ Class constants | 31 | 23.66% |
▷ Public constants | 31 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
public/css/images/ui-icons_555555_256x240.png | 6.82KB | 4.17KB | ▼ 38.82% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
public/css/images/ui-icons_cc0000_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
public/css/images/ui-icons_777620_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |