Benchmarks
Plugin footprint 30% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▲2.80ms] Passed 4 tests
A check of server-side resources used by Reeview
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 44.33 ▲3.49 |
Dashboard /wp-admin | 3.34 ▲0.03 | 51.15 ▲1.61 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 44.46 ▼2.79 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 102.57 ▲8.87 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 42.64 ▲9.15 |
Reeview /wp-admin/options-general.php?page=reeview | 3.20 | 38.45 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Just a few items left to fix
- Illegal file modification found: 1 file (3.18KB) outside of "wp-content/plugins/reeview/" and "wp-content/uploads/"
- (new file) wp-content/reeview.log
Filesystem: 39 new files
Database: 1 new table, 9 new options
New tables |
---|
reeview_products_status |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
reeview_key |
recovery_mode_email_last_sent |
db_upgraded |
reeview_option_name |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Reeview
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲68 | 13.14 ▼1.25 | 1.13 ▼0.68 | 46.62 ▲2.27 |
Dashboard /wp-admin | 2,217 ▲29 | 5.90 ▲0.98 | 113.36 ▼6.07 | 42.62 ▼1.11 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.06 ▲0.07 | 36.53 ▼4.12 | 35.74 ▼1.54 |
Add New Post /wp-admin/post-new.php | 1,529 ▼4 | 23.20 ▼0.02 | 736.46 ▲57.40 | 56.00 ▲4.46 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.21 ▼0.11 | 108.59 ▲2.27 | 45.67 ▼0.14 |
Reeview /wp-admin/options-general.php?page=reeview | 725 | 1.14 | 9.35 | 59.35 |
Uninstaller [IO: ▲0.24MB] [DB: ▲0.00MB] 0% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attentionThis plugin does not fully uninstall, leaving 1 table in the database This plugin did not uninstall successfully, leaving 13 options in the database
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/reeview/includes/src/class-reeview-connector.php+96
Trying to access array offset on value of type bool
- Uninstaller has failed for this plugin, leaving 39 files (0.23MB) in the plugin directory
- (new file) LICENSE.md
- (new file) assets/banner-772x225.png
- (new file) assets/banner-1544x500.png
- (new file) README.md
- (new file) assets/icon-128x128.png
- (new file) assets/icon.svg
- (new file) assets/screenshot-1.png
- (new file) assets/icon-256x256.png
- (new file) admin/class-reeview-admin.php
- (new file) assets/screenshot-2.png
- ...
- reeview_products_status
- recovery_mode_email_last_sent
- widget_recent-comments
- reeview_site_id
- widget_recent-posts
- widget_theysaidso_widget
- reeview_key
- theysaidso_admin_options
- vendor
- db_upgraded
- reeview_token
- ...
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)
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=reeview
- > Error in wp-content/plugins/reeview/admin/class-reeview-admin.php+133
Uncaught Error: Call to undefined function wc_get_attribute_taxonomies() in wp-content/plugins/reeview/admin/class-reeview-admin.php:133
Stack trace:
#0 wp-admin/includes/template.php(1824): Reeview_Admin->vendor_callback()
#1 wp-admin/includes/template.php(1778): do_settings_fields()
#2 wp-content/plugins/reeview/admin/class-reeview-admin.php(68): do_settings_sections()
#3 wp-includes/class-wp-hook.php(310): Reeview_Admin->reeview_create_admin_page()
#4 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#5 wp-includes/plugin.php(517): WP_Hook->do_action()
#6 wp-admin/admin.php(259): do_action()
#7 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
#8 {main}
thrown
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 8× 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/reeview/includes/api/class-reeview-import.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/reeview/includes/api/class-reeview-uninstall.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/reeview/includes/src/class-reeview-order-created.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/reeview/includes/class-reeview-load-api.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/reeview/includes/api/class-reeview-status.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/reeview/includes/api/class-reeview-install.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/reeview/uninstall.php:28
- > PHP Fatal error
Uncaught Error: Class 'Reeview_Sync' not found in wp-content/plugins/reeview/includes/api/class-reeview-on-demand-sync.php:83
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 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
Attributes that need to be fixed:
- Requires php: Version format is invalid
- Donate link: Please fix this invalid URI: ""
- Stable tag: Empty value
reeview/reeview.php 92% from 13 tests
The principal PHP file in "Reeview" v. 1.0.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 277 characters long)
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 plugin1,579 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 200 | 970 | 1,223 |
Markdown | 2 | 77 | 0 | 345 |
SVG | 1 | 0 | 0 | 11 |
PHP code Passed 2 tests
An short overview of 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.22 |
Average class complexity | 4.76 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 25 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 25 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 89 | |
▷ Static methods | 35 | 39.33% |
▷ Public methods | 82 | 92.13% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 7.87% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 27 | |
▷ Global constants | 10 | 37.04% |
▷ Class constants | 17 | 62.96% |
▷ Public constants | 17 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.13MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 22.88KB | 12.51KB | ▼ 45.34% |
assets/icon-128x128.png | 4.09KB | 2.79KB | ▼ 31.75% |
assets/screenshot-2.png | 13.82KB | 8.75KB | ▼ 36.70% |
assets/icon-256x256.png | 10.29KB | 6.17KB | ▼ 40.05% |
assets/banner-1544x500.png | 18.79KB | 9.30KB | ▼ 50.49% |