Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.83MB] [CPU: ▲5.16ms] Passed 4 tests
Server-side resources used by Plugin for Google Reviews
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.15 ▲0.69 | 47.94 ▲2.37 |
Dashboard /wp-admin | 4.20 ▲0.89 | 57.63 ▲4.92 |
Posts /wp-admin/edit.php | 4.25 ▲0.89 | 59.85 ▲12.21 |
Add New Post /wp-admin/post-new.php | 6.75 ▲0.86 | 99.78 ▲5.24 |
Media Library /wp-admin/upload.php | 4.12 ▲0.89 | 44.29 ▲8.09 |
Overview /wp-admin/admin.php?page=grw | 4.09 | 42.39 |
Support /wp-admin/admin.php?page=grw-support | 4.10 | 44.87 |
Settings /wp-admin/admin.php?page=grw-settings | 4.11 | 323.88 |
Builder /wp-admin/admin.php?page=grw-builder | 4.11 | 44.41 |
Widgets /wp-admin/edit.php?post_type=grw_feed | 4.16 | 48.54 |
Server storage [IO: ▲2.02MB] [DB: ▲0.32MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 131 new files
Database: 3 new tables, 17 new options
New tables |
---|
wp_grp_google_review |
wp_grp_google_place |
wp_grp_google_stats |
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
grw_revupd_cron_timeout |
widget_grw_widget |
theysaidso_admin_options |
grw_activation_time |
grw_is_multisite |
... |
Browser metrics Passed 4 tests
Plugin for Google Reviews: 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,847 ▲111 | 13.35 ▼0.84 | 3.86 ▲2.23 | 38.55 ▼4.71 |
Dashboard /wp-admin | 2,233 ▲55 | 5.89 ▲0.17 | 96.24 ▼11.98 | 88.50 ▲45.99 |
Posts /wp-admin/edit.php | 2,163 ▲63 | 2.41 ▲0.45 | 37.78 ▼3.12 | 37.20 ▼2.09 |
Add New Post /wp-admin/post-new.php | 6,247 ▲4,721 | 19.33 ▼4.10 | 809.64 ▲131.71 | 34.80 ▼23.10 |
Media Library /wp-admin/upload.php | 1,520 ▲117 | 4.53 ▲0.32 | 101.27 ▲4.17 | 82.94 ▲41.22 |
Overview /wp-admin/admin.php?page=grw | 2,931 | 9.59 | 227.83 | 114.86 |
Support /wp-admin/admin.php?page=grw-support | 2,091 | 13.86 | 600.73 | 151.58 |
Settings /wp-admin/admin.php?page=grw-settings | 1,161 | 2.11 | 29.58 | 41.59 |
Builder /wp-admin/admin.php?page=grw-builder | 2,460 | 9.14 | 171.89 | 141.76 |
Widgets /wp-admin/edit.php?post_type=grw_feed | 1,263 | 2.45 | 33.99 | 46.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.32MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The plugin did not uninstall successfully, leaving 3 tables in the database
- wp_grp_google_place
- wp_grp_google_stats
- wp_grp_google_review
- This plugin did not uninstall successfully, leaving 17 options in the database
- grw_revupd_cron_log
- widget_recent-comments
- can_compress_scripts
- grw_revupd_cron
- widget_grw_widget
- grw_version
- widget_recent-posts
- grw_google_api_key
- theysaidso_admin_options
- grw_is_multisite
- ...
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 | 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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/widget-google-reviews/includes/page-setting-fig.php
- 16× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
Use of undefined constant GRW_ASSETS_URL - assumed 'GRW_ASSETS_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/widget-google-reviews/includes/page-setting-fig.php on line 85
- > PHP Warning
Use of undefined constant GRW_ASSETS_URL - assumed 'GRW_ASSETS_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/widget-google-reviews/includes/page-setting-fig.php on line 67
- > PHP Warning
Use of undefined constant GRW_ASSETS_URL - assumed 'GRW_ASSETS_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/widget-google-reviews/includes/page-setting-fig.php on line 20
- > PHP Warning
Use of undefined constant GRW_ASSETS_URL - assumed 'GRW_ASSETS_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/widget-google-reviews/includes/page-setting-fig.php on line 122
- > PHP Warning
Use of undefined constant GRW_ASSETS_URL - assumed 'GRW_ASSETS_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/widget-google-reviews/includes/page-setting-fig.php on line 29
- > PHP Warning
Use of undefined constant GRW_ASSETS_URL - assumed 'GRW_ASSETS_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/widget-google-reviews/includes/page-setting-fig.php on line 66
- > PHP Warning
Use of undefined constant GRW_ASSETS_URL - assumed 'GRW_ASSETS_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/widget-google-reviews/includes/page-setting-fig.php on line 113
- > PHP Warning
Use of undefined constant GRW_ASSETS_URL - assumed 'GRW_ASSETS_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/widget-google-reviews/includes/page-setting-fig.php on line 57
- > PHP Warning
Use of undefined constant GRW_ASSETS_URL - assumed 'GRW_ASSETS_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/widget-google-reviews/includes/page-setting-fig.php on line 76
- > PHP Warning
Use of undefined constant GRW_ASSETS_URL - assumed 'GRW_ASSETS_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/widget-google-reviews/includes/page-setting-fig.php on line 104
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: reviews plugin, reviews, google reviews, rating, widget...
widget-google-reviews/grw.php 92% from 13 tests
This is the main PHP file of "Plugin for Google Reviews" version 3.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("widget-google-reviews.php" instead of "grw.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin10,302 lines of code in 85 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 38 | 728 | 80 | 3,514 |
CSS | 10 | 576 | 66 | 3,482 |
JavaScript | 10 | 281 | 95 | 2,689 |
PO File | 23 | 157 | 0 | 591 |
JSON | 1 | 0 | 0 | 21 |
SVG | 3 | 0 | 0 | 5 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 98.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 32 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 32 | 100.00% |
▷ Final classes | 1 | 3.12% |
Methods | 176 | |
▷ Static methods | 1 | 0.57% |
▷ Public methods | 153 | 86.93% |
▷ Protected methods | 2 | 1.14% |
▷ Private methods | 21 | 11.93% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 11 | |
▷ Global constants | 7 | 63.64% |
▷ Class constants | 4 | 36.36% |
▷ Public constants | 4 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
20 PNG files occupy 0.51MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/google_key_2_1.png | 21.21KB | 12.49KB | ▼ 41.12% |
assets/img/google_placeid_2.png | 34.97KB | 16.15KB | ▼ 53.83% |
assets/img/google_key_8.png | 15.08KB | 9.56KB | ▼ 36.59% |
assets/img/google_placeid_3.png | 51.17KB | 28.09KB | ▼ 45.12% |
assets/img/google_key_2.png | 37.40KB | 17.38KB | ▼ 53.53% |