Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼142.13ms] Passed 4 tests
Server-side resources used by Product Size Chart for Woocommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.03 | 33.14 ▼2.12 |
Dashboard /wp-admin | 3.08 ▲0.03 | 45.96 ▼1.14 |
Posts /wp-admin/edit.php | 3.13 ▲0.03 | 58.69 ▲13.33 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 111.90 ▼557.43 |
Media Library /wp-admin/upload.php | 3.03 ▲0.02 | 33.08 ▼7.82 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Product Size Chart for Woocommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,689 ▲93 | 15.87 ▲0.27 | 11.05 ▼0.12 | 46.92 ▼0.76 |
Dashboard /wp-admin | 2,977 ▲40 | 5.91 ▼0.01 | 161.48 ▲18.22 | 137.89 ▲28.60 |
Posts /wp-admin/edit.php | 2,749 ▲10 | 2.72 ▲0.00 | 80.66 ▲10.08 | 100.78 ▲6.70 |
Add New Post /wp-admin/post-new.php | 1,611 ▼76 | 18.81 ▼0.05 | 393.12 ▼7.44 | 108.49 ▼6.12 |
Media Library /wp-admin/upload.php | 1,817 ▲69 | 5.00 ▼0.01 | 190.47 ▲25.58 | 121.46 ▼0.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: product chart for woocommerce, size chart for woocommerce, product chart, size chart
productsize-chart-for-woocommerce/productsize-chart-for-woocommerce.php Passed 13 tests
The principal PHP file in "Product Size Chart for Woocommerce" v. 1.1.3 is loaded by WordPress automatically on each request
68 characters long description:
This plugin allow you to use size charts to products on woocommerce.
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 plugin2,647 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 408 | 775 | 1,339 |
JavaScript | 4 | 241 | 270 | 901 |
CSS | 5 | 90 | 59 | 407 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 12.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 2.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 59 | |
▷ Static methods | 2 | 3.39% |
▷ Public methods | 54 | 91.53% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 8.47% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin