Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.15ms] Passed 4 tests
An overview of server-side resources used by Pockyt - Accept Alternative Payments
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 37.11 ▼2.26 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.97 ▼0.86 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 50.26 ▼0.18 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 93.85 ▼4.68 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.92 ▼0.81 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Pockyt - Accept Alternative Payments
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲64 | 13.24 ▼0.71 | 2.06 ▼0.03 | 40.15 ▼0.61 |
Dashboard /wp-admin | 2,213 ▲25 | 5.81 ▲0.91 | 107.62 ▲0.62 | 42.98 ▼6.09 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 1.99 ▼0.02 | 40.35 ▲4.09 | 35.86 ▲1.30 |
Add New Post /wp-admin/post-new.php | 1,552 ▲16 | 18.29 ▼4.75 | 631.02 ▼41.93 | 57.90 ▼11.53 |
Media Library /wp-admin/upload.php | 1,398 ▲10 | 4.26 ▲0.05 | 94.58 ▼12.07 | 42.24 ▼0.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (The settings panel used to configure the gateway.), #2 (Normal checkout with Yuansfer.), #3 (Option to save a card to your account.), #4 (Checking out with a saved card.), #5 (Using the Yuansfer checkout modal.)
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
woo-yuansfer/woocommerce-yuansfer.php 92% from 13 tests
The primary PHP file in "Pockyt - Accept Alternative Payments" version 3.0.6 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("woo-yuansfer.php" instead of "woocommerce-yuansfer.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin4,039 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 959 | 1,895 | 3,811 |
Markdown | 1 | 52 | 0 | 104 |
CSS | 3 | 3 | 0 | 49 |
SVG | 5 | 0 | 1 | 44 |
JavaScript | 2 | 6 | 6 | 31 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 33.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 3.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 1 | 5.00% |
▷ Concrete classes | 19 | 95.00% |
▷ Final classes | 0 | 0.00% |
Methods | 228 | |
▷ Static methods | 45 | 19.74% |
▷ Public methods | 215 | 94.30% |
▷ Protected methods | 9 | 3.95% |
▷ Private methods | 4 | 1.75% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 31 | |
▷ Global constants | 7 | 22.58% |
▷ Class constants | 24 | 77.42% |
▷ Public constants | 24 | 100.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
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/creditcard.png | 1.61KB | 1.40KB | ▼ 12.82% |
assets/images/wechatpay.png | 31.18KB | 7.70KB | ▼ 75.32% |