Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼0.37ms] Passed 4 tests
This is a short check of server-side resources used by Oceanpayment AlipayHK Gateway
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.36 ▼0.35 |
Dashboard /wp-admin | 3.31 ▲0.00 | 52.90 ▼2.41 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.87 ▲4.52 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.51 ▲1.95 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.88 ▼0.66 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Oceanpayment AlipayHK Gateway: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.55 ▼1.08 | 4.78 ▲2.59 | 45.93 ▲1.71 |
Dashboard /wp-admin | 2,206 ▲18 | 5.85 ▼0.11 | 109.50 ▼7.19 | 42.27 ▼0.27 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.01 ▲0.02 | 40.19 ▲3.33 | 34.31 ▲1.29 |
Add New Post /wp-admin/post-new.php | 1,533 ▼2 | 23.22 ▼0.03 | 601.04 ▼62.84 | 47.72 ▼15.96 |
Media Library /wp-admin/upload.php | 1,385 ▼6 | 4.21 ▲0.00 | 98.46 ▼1.69 | 45.49 ▲2.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/oceanpayment-alipayhk-gateway/oceanalipayhk.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
1 plugin tags: payment
oceanpayment-alipayhk-gateway/oceanalipayhk.php 92% from 13 tests
Analyzing the main PHP file in "Oceanpayment AlipayHK Gateway" version 6.0
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("oceanpayment-alipayhk-gateway.php" instead of "oceanalipayhk.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin517 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 132 | 189 | 517 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 65.00 |
▷ Minimum class complexity | 65.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 4.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/op_Alipayhk.png | 1.92KB | 1.98KB | 0.00% |