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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼0.35ms] Passed 4 tests
Analyzing server-side resources used by Import from YML
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 41.99 ▲1.94 |
Dashboard /wp-admin | 3.32 ▲0.02 | 47.70 ▲0.66 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 44.63 ▼1.22 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 83.49 ▼2.76 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 35.10 ▲3.55 |
Server storage [IO: ▲1.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 52 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Import from YML
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲58 | 14.18 ▼0.09 | 2.07 ▲0.46 | 34.70 ▼4.57 |
Dashboard /wp-admin | 2,197 ▲20 | 5.49 ▼0.13 | 87.05 ▼3.16 | 41.02 ▲2.40 |
Posts /wp-admin/edit.php | 2,105 ▲5 | 2.01 ▲0.05 | 36.54 ▼3.96 | 37.95 ▲2.57 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 24.83 ▲1.43 | 602.18 ▼13.43 | 57.70 ▲5.06 |
Media Library /wp-admin/upload.php | 1,405 ▲5 | 4.28 ▲0.07 | 98.17 ▼8.05 | 44.31 ▲2.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: Screenshot #1 (screenshot-2.png) image missing
import-from-yml/import-from-yml.php Passed 13 tests
The principal PHP file in "Import from YML" v. 3.1.0 is loaded by WordPress automatically on each request
39 characters long description:
Import products from YML to WooCommerce
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 detected8,170 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 44 | 714 | 2,853 | 7,595 |
PO File | 1 | 524 | 1,083 | 544 |
CSS | 1 | 0 | 1 | 31 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 24.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 2.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 24 | 100.00% |
▷ Final classes | 9 | 37.50% |
Methods | 283 | |
▷ Static methods | 15 | 5.30% |
▷ Public methods | 142 | 50.18% |
▷ Protected methods | 5 | 1.77% |
▷ Private methods | 136 | 48.06% |
Functions | 55 | |
▷ Named functions | 45 | 81.82% |
▷ Anonymous functions | 10 | 18.18% |
Constants | 17 | |
▷ Global constants | 13 | 76.47% |
▷ Class constants | 4 | 23.53% |
▷ Public constants | 4 | 100.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
2 PNG files occupy 0.41MB with 0.28MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 203.38KB | 63.22KB | ▼ 68.92% |
screenshot-2.png | 215.92KB | 65.99KB | ▼ 69.44% |