Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.32ms] Passed 4 tests
Analyzing server-side resources used by Product Size Chart
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.47 ▼1.88 |
Dashboard /wp-admin | 3.31 ▲0.00 | 42.64 ▼3.85 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.01 ▼2.04 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 78.54 ▼12.31 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.73 ▼3.08 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Product Size Chart
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲61 | 13.30 ▼1.46 | 1.66 ▼0.25 | 39.47 ▼5.43 |
Dashboard /wp-admin | 2,206 ▲15 | 5.76 ▲0.89 | 101.30 ▼4.63 | 39.99 ▼5.03 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.05 ▲0.04 | 39.30 ▼0.76 | 35.87 ▼4.53 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 22.93 ▼0.29 | 679.38 ▲91.95 | 52.33 ▲3.38 |
Media Library /wp-admin/upload.php | 1,382 ▼3 | 4.17 ▼0.12 | 96.43 ▼4.39 | 41.25 ▼5.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/zestard-product-size-chart/zestard-product-size-chart.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/zestard-product-size-chart/includes/admin/inc/zpsc-post-type.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_meta_box() in wp-content/plugins/zestard-product-size-chart/includes/admin/inc/zpsc-meta-box.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 97% 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
Please fix the following attributes:
- Donate link: Please fix this invalid URI: "'';"
zestard-product-size-chart/zestard-product-size-chart.php Passed 13 tests
"Product Size Chart" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
57 characters long description:
Allows you to create size chart for products and category
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
No dangerous file extensions were detected5,695 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 1,250 | 395 | 4,726 |
PHP | 6 | 1,027 | 355 | 494 |
CSS | 3 | 71 | 18 | 475 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 53.00 |
▷ Minimum class complexity | 53.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 3.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ 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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/admin/image/zpsc-deselect-all.png | 0.31KB | 0.34KB | 0.00% |
includes/admin/image/zpsc-select-all.png | 0.42KB | 0.50KB | 0.00% |