Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.47MB] [CPU: ▼1.22ms] Passed 4 tests
Server-side resources used by BizReview - Business and Google Place Review WordPress Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.96 ▲0.49 | 39.55 ▼0.84 |
Dashboard /wp-admin | 3.81 ▲0.50 | 47.22 ▼2.78 |
Posts /wp-admin/edit.php | 3.86 ▲0.50 | 45.71 ▼1.47 |
Add New Post /wp-admin/post-new.php | 6.35 ▲0.45 | 90.04 ▲4.99 |
Media Library /wp-admin/upload.php | 3.67 ▲0.43 | 38.39 ▲0.22 |
Server storage [IO: ▲9.88MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 156 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_bizreview_google_widget |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
BizReview - Business and Google Place Review WordPress Plugin: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,973 ▲211 | 13.55 ▼0.79 | 13.29 ▲11.58 | 54.64 ▲10.53 |
Dashboard /wp-admin | 2,253 ▲82 | 5.64 ▲0.00 | 94.38 ▼5.51 | 41.14 ▼6.44 |
Posts /wp-admin/edit.php | 2,158 ▲55 | 2.16 ▲0.13 | 38.74 ▼3.47 | 34.56 ▼1.84 |
Add New Post /wp-admin/post-new.php | 1,577 ▲51 | 23.18 ▲0.14 | 681.66 ▼69.23 | 57.57 ▼6.44 |
Media Library /wp-admin/upload.php | 1,458 ▲58 | 4.19 ▼0.06 | 107.32 ▲1.74 | 51.82 ▲6.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_bizreview_google_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% 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 fix the following items
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/bizreview/view/widgets/widget-google-review.php
- > /wp-content/plugins/bizreview/bizreview.php
- > /wp-content/plugins/bizreview/inc/functions.php
- > /wp-content/plugins/bizreview/inc/class-enqueue.php
- 5× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant BIZREVIEW_ALERT_MSG - assumed 'BIZREVIEW_ALERT_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/bizreview/inc/class-enqueue.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/bizreview/view/google-shortcode.php:11
- > PHP Warning
Use of undefined constant BIZREVIEW_ALERT_MSG - assumed 'BIZREVIEW_ALERT_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/bizreview/inc/functions.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/bizreview/admin/admin.php:184
- > PHP Warning
Use of undefined constant BIZREVIEW_ALERT_MSG - assumed 'BIZREVIEW_ALERT_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/bizreview/view/widgets/widget-google-review.php on line 13
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Screenshots: Add an image for screenshot #9 (Supported functionality)
bizreview/bizreview.php 92% from 13 tests
"BizReview - Business and Google Place Review WordPress Plugin" version 1.4.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 159 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin29,440 lines of code in 117 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 4 | 0 | 12 | 10,987 |
CSS | 12 | 1,781 | 79 | 10,526 |
Sass | 84 | 1,136 | 1,024 | 4,900 |
PHP | 12 | 694 | 768 | 2,806 |
JavaScript | 5 | 90 | 37 | 221 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 24.11 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 109.00 |
Average method complexity | 3.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 1 | 11.11% |
Methods | 96 | |
▷ Static methods | 2 | 2.08% |
▷ Public methods | 74 | 77.08% |
▷ Protected methods | 7 | 7.29% |
▷ Private methods | 15 | 15.62% |
Functions | 12 | |
▷ Named functions | 11 | 91.67% |
▷ Anonymous functions | 1 | 8.33% |
Constants | 11 | |
▷ Global constants | 8 | 72.73% |
▷ Class constants | 3 | 27.27% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
view/elementor-widgets/assets/img/play.png | 2.00KB | 1.40KB | ▼ 29.99% |
assets/google-places.png | 15.32KB | 0.63KB | ▼ 95.89% |