Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.67MB] [CPU: ▲3.77ms] Passed 4 tests
Analyzing server-side resources used by Widget for Google Reviews
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.15 ▲0.69 | 52.90 ▲17.66 |
Dashboard /wp-admin | 3.98 ▲0.63 | 52.78 ▼2.82 |
Posts /wp-admin/edit.php | 4.03 ▲0.67 | 52.49 ▲7.76 |
Add New Post /wp-admin/post-new.php | 6.68 ▲0.79 | 102.73 ▲2.81 |
Media Library /wp-admin/upload.php | 3.90 ▲0.67 | 42.77 ▲7.33 |
New Shortcode /wp-admin/post-new.php?post_type=rtbr | 4.39 | 50.84 |
All Shortcodes /wp-admin/edit.php?post_type=rtbr | 3.94 | 41.51 |
Settings /wp-admin/edit.php?post_type=rtbr&page=rtbr-settings | 3.90 | 39.74 |
Server storage [IO: ▲0.52MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 79 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_rtbr-widget-review |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Widget for Google Reviews
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,965 ▲218 | 13.84 ▼0.50 | 9.13 ▲7.53 | 46.52 ▲10.74 |
Dashboard /wp-admin | 2,244 ▲63 | 5.59 ▼0.06 | 95.70 ▼5.22 | 85.84 ▲44.33 |
Posts /wp-admin/edit.php | 2,171 ▲71 | 2.13 ▲0.11 | 41.22 ▲3.17 | 34.44 ▼0.65 |
Add New Post /wp-admin/post-new.php | 1,655 ▲111 | 23.19 ▼1.84 | 619.65 ▼21.20 | 148.12 ▲87.99 |
Media Library /wp-admin/upload.php | 1,458 ▲61 | 4.14 ▼0.08 | 104.01 ▲4.32 | 79.35 ▲35.23 |
New Shortcode /wp-admin/post-new.php?post_type=rtbr | 3,609 | 4.62 | 136.04 | 107.89 |
All Shortcodes /wp-admin/edit.php?post_type=rtbr | 1,171 | 2.47 | 41.71 | 33.23 |
Settings /wp-admin/edit.php?post_type=rtbr&page=rtbr-settings | 1,192 | 3.70 | 51.03 | 71.91 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- can_compress_scripts
- widget_rtbr-widget-review
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 15× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Rtbr\\Helpers\\Functions' not found in wp-content/plugins/business-reviews-wp/views/metas/style.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/business-reviews-wp/templates/partials/pagination.php:16
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/business-reviews-wp/app/Widgets/BusinessReview.php:5
- > PHP Fatal error
Uncaught Error: Class 'Rtbr\\Helpers\\Functions' not found in wp-content/plugins/business-reviews-wp/views/metas/layout.php:3
- > PHP Warning
Use of undefined constant RTBR_PATH - assumed 'RTBR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/business-reviews-wp/app/Rtbr.php on line 3
- > PHP Warning
require_once(RTBR_PATHvendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/business-reviews-wp/app/Rtbr.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/business-reviews-wp/views/settings/admin-settings-display.php:3
- > PHP Fatal error
Uncaught Error: Class 'Rtbr\\Helpers\\Functions' not found in wp-content/plugins/business-reviews-wp/views/metas/settings.php:3
- > PHP Notice
Undefined variable: review_data in wp-content/plugins/business-reviews-wp/templates/grid-one.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/business-reviews-wp/views/widgets/business-review.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Donate link: Invalid URI found ("")
business-reviews-wp/business-reviews-wp.php Passed 13 tests
"Widget for Google Reviews" version 1.0.14's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
63 characters long description:
This is a business reviews plugin for Google, Facebook and Yelp
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 detected7,817 lines of code in 65 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 54 | 976 | 1,064 | 5,291 |
CSS | 5 | 165 | 59 | 2,084 |
JavaScript | 5 | 73 | 74 | 437 |
JSON | 1 | 0 | 0 | 5 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 163)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 26.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 196.00 |
Average method complexity | 3.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 163.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 29 | |
▷ Abstract classes | 1 | 3.45% |
▷ Concrete classes | 28 | 96.55% |
▷ Final classes | 1 | 3.57% |
Methods | 249 | |
▷ Static methods | 49 | 19.68% |
▷ Public methods | 225 | 90.36% |
▷ Protected methods | 2 | 0.80% |
▷ Private methods | 22 | 8.84% |
Functions | 14 | |
▷ Named functions | 1 | 7.14% |
▷ Anonymous functions | 13 | 92.86% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
10 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/imgs/icon-20x20.png | 1.50KB | 0.73KB | ▼ 51.17% |
assets/imgs/facebook-mini.png | 1.40KB | 0.80KB | ▼ 42.56% |
assets/imgs/icon-128x128.png | 6.40KB | 3.35KB | ▼ 47.62% |
assets/imgs/google-medium.png | 2.92KB | 1.61KB | ▼ 44.85% |
assets/imgs/facebook-medium.png | 1.16KB | 1.15KB | ▼ 1.18% |