Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼1.72ms] Passed 4 tests
An overview of server-side resources used by WooCommerce JNE Shipping
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 37.29 ▼6.27 |
Dashboard /wp-admin | 3.36 ▲0.06 | 46.10 ▼3.32 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 47.72 ▲0.64 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 85.74 ▲2.06 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 37.39 ▲2.23 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for WooCommerce JNE Shipping
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.74 ▲0.16 | 1.74 ▼0.28 | 42.24 ▼3.26 |
Dashboard /wp-admin | 2,209 ▲27 | 5.90 ▲1.04 | 108.92 ▲2.81 | 41.95 ▲2.58 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.00 ▼0.05 | 40.07 ▼0.87 | 34.87 ▼2.70 |
Add New Post /wp-admin/post-new.php | 1,533 ▼3 | 23.09 ▼0.11 | 667.92 ▲76.98 | 54.86 ▼3.37 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.15 ▼0.09 | 95.28 ▼3.75 | 45.36 ▲2.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
woocommerce-jne/woocommerce-jne.php 92% from 13 tests
This is the main PHP file of "WooCommerce JNE Shipping" version 8.2.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "3.0.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin3,052 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 483 | 1,122 | 2,125 |
Markdown | 2 | 124 | 0 | 456 |
JavaScript | 4 | 64 | 21 | 330 |
CSS | 2 | 32 | 2 | 140 |
Sass | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 46.86 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 163.00 |
Average method complexity | 3.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.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 | 148 | |
▷ Static methods | 11 | 7.43% |
▷ Public methods | 86 | 58.11% |
▷ Protected methods | 43 | 29.05% |
▷ Private methods | 19 | 12.84% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 58 | |
▷ Global constants | 2 | 3.45% |
▷ Class constants | 56 | 96.55% |
▷ Public constants | 56 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.07MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/good.png | 0.52KB | 0.52KB | 0.00% |
assets/images/upgrade-728x90.png | 63.73KB | 24.31KB | ▼ 61.86% |
assets/images/help.png | 0.30KB | 0.32KB | 0.00% |
assets/images/bad.png | 0.64KB | 0.72KB | 0.00% |
assets/images/logo.png | 5.43KB | 3.12KB | ▼ 42.54% |