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 successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.00MB] [CPU: ▼11.09ms] Passed 4 tests
A check of server-side resources used by FPX Payment for WPSmartPay (Billplz)
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.11 ▼6.61 |
Dashboard /wp-admin | 3.31 ▼0.03 | 48.16 ▼16.95 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 56.07 ▲3.71 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 87.89 ▼17.83 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.36 ▼2.95 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for FPX Payment for WPSmartPay (Billplz)
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲18 | 14.23 ▼0.30 | 1.94 ▼0.12 | 45.64 ▲3.15 |
Dashboard /wp-admin | 2,195 ▲18 | 5.62 ▲0.02 | 87.78 ▼13.85 | 39.40 ▼5.14 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▼0.00 | 39.62 ▲1.46 | 34.39 ▼0.93 |
Add New Post /wp-admin/post-new.php | 1,526 ▼3 | 23.34 ▲0.16 | 664.07 ▼18.16 | 53.11 ▼11.33 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.18 ▲0.04 | 97.65 ▼16.15 | 42.39 ▼7.47 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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 add_filter() in wp-content/plugins/billplz-for-wpsmartpay/includes/billplz.php:336
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues 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
Attributes that need to be fixed:
- Screenshots: No descriptions were found for these screenshots #2, #3 in billplz-for-wpsmartpay/assets to your readme.txt
billplz-for-wpsmartpay/billplz-for-wpsmartpay.php 85% from 13 tests
The principal PHP file in "FPX Payment for WPSmartPay (Billplz)" v. 1.0.4 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Domain Path: The domain path folder does not exist ("/languages")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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 plugin313 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 67 | 76 | 313 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 3 | |
▷ Static methods | 1 | 33.33% |
▷ Public methods | 1 | 33.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 66.67% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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/img/billplz.png | 4.02KB | 0.98KB | ▼ 75.76% |