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.64MB] [CPU: ▼22.50ms] Passed 4 tests
An overview of server-side resources used by StarPay-WPP Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 41.82 ▼3.45 |
Dashboard /wp-admin | 3.36 ▲0.01 | 51.87 ▼17.67 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 49.82 ▼2.92 |
Add New Post /wp-admin/post-new.php | 3.23 ▼2.66 | 40.65 ▼65.94 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 40.08 ▲2.04 |
Apply /wp-admin/admin.php?page=starpayapply | 3.25 | 34.96 |
StarPay-WPP /wp-admin/admin.php?page=starpayconfig | 3.25 | 32.72 |
About Us /wp-admin/admin.php?page=starpayaboutus | 3.25 | 34.33 |
Server storage [IO: ▲4.38MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
StarPay-WPP Plugin: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,942 ▲156 | 13.89 ▼0.41 | 10.23 ▲8.06 | 43.57 ▲0.71 |
Dashboard /wp-admin | 2,222 ▲54 | 5.63 ▲0.07 | 83.47 ▼14.50 | 39.87 ▼0.05 |
Posts /wp-admin/edit.php | 2,126 ▲26 | 1.90 ▼0.14 | 32.86 ▼2.12 | 34.07 ▼5.16 |
Add New Post /wp-admin/post-new.php | 1,552 ▲21 | 23.41 ▼0.06 | 690.93 ▲16.24 | 59.41 ▲6.09 |
Media Library /wp-admin/upload.php | 1,427 ▲27 | 4.24 ▼0.02 | 96.45 ▼12.81 | 41.11 ▼7.49 |
Apply /wp-admin/admin.php?page=starpayapply | 800 | 2.05 | 23.96 | 43.62 |
StarPay-WPP /wp-admin/admin.php?page=starpayconfig | 808 | 2.05 | 24.29 | 29.42 |
About Us /wp-admin/admin.php?page=starpayaboutus | 867 | 2.16 | 27.27 | 27.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
starpay-wpp/wc-starpay-main.php 85% from 13 tests
The principal PHP file in "StarPay-WPP Plugin" v. 1.0.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: The principal plugin file should be the same as the plugin slug ("starpay-wpp.php" instead of "wc-starpay-main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,106 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 142 | 153 | 1,078 |
JavaScript | 1 | 0 | 0 | 28 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 112.00 |
▷ Minimum class complexity | 112.00 |
▷ Maximum class complexity | 112.00 |
Average method complexity | 7.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.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 | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 27 | |
▷ Named functions | 27 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
11 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/alipay_logo.png | 5.76KB | 2.94KB | ▼ 48.93% |
images/merpay_logo.png | 2.07KB | 1.62KB | ▼ 21.87% |
images/linepay_logo.png | 2.08KB | 1.34KB | ▼ 35.62% |
images/Wechat_logo.png | 3.74KB | 2.23KB | ▼ 40.22% |
images/unionpay_logo.png | 4.70KB | 2.54KB | ▼ 45.98% |