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.17MB] [CPU: ▼12.80ms] Passed 4 tests
Server-side resources used by Hong Kong FPS Woo Payment
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.61 ▼1.22 |
Dashboard /wp-admin | 3.20 ▼0.11 | 31.87 ▼15.59 |
Posts /wp-admin/edit.php | 3.26 ▼0.09 | 33.59 ▼14.36 |
Add New Post /wp-admin/post-new.php | 5.44 ▼0.45 | 76.11 ▼19.11 |
Media Library /wp-admin/upload.php | 3.20 ▼0.03 | 34.75 ▼2.13 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Hong Kong FPS Woo Payment
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲70 | 14.79 ▲0.75 | 1.78 ▲0.09 | 43.13 ▼1.95 |
Dashboard /wp-admin | 2,211 ▲26 | 4.82 ▼0.08 | 114.38 ▲5.48 | 44.83 ▲2.25 |
Posts /wp-admin/edit.php | 2,097 ▲11 | 2.17 ▲0.14 | 38.60 ▲0.72 | 33.54 ▼2.14 |
Add New Post /wp-admin/post-new.php | 1,538 ▲19 | 23.06 ▼0.23 | 639.83 ▼55.71 | 51.22 ▼2.66 |
Media Library /wp-admin/upload.php | 1,393 ▲8 | 4.31 ▲0.20 | 108.66 ▼2.23 | 48.36 ▲0.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
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)
Good news, no errors were detected
SRP Passed 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
The SRP test was a success
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)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Contributors: Plugin contributors not specified
hong-kong-fps-woo-payment/hong-kong-fps-woo-payment.php Passed 13 tests
The principal PHP file in "Hong Kong FPS Woo Payment" v. 1.44 is loaded by WordPress automatically on each request
133 characters long description:
Woocommerce payment method enabling Hong Kong FPS payments. Displays QR code and FPS payent if to user. Requires manual confirmation.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin2,617 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 755 | 532 | 2,617 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 23.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 3.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 156 | |
▷ Static methods | 61 | 39.10% |
▷ Public methods | 146 | 93.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 6.41% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 33 | |
▷ Global constants | 33 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/fps.png | 5.09KB | 2.43KB | ▼ 52.23% |