Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼2.91ms] Passed 4 tests
A check of server-side resources used by WP Rate And Review
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 35.46 ▼2.09 |
Dashboard /wp-admin | 3.42 ▲0.12 | 46.11 ▲1.62 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 43.56 ▼1.79 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 89.13 ▼9.39 |
Media Library /wp-admin/upload.php | 3.34 ▲0.12 | 35.90 ▲2.34 |
Server storage [IO: ▲1.30MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 49 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Rate And Review
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.35 ▼0.27 | 1.66 ▲0.14 | 37.35 ▲0.02 |
Dashboard /wp-admin | 2,198 ▲18 | 5.55 ▼0.09 | 82.84 ▼4.03 | 38.09 ▼6.49 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.95 ▼0.00 | 35.53 ▲0.03 | 35.57 ▲2.05 |
Add New Post /wp-admin/post-new.php | 1,541 ▲4 | 18.09 ▼0.07 | 598.75 ▼32.93 | 61.60 ▲14.46 |
Media Library /wp-admin/upload.php | 1,409 ▲6 | 4.17 ▼0.11 | 100.93 ▲4.95 | 44.16 ▼0.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-rate-and-review/includes/class-wpub-form-fields.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WPUB_Form_Fields' not found in wp-content/plugins/wp-rate-and-review/views/settings.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-rate-and-review/views/welcome.php:2
- > 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 on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: These screenshots need descriptions #4, #5, #6, #7, #8 in wp-rate-and-review/assets to your readme.txt
wp-rate-and-review/wp-rate-and-review.php 92% from 13 tests
"WP Rate And Review" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("5.8" instead of "3.0")
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
Success! There were no dangerous files found in this plugin6,641 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 15 | 5,227 | 85 | 5,122 |
PHP | 5 | 512 | 200 | 1,464 |
JavaScript | 3 | 16 | 2 | 42 |
SVG | 1 | 1 | 0 | 13 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 62.33 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 89.00 |
Average method complexity | 5.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.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 | 43 | |
▷ Static methods | 3 | 6.98% |
▷ Public methods | 43 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
15 PNG files occupy 0.48MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/4.png | 18.42KB | 7.09KB | ▼ 61.51% |
assets/images/2.png | 19.57KB | 7.84KB | ▼ 59.96% |
assets/images/banner-772x250.png | 56.94KB | 20.40KB | ▼ 64.18% |
assets/images/6.png | 25.14KB | 9.32KB | ▼ 62.94% |
assets/images/paypal2.png | 24.96KB | 3.98KB | ▼ 84.07% |