Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.41MB] [CPU: ▼12.51ms] Passed 4 tests
Analyzing server-side resources used by Widget for OPIO Reviews
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 42.30 ▲1.03 |
Dashboard /wp-admin | 3.64 ▲0.34 | 50.35 ▼0.92 |
Posts /wp-admin/edit.php | 3.70 ▲0.34 | 45.42 ▲1.49 |
Add New Post /wp-admin/post-new.php | 3.46 ▼2.43 | 34.40 ▼51.65 |
Media Library /wp-admin/upload.php | 3.50 ▲0.28 | 41.71 ▲6.74 |
Support /wp-admin/admin.php?page=grw-support | 3.47 | 33.78 |
Builder /wp-admin/admin.php?page=grw-builder | 3.49 | 33.41 |
Widgets /wp-admin/edit.php?post_type=grw_feed | 3.56 | 38.27 |
Server storage [IO: ▲1.97MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Widget for OPIO Reviews
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲83 | 13.79 ▼0.57 | 2.34 ▲0.42 | 43.21 ▲0.26 |
Dashboard /wp-admin | 2,225 ▲45 | 5.05 ▼0.60 | 92.79 ▼5.99 | 81.86 ▲39.71 |
Posts /wp-admin/edit.php | 2,146 ▲46 | 2.54 ▲0.53 | 34.76 ▼1.46 | 34.39 ▼1.53 |
Add New Post /wp-admin/post-new.php | 1,721 ▲195 | 22.56 ▼0.40 | 750.05 ▲91.81 | 28.62 ▼22.62 |
Media Library /wp-admin/upload.php | 1,507 ▲107 | 4.70 ▲0.51 | 94.79 ▼5.14 | 83.54 ▲39.79 |
Support /wp-admin/admin.php?page=grw-support | 1,108 | 2.13 | 26.08 | 46.08 |
Builder /wp-admin/admin.php?page=grw-builder | 1,248 | 3.41 | 39.42 | 69.94 |
Widgets /wp-admin/edit.php?post_type=grw_feed | 1,244 | 2.40 | 32.55 | 35.39 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=grw-builder
- > Notice in wp-content/plugins/widget-for-opio-reviews/includes/class-builder-page.php+84
Undefined variable: home_url
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=grw-builder
- > Notice in wp-content/plugins/widget-for-opio-reviews/includes/class-builder-page.php+169
Trying to get property 'review_enabled' of non-object
- > GET request to /wp-admin/admin.php?page=grw-builder
- > Notice in wp-content/plugins/widget-for-opio-reviews/includes/class-builder-page.php+276
Undefined variable: biz_org_id
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success
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 90% 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
Attributes that need to be fixed:
- Contributors: The plugin contributors field is missing
widget-for-opio-reviews/grw.php 85% from 13 tests
The main PHP script in "Widget for OPIO Reviews" version 1.0.0 is automatically included on every request by WordPress
It is important to fix the following:
- Domain Path: The domain path folder was not found ("/languages")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("widget-for-opio-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
There were no executable files found in this plugin5,635 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 11 | 645 | 64 | 3,863 |
PHP | 20 | 246 | 47 | 1,305 |
JavaScript | 2 | 74 | 13 | 467 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 7.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 1 | 6.67% |
Methods | 68 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 62 | 91.18% |
▷ Protected methods | 2 | 2.94% |
▷ Private methods | 4 | 5.88% |
Functions | 6 | |
▷ Named functions | 2 | 33.33% |
▷ Anonymous functions | 4 | 66.67% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 1.68MB with 1.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/business_step1.png | 363.12KB | 112.42KB | ▼ 69.04% |
assets/img/business_step2.png | 200.76KB | 61.11KB | ▼ 69.56% |
assets/img/facebook-recommends.png | 0.41KB | 0.27KB | ▼ 33.57% |
assets/img/org_step2.png | 339.45KB | 100.07KB | ▼ 70.52% |
assets/img/org_step1.png | 120.33KB | 32.97KB | ▼ 72.60% |