Benchmarks
Plugin footprint 83% 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.54MB] [CPU: ▼3.63ms] Passed 4 tests
This is a short check of server-side resources used by Import WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.02 ▲0.56 | 40.48 ▲3.19 |
Dashboard /wp-admin | 3.85 ▲0.51 | 46.83 ▼13.89 |
Posts /wp-admin/edit.php | 3.97 ▲0.61 | 51.09 ▲3.63 |
Add New Post /wp-admin/post-new.php | 6.43 ▲0.55 | 95.64 ▼6.96 |
Media Library /wp-admin/upload.php | 3.78 ▲0.55 | 40.02 ▲3.13 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Import WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.67 ▲0.32 | 1.59 ▼0.15 | 37.58 ▼2.46 |
Dashboard /wp-admin | 2,192 ▲15 | 5.53 ▼0.13 | 92.05 ▼2.42 | 39.39 ▼3.45 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 1.95 ▲0.00 | 41.10 ▼0.48 | 37.11 ▲1.34 |
Add New Post /wp-admin/post-new.php | 1,526 ▼10 | 22.91 ▼0.12 | 674.03 ▼5.29 | 61.75 ▲16.08 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.16 ▼0.05 | 97.27 ▼7.07 | 41.59 ▼1.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Tags: There are too many tags (12 tag instead of maximum 10)
- Screenshots: Add images for these screenshots: #1 (CSV Upload section.), #2 (Product feed mapping section.), #3 (Import configuration section.), #4 (Log section with both Admin and Web views.)
import-woocommerce/import-woocommerce.php 92% from 13 tests
The principal PHP file in "Import WooCommerce" v. 1.9 is loaded by WordPress automatically on each request
The following require your attention:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin2,999 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 341 | 241 | 2,999 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
The following items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 489)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 75.40 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 490.00 |
Average method complexity | 13.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 489.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 62 | |
▷ Static methods | 20 | 32.26% |
▷ Public methods | 62 | 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 | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.34MB with 0.24MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 65.35KB | 18.82KB | ▼ 71.20% |
screenshot-1.png | 70.91KB | 19.74KB | ▼ 72.16% |
screenshot-4.png | 96.25KB | 25.06KB | ▼ 73.96% |
screenshot-2.png | 114.99KB | 33.48KB | ▼ 70.88% |