Benchmarks
Plugin footprint 57% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/a2reviews/public/class-a2reviews-public.php+333
Trying to get property 'widget_position' of non-object
Server metrics [RAM: ▲0.33MB] [CPU: ▲631.54ms] 50% from 4 tests
A check of server-side resources used by A2Reviews
Please fix the following
- CPU: Total CPU usage should be kept under 500.00ms (currently 975.47ms on /wp-admin/options-general.php?page=a2reviews-setting-admin)
- Extra CPU: Extra CPU usage should be kept under 200.00ms (currently 631.54ms on /wp-admin/options-general.php?page=a2reviews-setting-admin)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.36 | 563.70 ▲519.00 |
Dashboard /wp-admin | 3.64 ▲0.30 | 615.07 ▲547.58 |
Posts /wp-admin/edit.php | 3.69 ▲0.34 | 614.93 ▲561.89 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.36 | 1,005.36 ▲897.68 |
Media Library /wp-admin/upload.php | 3.57 ▲0.34 | 946.41 ▲903.84 |
A2reviews /wp-admin/options-general.php?page=a2reviews-setting-admin | 3.49 | 975.47 |
Server storage [IO: ▲1.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
a2reviews_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by A2Reviews
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,963 ▲202 | 15.64 ▲1.29 | 2.00 ▲0.39 | 36.13 ▼3.30 |
Dashboard /wp-admin | 2,344 ▲164 | 7.38 ▲1.69 | 130.80 ▲42.83 | 51.67 ▲6.77 |
Posts /wp-admin/edit.php | 2,407 ▲310 | 4.34 ▲2.35 | 63.57 ▲26.71 | 37.18 ▲4.56 |
Add New Post /wp-admin/post-new.php | 1,546 ▲18 | 23.39 ▲0.22 | 663.53 ▼27.00 | 39.98 ▼22.34 |
Media Library /wp-admin/upload.php | 1,583 ▲180 | 5.94 ▲1.76 | 118.59 ▲14.23 | 49.62 ▼0.29 |
A2reviews /wp-admin/options-general.php?page=a2reviews-setting-admin | 1,489 | 5.09 | 78.90 | 44.27 |
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
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- a2reviews_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for 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 output text when accessed directly:
- > /wp-content/plugins/a2reviews/public/partials/a2reviews-public-display.php
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/a2reviews/admin/partials/a2reviews-admin-display.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/a2reviews/includes/functions.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/a2reviews/public/class-a2reviews-shortcode.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/a2reviews/public/class-a2reviews-order.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/a2reviews/public/partials/feature-reviews.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5, #6, #7, #8 in a2reviews/assets to your readme.txt
a2reviews/a2reviews.php Passed 13 tests
The main PHP script in "A2Reviews" version 1.2.3 is automatically included on every request by WordPress
85 characters long description:
A2Reviews is the best review app for WooCommerce. Smart assessment management system.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,691 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 428 | 1,037 | 1,414 |
JavaScript | 5 | 30 | 13 | 186 |
CSS | 3 | 23 | 8 | 91 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 16.18 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 68 | |
▷ Static methods | 4 | 5.88% |
▷ Public methods | 52 | 76.47% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 23.53% |
Functions | 24 | |
▷ Named functions | 4 | 16.67% |
▷ Anonymous functions | 20 | 83.33% |
Constants | 5 | |
▷ Global constants | 5 | 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
PNG images were not found in this plugin