Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼10.10ms] Passed 4 tests
A check of server-side resources used by Skynet Malaysia
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.98 ▲0.25 | 40.12 ▼2.73 |
Dashboard /wp-admin | 3.81 ▲0.17 | 52.25 ▼15.32 |
Posts /wp-admin/edit.php | 3.86 ▲0.18 | 53.62 ▼3.47 |
Add New Post /wp-admin/post-new.php | 6.34 ▲0.20 | 97.06 ▼18.86 |
Media Library /wp-admin/upload.php | 3.67 ▲0.18 | 40.05 ▼2.63 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 28 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_wc_skynet_printed_sticker |
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
wc_skynet_db_version |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Skynet Malaysia
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,888 ▲117 | 13.83 ▼0.54 | 7.99 ▲6.06 | 43.30 ▼0.90 |
Dashboard /wp-admin | 2,208 ▲28 | 5.64 ▼0.05 | 94.46 ▲6.84 | 43.09 ▲0.24 |
Posts /wp-admin/edit.php | 2,120 ▲20 | 2.04 ▼0.02 | 43.65 ▲1.61 | 39.36 ▲0.32 |
Add New Post /wp-admin/post-new.php | 1,542 ▲16 | 17.62 ▼0.02 | 667.51 ▲49.73 | 56.21 ▼7.57 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.24 ▲0.02 | 103.83 ▼2.54 | 41.80 ▼5.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie tables were found after uninstall: 1 table
- wp_wc_skynet_printed_sticker
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- wc_skynet_db_version
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
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 no errors were found, 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
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/skynet-malaysia/admin/partials/skynet-admin-display.php
- > /wp-content/plugins/skynet-malaysia/public/partials/skynet-public-display.php
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_get_order() in wp-content/plugins/skynet-malaysia/admin/partials/skynet-print-awb-meta-box.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function str_contains() in wp-content/plugins/skynet-malaysia/admin/partials/skynet-reprint-bulky-awb.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function str_contains() in wp-content/plugins/skynet-malaysia/admin/partials/skynet-print-bulky-awb.php:4
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/skynet-malaysia/includes/woocommerce/class-skynet-shipping.php:3
- > PHP Fatal error
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 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: shipping, skynet, woocommerce
skynet-malaysia/skynet-malaysia.php 85% from 13 tests
This is the main PHP file of "Skynet Malaysia" version 1.0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "3.0.0")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
No dangerous file extensions were detected1,888 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 309 | 733 | 1,352 |
JavaScript | 2 | 123 | 82 | 536 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 11.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 2.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 56 | |
▷ Static methods | 2 | 3.57% |
▷ Public methods | 49 | 87.50% |
▷ Protected methods | 2 | 3.57% |
▷ Private methods | 5 | 8.93% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected