Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.46ms] Passed 4 tests
A check of server-side resources used by Dinner Reservations Calendar (with Couverts)
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 35.76 ▼3.72 |
Dashboard /wp-admin | 3.33 ▼0.01 | 52.04 ▼12.83 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 49.85 ▲6.53 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 94.73 ▼5.38 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 36.45 ▲4.08 |
Couverts /wp-admin/options-general.php?page=couverts | 3.19 | 30.53 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Dinner Reservations Calendar (with Couverts)
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲87 | 13.59 ▼1.02 | 2.01 ▲0.25 | 40.00 ▼3.45 |
Dashboard /wp-admin | 2,217 ▲26 | 4.85 ▼1.06 | 109.58 ▼5.52 | 42.23 ▼5.82 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 1.99 ▼0.05 | 39.37 ▲0.91 | 35.87 ▲2.59 |
Add New Post /wp-admin/post-new.php | 1,540 ▲26 | 23.12 ▲5.61 | 619.05 ▼57.74 | 46.46 ▼4.93 |
Media Library /wp-admin/upload.php | 1,399 ▲14 | 4.22 ▲0.03 | 95.62 ▼8.90 | 44.49 ▼1.22 |
Couverts /wp-admin/options-general.php?page=couverts | 863 | 1.99 | 22.65 | 29.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=couverts
- > Notice in wp-content/plugins/dinner-reservations-calendar/src/AdminOptions.php+148
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=couverts
- > Notice in wp-content/plugins/dinner-reservations-calendar/src/AdminOptions.php+151
Undefined index: settings-updated
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 fix the following items
- 29× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Trying to get property 'BirthDate' of non-object in wp-content/plugins/dinner-reservations-calendar/templates/couverts/form-contact.php on line 66
- > PHP Notice
Trying to get property 'Show' of non-object in wp-content/plugins/dinner-reservations-calendar/templates/couverts/form-contact.php on line 56
- > PHP Notice
Trying to get property 'Show' of non-object in wp-content/plugins/dinner-reservations-calendar/templates/couverts/form-contact.php on line 35
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/dinner-reservations-calendar/couverts.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/dinner-reservations-calendar/templates/couverts/form-js.php:2
- > PHP Notice
Undefined variable: inputFields in wp-content/plugins/dinner-reservations-calendar/templates/couverts/form-contact.php on line 35
- > PHP Notice
Trying to get property 'Email' of non-object in wp-content/plugins/dinner-reservations-calendar/templates/couverts/form-contact.php on line 35
- > PHP Notice
Trying to get property 'LastName' of non-object in wp-content/plugins/dinner-reservations-calendar/templates/couverts/form-contact.php on line 24
- > PHP Notice
Trying to get property 'Show' of non-object in wp-content/plugins/dinner-reservations-calendar/templates/couverts/form-contact.php on line 14
- > PHP Notice
Trying to get property 'Show' of non-object in wp-content/plugins/dinner-reservations-calendar/templates/couverts/form-contact.php on line 1
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: couverts, api, forms, shortcode, reservation
dinner-reservations-calendar/couverts.php 85% from 13 tests
The principal PHP file in "Dinner Reservations Calendar (with Couverts)" v. 1.1 is loaded by WordPress automatically on each request
It is important to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: The principal plugin file should be the same as the plugin slug ("dinner-reservations-calendar.php" instead of "couverts.php")
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
No dangerous file extensions were detected1,067 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 243 | 309 | 977 |
PO File | 1 | 38 | 44 | 90 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 13 | 27.66% |
▷ Public methods | 41 | 87.23% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 12.77% |
Functions | 16 | |
▷ Named functions | 12 | 75.00% |
▷ Anonymous functions | 4 | 25.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin