Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼10.79ms] Passed 4 tests
This is a short check of server-side resources used by CDEK for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 33.44 ▼9.97 |
Dashboard /wp-admin | 3.31 ▼0.04 | 43.35 ▼16.19 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.27 ▼5.26 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.30 ▼11.72 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.09 ▲0.11 |
Server storage [IO: ▲34.02MB] [DB: ▲0.07MB] 67% from 3 tests
Input-output and database impact of this plugin
Just a few items left to fix
- Filesystem usage must be lower than 25MB (currently using 34.02MB)
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for CDEK for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.41 ▲0.06 | 1.63 ▼0.04 | 36.47 ▼3.23 |
Dashboard /wp-admin | 2,198 ▲21 | 5.61 ▲0.10 | 83.05 ▼1.40 | 37.08 ▼7.27 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.01 ▲0.02 | 38.12 ▲3.55 | 35.70 ▼1.12 |
Add New Post /wp-admin/post-new.php | 1,526 ▼3 | 23.69 ▲0.72 | 636.91 ▼2.05 | 56.17 ▲6.13 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.23 ▲0.00 | 93.93 ▼6.37 | 44.15 ▲2.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/cdek-for-woocommerce/includes/controls/control-pvz-select-list.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: woocommerce, cdek, woocommerce shipping, ecommerce, shipping
cdek-for-woocommerce/cdek-for-woocommerce.php 92% from 13 tests
The principal PHP file in "CDEK for WooCommerce" v. 1.1.6 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("5.4" instead of "5.5")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin933,584 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 931,128 |
PHP | 11 | 340 | 592 | 2,304 |
JavaScript | 1 | 17 | 0 | 78 |
CSS | 1 | 9 | 0 | 57 |
HTML | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 30.43 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 100.00 |
Average method complexity | 3.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 74 | |
▷ Static methods | 33 | 44.59% |
▷ Public methods | 73 | 98.65% |
▷ Protected methods | 1 | 1.35% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 compressed PNG files occupy 0.12MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/pvz-select.png | 61.24KB | 61.00KB | 0.38% |
assets/images/intakes.png | 17.44KB | 18.26KB | 0.00% |
assets/images/order.png | 27.92KB | 27.51KB | ▼ 1.46% |
assets/images/state-city-select.png | 16.72KB | 15.93KB | ▼ 4.74% |