Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▼0.35ms] Passed 4 tests
A check of server-side resources used by Google Reviews Slider
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 42.53 ▼0.00 |
Dashboard /wp-admin | 3.39 ▲0.08 | 54.33 ▲5.25 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 50.58 ▲1.93 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 82.17 ▼2.26 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.73 ▼1.09 |
Google Review Slider /wp-admin/options-general.php?page=google-review-slider | 3.26 | 31.74 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
review_slider_settings |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Google Reviews Slider
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,949 ▲188 | 14.58 ▼0.01 | 1.69 ▼0.13 | 43.70 ▼2.68 |
Dashboard /wp-admin | 2,355 ▲178 | 6.37 ▲0.78 | 109.06 ▲6.73 | 39.99 ▼3.49 |
Posts /wp-admin/edit.php | 2,295 ▲195 | 3.51 ▲1.54 | 57.86 ▲20.18 | 33.43 ▼3.72 |
Add New Post /wp-admin/post-new.php | 1,544 ▲18 | 23.17 ▲0.13 | 666.80 ▼22.86 | 40.20 ▼26.28 |
Media Library /wp-admin/upload.php | 1,434 ▲37 | 4.34 ▲0.23 | 82.38 ▼30.43 | 42.19 ▼4.35 |
Google Review Slider /wp-admin/options-general.php?page=google-review-slider | 1,278 | 3.44 | 59.37 | 25.48 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- review_slider_settings
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=google-review-slider
- > Notice in wp-content/plugins/review-slider-google/google-review-slider.php+33
Undefined index: review_slider_google_place_ID
SRP 50% 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
Almost there! Just fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/review-slider-google/google-review-slider.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/review-slider-google/google_review_slider_iframe_content.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
2 plugin tags: google reviews, testimonial slider
review-slider-google/google-review-slider.php 92% from 13 tests
Analyzing the main PHP file in "Google Reviews Slider" version 1.2
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("review-slider-google.php" instead of "google-review-slider.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin866 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 83 | 9 | 480 |
PHP | 2 | 93 | 11 | 272 |
Markdown | 1 | 1 | 0 | 71 |
JavaScript | 3 | 8 | 16 | 30 |
SVG | 1 | 1 | 0 | 13 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
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 | 16 | |
▷ Named functions | 16 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected