Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.64ms] Passed 4 tests
This is a short check of server-side resources used by Import Products to OZON
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.92 ▲0.27 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.56 ▼5.29 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 46.78 ▼0.71 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 90.73 ▼8.03 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 35.44 ▼0.51 |
Server storage [IO: ▲0.88MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Import Products to OZON
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.31 ▼1.06 | 1.64 ▼0.46 | 34.65 ▼2.56 |
Dashboard /wp-admin | 2,209 ▲24 | 5.80 ▼0.06 | 101.56 ▼2.75 | 44.54 ▲3.23 |
Posts /wp-admin/edit.php | 2,094 ▲5 | 1.97 ▼0.04 | 40.11 ▼1.65 | 39.23 ▲0.37 |
Add New Post /wp-admin/post-new.php | 1,544 ▲2 | 22.89 ▲4.69 | 575.96 ▼32.26 | 65.72 ▲10.69 |
Media Library /wp-admin/upload.php | 1,397 ▲12 | 4.31 ▲0.19 | 95.97 ▼3.27 | 42.61 ▼2.69 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add an image for screenshot #1 (screenshot-3.png)
import-products-to-ozon/import-products-to-ozon.php 92% from 13 tests
"Import Products to OZON" version 0.1.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("4.5" instead of "4.7")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected5,130 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 469 | 1,466 | 4,714 |
PO File | 1 | 544 | 1,156 | 380 |
CSS | 1 | 0 | 1 | 32 |
JavaScript | 2 | 0 | 1 | 4 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 18.05 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 2.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 6 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 9 | 60.00% |
Methods | 200 | |
▷ Static methods | 6 | 3.00% |
▷ Public methods | 142 | 71.00% |
▷ Protected methods | 11 | 5.50% |
▷ Private methods | 47 | 23.50% |
Functions | 40 | |
▷ Named functions | 28 | 70.00% |
▷ Anonymous functions | 12 | 30.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.51MB with 0.33MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 256.62KB | 74.11KB | ▼ 71.12% |
screenshot-1.png | 90.11KB | 33.85KB | ▼ 62.44% |
assets/img/instruction-1.png | 85.98KB | 31.72KB | ▼ 63.10% |
screenshot-2.png | 93.90KB | 36.26KB | ▼ 61.38% |