Benchmarks
Plugin footprint 48% 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: ▲0.58MB] [CPU: ▲1.06ms] Passed 4 tests
An overview of server-side resources used by ReDi Restaurant Reservation
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.23 ▲0.76 | 40.37 ▲0.10 |
Dashboard /wp-admin | 3.92 ▲0.57 | 52.32 ▼6.32 |
Posts /wp-admin/edit.php | 3.97 ▲0.61 | 54.27 ▲7.13 |
Add New Post /wp-admin/post-new.php | 6.46 ▲0.57 | 97.66 ▲3.33 |
Media Library /wp-admin/upload.php | 3.78 ▲0.55 | 41.40 ▲8.57 |
Server storage [IO: ▲3.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 194 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_redi_restaurant_reservation_v6_custom_fields |
wp_redi_restaurant_reservation_v6 |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
wp_redi_restaurant_options |
Browser metrics Passed 4 tests
Checking browser requirements for ReDi Restaurant Reservation
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,911 ▲164 | 14.31 ▼0.04 | 2.15 ▲0.54 | 37.05 ▼7.34 |
Dashboard /wp-admin | 2,279 ▲99 | 5.59 ▼0.13 | 94.62 ▲5.63 | 69.17 ▲25.15 |
Posts /wp-admin/edit.php | 2,199 ▲99 | 2.11 ▼0.04 | 40.48 ▲4.63 | 34.62 ▲0.21 |
Add New Post /wp-admin/post-new.php | 1,616 ▲90 | 23.29 ▼0.36 | 702.65 ▲65.83 | 53.93 ▼1.75 |
Media Library /wp-admin/upload.php | 1,493 ▲99 | 4.22 ▼0.03 | 104.97 ▲5.85 | 73.91 ▲31.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'uninstall' not found or invalid function name
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_redi_restaurant_reservation_v6
- wp_redi_restaurant_reservation_v6_custom_fields
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- wp_redi_restaurant_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 21× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant REDI_RESTAURANT_TEMPLATE - assumed 'REDI_RESTAURANT_TEMPLATE' (this will throw an Error in a future version of PHP) in wp-content/plugins/redi-restaurant-reservation/templates/admin_welcome_no_page.php on line 1
- > PHP Warning
Use of undefined constant REDI_RESTAURANT_TEMPLATE - assumed 'REDI_RESTAURANT_TEMPLATE' (this will throw an Error in a future version of PHP) in wp-content/plugins/redi-restaurant-reservation/templates/admin_welcome.php on line 1
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/redi-restaurant-reservation/templates/frontend.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/redi-restaurant-reservation/redi-restaurant-reservation.php:13
- > PHP Warning
Use of undefined constant REDI_RESTAURANT_TEMPLATE - assumed 'REDI_RESTAURANT_TEMPLATE' (this will throw an Error in a future version of PHP) in wp-content/plugins/redi-restaurant-reservation/templates/admin.php on line 40
- > PHP Fatal error
require_once(): Failed opening required 'REDI_RESTAURANT_TEMPLATE../js/hotjar.js' (include_path='.:/usr/share/php') in wp-content/plugins/redi-restaurant-reservation/templates/admin_welcome_no_page.php on line 1
- > PHP Fatal error
require_once(): Failed opening required 'REDI_RESTAURANT_TEMPLATE../js/hotjar.js' (include_path='.:/usr/share/php') in wp-content/plugins/redi-restaurant-reservation/templates/admin_welcome_no_key.php on line 1
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/redi-restaurant-reservation/templates/frontend_v2.php:1
- > PHP Fatal error
require_once(): Failed opening required 'REDI_RESTAURANT_TEMPLATE../js/hotjar.js' (include_path='.:/usr/share/php') in wp-content/plugins/redi-restaurant-reservation/templates/admin_welcome.php on line 1
- > PHP Warning
Use of undefined constant REDI_RESTAURANT_TEMPLATE - assumed 'REDI_RESTAURANT_TEMPLATE' (this will throw an Error in a future version of PHP) in wp-content/plugins/redi-restaurant-reservation/templates/admin_welcome_no_key.php on line 1
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 61 tag instead of maximum 10
redi-restaurant-reservation/redi-restaurant-reservation.php 92% from 13 tests
The entry point to "ReDi Restaurant Reservation" version 23.1124 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 510 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
Everything looks great! No dangerous files found in this plugin27,977 lines of code in 83 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 22 | 4,892 | 5,595 | 15,454 |
PHP | 23 | 685 | 133 | 5,598 |
JavaScript | 11 | 288 | 420 | 3,853 |
CSS | 20 | 841 | 334 | 2,941 |
SVG | 6 | 112 | 0 | 129 |
JSON | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 31.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 321.00 |
Average method complexity | 4.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 100.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 114 | |
▷ Static methods | 21 | 18.42% |
▷ Public methods | 99 | 86.84% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 15 | 13.16% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 34 | |
▷ Global constants | 20 | 58.82% |
▷ Class constants | 14 | 41.18% |
▷ Public constants | 14 | 100.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
63 compressed PNG files occupy 0.47MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/calendar/img/cool-bg.png | 0.23KB | 0.28KB | 0.00% |
img/168810.png | 3.76KB | 3.78KB | 0.00% |
css/calendar/img/cool-bg-hard-inv.png | 0.25KB | 0.35KB | 0.00% |
img/calender.png | 4.06KB | 2.34KB | ▼ 42.49% |
css/calendar/shadow-b.png | 0.20KB | 0.15KB | ▼ 25.96% |