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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼1.27ms] Passed 4 tests
Analyzing server-side resources used by J&T Express Malaysia
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 39.59 ▼0.30 |
Dashboard /wp-admin | 3.46 ▲0.15 | 47.97 ▲0.05 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 43.80 ▼1.16 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 90.27 ▼3.65 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 33.34 ▲1.43 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for J&T Express Malaysia
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲59 | 14.67 ▲0.33 | 2.00 ▲0.30 | 43.78 ▼0.25 |
Dashboard /wp-admin | 2,204 ▲27 | 5.62 ▼0.02 | 88.84 ▲0.81 | 38.74 ▲1.66 |
Posts /wp-admin/edit.php | 2,107 ▲10 | 2.01 ▲0.07 | 37.76 ▼1.02 | 35.74 ▲2.34 |
Add New Post /wp-admin/post-new.php | 1,532 ▼13 | 23.10 ▼2.02 | 667.07 ▲31.82 | 55.46 ▼8.36 |
Media Library /wp-admin/upload.php | 1,406 ▲12 | 4.18 ▲0.01 | 97.20 ▼2.48 | 43.59 ▲1.52 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 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
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/jt-express/admin/view/tracking.php
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Undefined variable: res in wp-content/plugins/jt-express/admin/view/tracking.php on line 70
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/jt-express/admin/view/thermal-new.php:2
- > PHP Notice
Undefined variable: res in wp-content/plugins/jt-express/admin/view/tracking.php on line 140
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/jt-express/includes/class-jnt-shipping.php:3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: jt malaysia, jnt, jtexpress, jt express
jt-express/jnt.php 92% from 13 tests
"J&T Express Malaysia" version 2.0.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("jt-express.php" instead of "jnt.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin2,416 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 370 | 85 | 1,666 |
SVG | 1 | 0 | 1 | 750 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 8.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 2.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 57 | |
▷ Static methods | 4 | 7.02% |
▷ Public methods | 51 | 89.47% |
▷ Protected methods | 6 | 10.53% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin