Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼9.79ms] Passed 4 tests
A check of server-side resources used by Integrate Fonepay in WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.81 ▼1.45 |
Dashboard /wp-admin | 3.31 ▲0.01 | 50.72 ▼0.40 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.67 ▼4.80 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.12 ▼32.51 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.94 ▲0.49 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Integrate Fonepay in WooCommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,854 ▲108 | 13.58 ▼0.80 | 4.72 ▲3.04 | 43.02 ▲1.86 |
Dashboard /wp-admin | 2,235 ▲32 | 4.86 ▼1.00 | 110.86 ▲6.75 | 40.57 ▼3.02 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 2.04 ▲0.04 | 42.16 ▲0.33 | 35.36 ▼1.59 |
Add New Post /wp-admin/post-new.php | 1,554 ▲9 | 23.37 ▲0.16 | 673.93 ▲17.28 | 60.47 ▼4.51 |
Media Library /wp-admin/upload.php | 1,414 ▲14 | 4.23 ▼0.01 | 100.89 ▼17.98 | 44.38 ▼6.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
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
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
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: payment gateway, fonepay, woocommerce
integrate-fonepay-in-woocommerce/woocommerce-fonepay.php 77% from 13 tests
The principal PHP file in "Integrate Fonepay in WooCommerce" v. 1.1.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "4.3.0")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("integrate-fonepay-in-woocommerce.php" instead of "woocommerce-fonepay.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
Success! There were no dangerous files found in this plugin490 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 115 | 302 | 460 |
JavaScript | 2 | 5 | 6 | 30 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 9.40 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 1 | 20.00% |
▷ Concrete classes | 4 | 80.00% |
▷ Final classes | 1 | 25.00% |
Methods | 32 | |
▷ Static methods | 2 | 6.25% |
▷ Public methods | 20 | 62.50% |
▷ Protected methods | 10 | 31.25% |
▷ Private methods | 2 | 6.25% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/fonepay.png | 2.97KB | 2.06KB | ▼ 30.75% |
assets/images/fonepay-big.png | 11.67KB | 6.81KB | ▼ 41.62% |