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
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.30ms] Passed 4 tests
Analyzing server-side resources used by Solo Solis Product Import
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.38 ▼3.76 |
Dashboard /wp-admin | 3.31 ▲0.00 | 51.47 ▼0.97 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 52.34 ▲4.62 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.08 ▼16.31 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.84 ▼0.16 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Solo Solis Product Import: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.70 ▲0.30 | 1.79 ▲0.05 | 41.54 ▲0.57 |
Dashboard /wp-admin | 2,195 ▲15 | 5.64 ▼0.03 | 92.46 ▲3.21 | 40.45 ▼3.55 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.05 ▲0.05 | 40.80 ▲0.12 | 35.24 ▼2.69 |
Add New Post /wp-admin/post-new.php | 1,550 ▲18 | 23.37 ▼0.05 | 592.11 ▼56.99 | 62.54 ▲14.20 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.19 ▼0.07 | 97.60 ▼5.80 | 42.19 ▼1.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/solo-solis-product-import/woo-product-importer-upload.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_redirect() in wp-content/plugins/solo-solis-product-import/woo-product-importer-preview.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/solo-solis-product-import/woo-product-importer-common.php:144
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_redirect() in wp-content/plugins/solo-solis-product-import/woo-product-importer-result.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/solo-solis-product-import/woo-product-importer-ajax.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: A description for screenshot #2 is missing in solo-solis-product-import/assets to your readme.txt
solo-solis-product-import/woo-product-importer.php 85% from 13 tests
The principal PHP file in "Solo Solis Product Import" v. 1.2.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("solo-solis-product-import.php" instead of "woo-product-importer.php")
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
Success! There were no dangerous files found in this plugin1,039 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 241 | 153 | 1,039 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 8 | 80.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 PNG files occupy 0.14MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/solo-solis.png | 17.69KB | 6.40KB | ▼ 63.79% |
img/error.png | 0.65KB | 0.68KB | 0.00% |
Screenshot-2.png | 26.79KB | 13.29KB | ▼ 50.38% |
img/icon.png | 0.48KB | 0.49KB | 0.00% |
img/exclamation.png | 0.68KB | 0.72KB | 0.00% |