Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.44ms] Passed 4 tests
Analyzing server-side resources used by Import Products to OK.ru
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.01 ▼1.90 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.90 ▼5.33 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.92 ▼2.60 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 86.79 ▼11.93 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.02 ▲2.23 |
Server storage [IO: ▲1.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Import Products to OK.ru
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲33 | 14.37 ▲0.44 | 1.79 ▲0.16 | 29.73 ▼12.96 |
Dashboard /wp-admin | 2,197 ▲20 | 5.49 ▼0.15 | 91.14 ▲2.64 | 39.80 ▼3.90 |
Posts /wp-admin/edit.php | 2,102 ▲2 | 1.98 ▼0.11 | 34.98 ▼3.05 | 34.58 ▼0.73 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 18.12 ▼5.00 | 642.48 ▲16.13 | 86.16 ▲29.89 |
Media Library /wp-admin/upload.php | 1,408 ▲8 | 4.15 ▼0.01 | 98.87 ▼3.63 | 43.88 ▲0.07 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #1 (screenshot-4.png) image not found
import-products-to-ok-ru/import-products-to-ok-ru.php 92% from 13 tests
Analyzing the main PHP file in "Import Products to OK.ru" version 2.0.3
Please take the time to fix the following:
- Requires at least: The required version number 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 review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin4,965 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 491 | 1,117 | 4,382 |
PO File | 1 | 504 | 1,018 | 551 |
CSS | 1 | 0 | 1 | 32 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 19.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.75 |
▷ 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 | 214 | |
▷ Static methods | 6 | 2.80% |
▷ Public methods | 139 | 64.95% |
▷ Protected methods | 11 | 5.14% |
▷ Private methods | 64 | 29.91% |
Functions | 36 | |
▷ Named functions | 24 | 66.67% |
▷ Anonymous functions | 12 | 33.33% |
Constants | 13 | |
▷ Global constants | 11 | 84.62% |
▷ Class constants | 2 | 15.38% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.33MB with 0.20MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 94.53KB | 35.97KB | ▼ 61.94% |
screenshot-4.png | 67.43KB | 26.59KB | ▼ 60.57% |
screenshot-2.png | 89.59KB | 35.92KB | ▼ 59.91% |
screenshot-3.png | 87.57KB | 32.03KB | ▼ 63.43% |