Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼0.53ms] Passed 4 tests
A check of server-side resources used by Custom Google Business Reviews
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 40.32 ▼3.22 |
Dashboard /wp-admin | 3.36 ▲0.06 | 49.73 ▼1.50 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 50.18 ▲3.21 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 93.58 ▲0.15 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.67 ▲2.45 |
All Items /wp-admin/edit.php?post_type=google_palce_reviews | 3.29 | 34.09 |
Add New /wp-admin/post-new.php?post_type=google_palce_reviews | 3.32 | 43.22 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Custom Google Business Reviews: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲35 | 14.20 ▼0.14 | 1.79 ▼0.17 | 72.95 ▲27.63 |
Dashboard /wp-admin | 2,225 ▲48 | 5.59 ▲0.03 | 87.00 ▼4.04 | 38.50 ▼2.05 |
Posts /wp-admin/edit.php | 2,127 ▲30 | 1.99 ▲0.00 | 35.40 ▲0.02 | 31.55 ▼4.39 |
Add New Post /wp-admin/post-new.php | 1,560 ▲32 | 18.29 ▼4.79 | 614.19 ▼87.84 | 69.53 ▲17.91 |
Media Library /wp-admin/upload.php | 1,424 ▲24 | 4.18 ▲0.02 | 101.37 ▼5.63 | 44.74 ▲1.28 |
All Items /wp-admin/edit.php?post_type=google_palce_reviews | 1,115 | 1.93 | 34.12 | 30.04 |
Add New /wp-admin/post-new.php?post_type=google_palce_reviews | 1,488 | 2.52 | 48.87 | 69.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=google_palce_reviews
- > Notice in wp-content/plugins/custom-google-places-reviews/custom-google-places-reviews.php+160
Undefined variable: column
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=google_palce_reviews
- > Notice in wp-content/plugins/custom-google-places-reviews/custom-google-places-reviews.php+160
Trying to access array offset on value of type null
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 15× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Trying to get property 'url' of non-object in wp-content/plugins/custom-google-places-reviews/include/content_place.php on line 4
- > PHP Notice
Undefined variable: data in wp-content/plugins/custom-google-places-reviews/include/content_place.php on line 10
- > PHP Notice
Undefined variable: data in wp-content/plugins/custom-google-places-reviews/include/content_place.php on line 14
- > PHP Notice
Undefined variable: pid in wp-content/plugins/custom-google-places-reviews/include/display_page.php on line 2
- > PHP Notice
Undefined variable: data in wp-content/plugins/custom-google-places-reviews/include/content_place.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/custom-google-places-reviews/include/content_place.php:14
- > PHP Notice
Trying to get property 'name' of non-object in wp-content/plugins/custom-google-places-reviews/include/content_place.php on line 11
- > PHP Notice
Trying to get property 'result' of non-object in wp-content/plugins/custom-google-places-reviews/include/content_place.php on line 4
- > PHP Notice
Trying to get property 'url' of non-object in wp-content/plugins/custom-google-places-reviews/include/content_place.php on line 10
- > PHP Notice
Undefined variable: data in wp-content/plugins/custom-google-places-reviews/include/content_place.php on line 11
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% 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 require attention:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
custom-google-places-reviews/custom-google-places-reviews.php Passed 13 tests
The principal PHP file in "Custom Google Business Reviews" v. 1.0.0 is loaded by WordPress automatically on each request
131 characters long description:
Custom Google Places Reviews Display your Google business pages reviews on your website just by adding a shortcode [google_reviews]
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin659 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 42 | 35 | 314 |
CSS | 1 | 39 | 1 | 267 |
SVG | 2 | 0 | 2 | 78 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/google-logo-small.png | 1.54KB | 1.53KB | ▼ 0.95% |