Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Parse error in wp-content/plugins/5-star-google-reviews/js5srp-5-star-reviews-plugin.php+166
syntax error, unexpected '}', expecting end of file
Server metrics [RAM: ▼0.02MB] [CPU: ▼300.70ms] Passed 4 tests
This is a short check of server-side resources used by 5 Star Google Reviews
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 57.17 ▲6.58 |
Dashboard /wp-admin | 3.41 ▲0.00 | 33.47 ▲0.31 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 37.75 ▼4.16 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 93.16 ▼1,192.48 |
Media Library /wp-admin/upload.php | 3.29 ▲0.00 | 24.94 ▼6.47 |
Server storage [IO: ▲0.34MB] [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: 55 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for 5 Star Google Reviews
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲9 | 16.30 ▲0.66 | 5.73 ▼0.92 | 2.45 ▼0.47 |
Dashboard /wp-admin | 2,892 ▲31 | 6.17 ▲0.01 | 120.95 ▼10.85 | 161.35 ▼1.53 |
Posts /wp-admin/edit.php | 2,691 ▼3 | 3.24 ▼0.00 | 65.59 ▲0.27 | 140.34 ▼14.15 |
Add New Post /wp-admin/post-new.php | 1,661 ▼91 | 16.10 ▼5.50 | 411.18 ▼58.10 | 151.46 ▼12.71 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.54 ▲0.03 | 144.09 ▲3.81 | 183.51 ▼4.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 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 following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/5-star-google-reviews/js5srp-reviewform.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Parse error
syntax error, unexpected '}', expecting end of file in wp-content/plugins/5-star-google-reviews/js5srp-5-star-reviews-plugin.php on line 166
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/5-star-google-reviews/js5srp-sc.php:46
- > PHP Parse error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5 in 5-star-google-reviews/assets to your readme.txt
5-star-google-reviews/js5srp-5-star-reviews-plugin.php 85% from 13 tests
The primary PHP file in "5 Star Google Reviews" version 0.4 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 161 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("5-star-google-reviews.php" instead of "js5srp-5-star-reviews-plugin.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
No dangerous file extensions were detected3,861 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
LESS | 16 | 290 | 24 | 1,215 |
CSS | 6 | 97 | 190 | 1,131 |
JavaScript | 9 | 325 | 124 | 1,014 |
PHP | 4 | 90 | 48 | 316 |
Markdown | 2 | 79 | 0 | 107 |
JSON | 2 | 0 | 0 | 72 |
YAML | 1 | 2 | 0 | 6 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
jquery-bar-rating-master/examples/img/star@2x.png | 1.99KB | 1.25KB | ▼ 37.24% |
jquery-bar-rating-master/examples/img/antenna@2x.png | 5.29KB | 2.78KB | ▼ 47.40% |
jquery-bar-rating-master/examples/img/github@2x.png | 2.67KB | 2.24KB | ▼ 16.24% |
images/googlelogo.png | 15.42KB | 5.70KB | ▼ 63.03% |
images/yelplogo.png | 48.23KB | 17.06KB | ▼ 64.62% |