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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.46MB] [CPU: ▼6.76ms] Passed 4 tests
A check of server-side resources used by Widgets for Bookatable Reviews
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.89 ▲0.42 | 39.90 ▲0.88 |
Dashboard /wp-admin | 3.77 ▲0.42 | 45.75 ▼13.41 |
Posts /wp-admin/edit.php | 3.87 ▲0.51 | 52.10 ▲2.81 |
Add New Post /wp-admin/post-new.php | 6.48 ▲0.59 | 85.23 ▼15.28 |
Media Library /wp-admin/upload.php | 3.72 ▲0.50 | 34.21 ▲0.79 |
Server storage [IO: ▲1.92MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 99 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
trustindex-bookatable-active |
widget_recent-comments |
trustindex-bookatable-version |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Widgets for Bookatable Reviews
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲87 | 14.17 ▼0.38 | 1.61 ▲0.01 | 41.59 ▲0.74 |
Dashboard /wp-admin | 2,254 ▲73 | 5.62 ▼0.09 | 85.58 ▼13.07 | 90.70 ▲47.62 |
Posts /wp-admin/edit.php | 2,163 ▲63 | 2.02 ▼0.01 | 41.06 ▲0.39 | 35.40 ▼2.26 |
Add New Post /wp-admin/post-new.php | 6,427 ▲4,898 | 22.60 ▼0.44 | 901.54 ▲274.20 | 37.71 ▼12.98 |
Media Library /wp-admin/upload.php | 1,462 ▲59 | 4.16 ▼0.07 | 97.67 ▼7.00 | 78.17 ▲30.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% 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
- 10× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/review-widgets-for-bookatable/plugin-load.php
- > /wp-content/plugins/review-widgets-for-bookatable/tabs/troubleshooting.php
- > /wp-content/plugins/review-widgets-for-bookatable/settings.php
- > /wp-content/plugins/review-widgets-for-bookatable/tabs/setup_no_reg_header.php
- > /wp-content/plugins/review-widgets-for-bookatable/tabs/rate.php
- > /wp-content/plugins/review-widgets-for-bookatable/review-widgets-for-bookatable.php
- > /wp-content/plugins/review-widgets-for-bookatable/tabs/setup_trustindex.php
- > /wp-content/plugins/review-widgets-for-bookatable/trustindex-bookatable-widget.class.php
- > /wp-content/plugins/review-widgets-for-bookatable/tabs/setup_trustindex_join.php
- > /wp-content/plugins/review-widgets-for-bookatable/tabs/my_reviews.php
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'TrustindexPlugin' not found in wp-content/plugins/review-widgets-for-bookatable/tabs/get_reviews.php:2
- > PHP Fatal error
Uncaught Error: Class 'TrustindexPlugin' not found in wp-content/plugins/review-widgets-for-bookatable/tabs/setup_no_reg_platform.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/review-widgets-for-bookatable/uninstall.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/review-widgets-for-bookatable/tabs/setup_no_reg.php:1
- > 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 97% 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 your attention:
- Tags: You are using too many tags: 13 tag instead of maximum 10
review-widgets-for-bookatable/review-widgets-for-bookatable.php Passed 13 tests
The main PHP script in "Widgets for Bookatable Reviews" version 6.8.1 is automatically included on every request by WordPress
122 characters long description:
Embed Bookatable reviews fast and easily into your WordPress site. Increase SEO, trust and sales using Bookatable reviews.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin4,757 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 43 | 34 | 4,711 |
SVG | 4 | 0 | 0 | 27 |
CSS | 3 | 2 | 0 | 12 |
JavaScript | 7 | 0 | 0 | 7 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 82.33 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 214.00 |
Average method complexity | 3.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 74 | |
▷ Static methods | 4 | 5.41% |
▷ Public methods | 73 | 98.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.35% |
Functions | 11 | |
▷ Named functions | 6 | 54.55% |
▷ Anonymous functions | 5 | 45.45% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
4 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
static/img/no.png | 1.92KB | 0.28KB | ▼ 85.53% |
static/img/platforms.png | 10.24KB | 4.08KB | ▼ 60.12% |
static/img/trustindex-sign-logo.png | 0.68KB | 0.46KB | ▼ 32.04% |
static/img/yes.png | 1.91KB | 0.25KB | ▼ 87.08% |