Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/review-wave-google-places-reviews/rw_gplaces.php+62
Function create_function() is deprecated
Server metrics [RAM: ▼1.66MB] [CPU: ▼53.95ms] Passed 4 tests
This is a short check of server-side resources used by Review Wave - Google Places Reviews
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.27 ▼1.19 | 7.04 ▼37.10 |
Dashboard /wp-admin | 2.37 ▼0.94 | 9.67 ▼40.32 |
Posts /wp-admin/edit.php | 2.37 ▼0.99 | 6.60 ▼50.83 |
Add New Post /wp-admin/post-new.php | 2.37 ▼3.52 | 7.35 ▼87.55 |
Media Library /wp-admin/upload.php | 2.37 ▼0.86 | 6.47 ▼31.78 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 15 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_rw_gplaces_review |
wp_rw_gplaces_place |
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
rw_gplaces_options |
widget_recent-posts |
widget_review_wave_gplaces_reviews_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Review Wave - Google Places Reviews
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲75 | 13.61 ▼0.69 | 1.79 ▼0.08 | 43.72 ▼4.57 |
Dashboard /wp-admin | 2,211 ▲23 | 5.82 ▲0.95 | 113.69 ▲1.32 | 75.72 ▲35.45 |
Posts /wp-admin/edit.php | 2,106 ▲14 | 2.00 ▼0.05 | 35.25 ▼9.93 | 35.86 ▼5.29 |
Add New Post /wp-admin/post-new.php | 1,692 ▲159 | 24.39 ▲1.37 | 667.70 ▲14.28 | 60.51 ▲0.73 |
Media Library /wp-admin/upload.php | 1,402 ▲11 | 4.18 ▼0.18 | 98.59 ▼9.91 | 73.21 ▲28.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/review-wave-google-places-reviews/rw_gplaces.php+62
Function create_function() is deprecated
- The uninstall procedure failed, leaving 2 tables in the database
- wp_rw_gplaces_place
- wp_rw_gplaces_review
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_review_wave_gplaces_reviews_widget
- widget_theysaidso_widget
- rw_gplaces_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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 take a closer look at the following
- 5× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/review-wave-google-places-reviews/rw_gplaces.php
- > /wp-content/plugins/review-wave-google-places-reviews/classes/widget.class.php
- > /wp-content/plugins/review-wave-google-places-reviews/classes/review.model.php
- > /wp-content/plugins/review-wave-google-places-reviews/classes/place.model.php
- > /wp-content/plugins/review-wave-google-places-reviews/classes/abstract.model.php
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 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== review-wave-google-places-reviews ===
)
review-wave-google-places-reviews/rw_gplaces.php 92% from 13 tests
"Review Wave - Google Places Reviews" version 1.4.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("review-wave-google-places-reviews.php" instead of "rw_gplaces.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,070 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 238 | 33 | 1,023 |
CSS | 1 | 0 | 0 | 28 |
JavaScript | 1 | 6 | 0 | 19 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 29.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 4.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 41 | 91.11% |
▷ Protected methods | 1 | 2.22% |
▷ Private methods | 3 | 6.67% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 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 |
css/rating_color.png | 0.51KB | 0.38KB | ▼ 26.44% |
css/location.png | 3.72KB | 2.45KB | ▼ 34.16% |
star.png | 0.73KB | 0.62KB | ▼ 14.94% |
css/rating_gray.png | 0.50KB | 0.37KB | ▼ 26.23% |
css/person.png | 2.65KB | 1.66KB | ▼ 37.56% |