Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/wooreviews-importer/WooreviewsImporter_Plugin.php+33
Undefined offset: 1
Server metrics [RAM: ▲0.26MB] [CPU: ▼1.19ms] Passed 4 tests
An overview of server-side resources used by IRivYou - Add reviews from AliExpress and Amazon to woocommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 35.14 ▼2.89 |
Dashboard /wp-admin | 3.61 ▲0.30 | 44.81 ▼1.64 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 48.21 ▼1.99 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 94.35 ▲2.10 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 38.86 ▲1.76 |
Server storage [IO: ▲1.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 11 new options
New WordPress options |
---|
WooreviewsImporter_Plugin_CanDoSomething |
db_upgraded |
theysaidso_admin_options |
WooreviewsImporter_Plugin_ATextInput |
can_compress_scripts |
widget_recent-comments |
WooreviewsImporter_Plugin_AmAwesome |
WooreviewsImporter_Plugin__version |
widget_recent-posts |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
IRivYou - Add reviews from AliExpress and Amazon to woocommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲58 | 13.17 ▼1.00 | 1.88 ▼0.05 | 42.18 ▼3.11 |
Dashboard /wp-admin | 2,221 ▲30 | 5.82 ▼0.06 | 99.29 ▼3.87 | 78.21 ▲34.41 |
Posts /wp-admin/edit.php | 2,107 ▲21 | 1.97 ▼0.08 | 39.26 ▼1.08 | 34.34 ▼2.28 |
Add New Post /wp-admin/post-new.php | 1,895 ▲362 | 23.22 ▼0.03 | 756.74 ▲81.93 | 64.49 ▼8.23 |
Media Library /wp-admin/upload.php | 1,403 ▲15 | 4.13 ▼0.11 | 103.87 ▼15.97 | 80.92 ▲30.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 11 options
- widget_recent-comments
- db_upgraded
- WooreviewsImporter_Plugin__installed
- WooreviewsImporter_Plugin_AmAwesome
- can_compress_scripts
- WooreviewsImporter_Plugin_CanDoSomething
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- WooreviewsImporter_Plugin_ATextInput
- ...
Smoke tests 75% 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)
Good news, no errors were detected
SRP 50% 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
Almost there! Just fix the following items
- 2× 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/wooreviews-importer/wooreviews-importer.php:126
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wooreviews-importer/wooreviews-importer_init.php:140
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5, #6, #7, #0, #0 in wooreviews-importer/assets to your readme.txt
- Donate link: Please fix this invalid URI: ""
wooreviews-importer/wooreviews-importer.php Passed 13 tests
The principal PHP file in "IRivYou - Add reviews from AliExpress and Amazon to woocommerce" v. 2.2.1 is loaded by WordPress automatically on each request
59 characters long description:
Import Amazon reviews and Aliexpress reviews to woocommerce
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 plugin32,236 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 4,280 | 114 | 29,681 |
JavaScript | 4 | 91 | 26 | 1,337 |
PHP | 9 | 509 | 644 | 1,218 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 7.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 1.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 2 | 33.33% |
▷ Concrete classes | 4 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 72 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 44 | 61.11% |
▷ Protected methods | 28 | 38.89% |
▷ Private methods | 0 | 0.00% |
Functions | 24 | |
▷ Named functions | 24 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/chrome-extension-logo.png | 1.98KB | 1.34KB | ▼ 32.55% |
images/wooshark.png | 5.78KB | 5.78KB | 0.00% |
images/wooshark_1_27x27.png | 1.23KB | 1.03KB | ▼ 16.53% |