Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼8.56ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce 轉數快 Faster Payment System (FPS) Hong Kong
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 43.35 ▼1.74 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.85 ▼6.71 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.45 ▼9.31 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.87 ▼16.47 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.57 ▼0.92 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce 轉數快 Faster Payment System (FPS) Hong Kong
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.23 ▲0.03 | 1.75 ▼0.01 | 44.94 ▼2.91 |
Dashboard /wp-admin | 2,198 ▲21 | 5.65 ▲0.04 | 94.55 ▼4.64 | 42.96 ▲2.29 |
Posts /wp-admin/edit.php | 2,082 ▼18 | 1.98 ▲0.02 | 34.30 ▼5.54 | 35.65 ▲0.45 |
Add New Post /wp-admin/post-new.php | 1,527 ▼16 | 23.15 ▲0.17 | 656.18 ▲21.68 | 57.12 ▲7.41 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.12 ▼0.04 | 95.57 ▼14.18 | 44.91 ▼1.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wpp-faster-payment-systemfps-hong-kong/public/partials/wc-fps-reference-number.php:11
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/wpp-faster-payment-systemfps-hong-kong/includes/payment-methods/class-wc-fps-gateway-offline.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
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Donate link: Invalid URI found ("")
wpp-faster-payment-systemfps-hong-kong/woocommerce-fps.php 85% from 13 tests
Analyzing the main PHP file in "WooCommerce 轉數快 Faster Payment System (FPS) Hong Kong" version 1.0.4
The following require your attention:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wpp-faster-payment-systemfps-hong-kong.php" instead of "woocommerce-fps.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin760 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 71 | 198 | 394 |
PO File | 3 | 72 | 75 | 243 |
SVG | 1 | 0 | 1 | 122 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 4.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 41 | |
▷ Static methods | 2 | 4.88% |
▷ Public methods | 34 | 82.93% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 17.07% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
2 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/fps-icon-large.png | 44.62KB | 18.88KB | ▼ 57.70% |
public/images/fps-icon-small.png | 2.55KB | 1.39KB | ▼ 45.58% |