Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼2.78ms] Passed 4 tests
An overview of server-side resources used by Restaurant Reservations Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.97 ▼6.49 |
Dashboard /wp-admin | 3.38 ▲0.08 | 46.24 ▼3.52 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 50.01 ▲2.59 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 88.29 ▼3.68 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.33 ▲2.96 |
Add API Key /wp-admin/admin.php?page=resto-api-key | 3.24 | 28.90 |
ResWidget Configuration /wp-admin/admin.php?page=resto-configuration | 3.24 | 26.66 |
Server storage [IO: ▲0.08MB] [DB: ▲0.33MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 6 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_restaurants |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Restaurant Reservations Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,932 ▲197 | 13.59 ▼1.02 | 10.35 ▲8.19 | 43.33 ▼7.37 |
Dashboard /wp-admin | 2,235 ▲44 | 6.00 ▲1.13 | 96.73 ▼9.09 | 63.76 ▲16.58 |
Posts /wp-admin/edit.php | 2,112 ▲23 | 2.00 ▲0.01 | 38.90 ▲4.65 | 35.56 ▼1.59 |
Add New Post /wp-admin/post-new.php | 1,690 ▲157 | 22.37 ▼1.10 | 703.11 ▲20.00 | 50.02 ▼7.90 |
Media Library /wp-admin/upload.php | 1,414 ▲26 | 4.24 ▲0.05 | 109.85 ▲5.67 | 46.56 ▼1.74 |
Add API Key /wp-admin/admin.php?page=resto-api-key | 821 | 2.02 | 24.28 | 23.94 |
ResWidget Configuration /wp-admin/admin.php?page=resto-configuration | 1,073 | 2.07 | 24.21 | 23.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.33MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure failed, leaving 1 table in the database
- wp_restaurants
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=resto-api-key
- > Notice in wp-content/plugins/restaurantconnect-reswidget/reswidget.php+102
Undefined variable: arrMsg
- > GET request to /wp-admin/admin.php?page=resto-api-key
- > Notice in wp-content/plugins/restaurantconnect-reswidget/reswidget.php+102
Trying to access array offset on value of type null
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=resto-configuration
- > Notice in wp-content/plugins/restaurantconnect-reswidget/add-restaurant.php+458
Undefined index: s
- > GET request to /wp-admin/admin.php?page=resto-configuration
- > Notice in wp-content/plugins/restaurantconnect-reswidget/add-restaurant.php+572
Undefined index: id
SRP 50% 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 take a closer look at the following
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/restaurantconnect-reswidget/add-restaurant.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/restaurantconnect-reswidget/reswidget.php:16
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/restaurantconnect-reswidget/add-restaurant.php on line 5
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/restaurantconnect-reswidget/add-restaurant.php on line 5
- > 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 on the user side
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:
- Requires at least: Version not formatted correctly
restaurantconnect-reswidget/reswidget.php 92% from 13 tests
"Restaurant Reservations Widget" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("restaurantconnect-reswidget.php" instead of "reswidget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected465 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 387 | 29 | 423 |
JavaScript | 1 | 14 | 0 | 42 |
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.40 |
Average class complexity | 8.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.05MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/icon2.png | 50.59KB | 0.66KB | ▼ 98.70% |