Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲1.52MB] [CPU: ▲15.35ms] 75% from 4 tests
A check of server-side resources used by Reviews and Rating – Google My Business
Please have a look at the following items
- CPU: Total CPU usage must kept under 500.00ms (currently 860.40ms on /wp-admin/options-general.php?page=google_business_reviews_rating_settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.96 ▲1.49 | 56.50 ▲15.76 |
Dashboard /wp-admin | 4.88 ▲1.58 | 100.03 ▲47.19 |
Posts /wp-admin/edit.php | 4.89 ▲1.53 | 65.26 ▲20.35 |
Add New Post /wp-admin/post-new.php | 7.36 ▲1.47 | 100.02 ▲12.09 |
Media Library /wp-admin/upload.php | 4.85 ▲1.61 | 51.58 ▲13.18 |
Reviews and Rating - Google My Business /wp-admin/options-general.php?page=google_business_reviews_rating_settings | 5.80 | 860.40 |
Server storage [IO: ▲1.77MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 21 new options
New WordPress options |
---|
google_business_reviews_rating_rating_max |
widget_theysaidso_widget |
google_business_reviews_rating_stylesheet |
google_business_reviews_rating_review_text_excerpt_length |
google_business_reviews_rating_review_text_max |
google_business_reviews_rating_places |
widget_recent-comments |
google_business_reviews_rating_rating_min |
google_business_reviews_rating_javascript |
google_business_reviews_rating_view |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Reviews and Rating – Google My Business
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,090 ▲329 | 15.44 ▲0.88 | 5.33 ▲3.44 | 37.77 ▼6.34 |
Dashboard /wp-admin | 2,391 ▲211 | 6.29 ▲0.63 | 116.86 ▲18.78 | 42.59 ▲0.68 |
Posts /wp-admin/edit.php | 2,086 ▼14 | 2.02 ▼0.02 | 41.88 ▲4.57 | 31.30 ▼4.02 |
Add New Post /wp-admin/post-new.php | 1,531 ▲2 | 23.11 ▼0.55 | 668.98 ▲25.99 | 37.52 ▼39.45 |
Media Library /wp-admin/upload.php | 1,401 ▲4 | 4.13 ▼0.06 | 80.64 ▼18.45 | 40.68 ▼4.26 |
Reviews and Rating - Google My Business /wp-admin/options-general.php?page=google_business_reviews_rating_settings | 5,292 | 3.54 | 50.49 | 35.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: gmb rating, google places, google rating, gmb reviews, google reviews and rating...
g-business-reviews-rating/g-business-reviews-rating.php 92% from 13 tests
The main file in "Reviews and Rating – Google My Business" v. 4.25 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 169 characters long)
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin15,718 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 1,006 | 436 | 7,771 |
CSS | 3 | 17 | 2 | 5,085 |
JavaScript | 3 | 506 | 2 | 2,862 |
PHP code 0% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
These items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 2,333)
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 675)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 1.00 |
Average class complexity | 894.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 2,333.00 |
Average method complexity | 35.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 675.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 69 | |
▷ Static methods | 7 | 10.14% |
▷ Public methods | 51 | 73.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 18 | 26.09% |
Functions | 15 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 15 | 100.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin