Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.05ms] Passed 4 tests
This is a short check of server-side resources used by Generate Reviews
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.01 | 45.77 ▲2.22 |
Dashboard /wp-admin | 3.58 ▲0.01 | 49.79 ▼5.55 |
Posts /wp-admin/edit.php | 3.69 ▲0.01 | 52.33 ▼2.16 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.01 | 97.09 ▲1.28 |
Media Library /wp-admin/upload.php | 3.50 ▲0.01 | 42.61 ▲4.45 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Generate Reviews
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,899 ▲113 | 13.85 ▼0.44 | 9.07 ▲6.49 | 43.32 ▼4.09 |
Dashboard /wp-admin | 2,200 ▲26 | 5.62 ▼0.02 | 90.20 ▼2.66 | 39.59 ▼6.09 |
Posts /wp-admin/edit.php | 2,102 ▲2 | 2.04 ▲0.00 | 41.63 ▲1.46 | 34.35 ▼1.48 |
Add New Post /wp-admin/post-new.php | 1,528 ▼26 | 23.38 ▲4.99 | 621.68 ▼47.05 | 51.24 ▼2.30 |
Media Library /wp-admin/upload.php | 1,399 ▼4 | 4.17 ▼0.02 | 99.45 ▼3.62 | 44.14 ▼1.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/generate-reviews/generate-reviews.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/generate-reviews/format.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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
1 plugin tags: generate reviews
generate-reviews/generate-reviews.php Passed 13 tests
The main PHP script in "Generate Reviews" version 1.0 is automatically included on every request by WordPress
118 characters long description:
This plugin created exclusively for Fivestar Reviews Site Clients with website. (https://www.fivestarreviewssite.com/)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin529 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 52 | 5 | 331 |
PHP | 2 | 53 | 22 | 198 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
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 | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/fivestar-icon.png | 7.97KB | 3.25KB | ▼ 59.22% |
images/stars.png | 3.65KB | 2.17KB | ▼ 40.42% |
images/google-icon.png | 8.49KB | 3.39KB | ▼ 60.10% |
images/fb.png | 3.26KB | 1.81KB | ▼ 44.42% |