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.19MB] [CPU: ▼12.91ms] Passed 4 tests
An overview of server-side resources used by Pesepay
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 45.97 ▲2.84 |
Dashboard /wp-admin | 3.54 ▲0.19 | 53.03 ▼17.73 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 53.42 ▼2.07 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 89.19 ▼34.66 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 42.84 ▲6.10 |
Server storage [IO: ▲0.19MB] [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: 67 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Pesepay: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲18 | 14.42 ▲0.45 | 1.87 ▲0.04 | 43.47 ▲0.82 |
Dashboard /wp-admin | 2,195 ▲18 | 5.63 ▼0.05 | 90.07 ▼0.66 | 39.34 ▲0.24 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▲0.05 | 33.66 ▼6.16 | 41.44 ▲6.56 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.40 ▲0.19 | 692.99 ▲16.31 | 57.50 ▼1.42 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.22 ▼0.02 | 100.95 ▼1.78 | 43.86 ▲1.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/pesepay/public/partials/pesepay-public-display.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/pesepay/admin/partials/pesepay-admin-display.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: gateway, payment, woocommerce, pesepay, zimbabwe
pesepay/pesepay.php Passed 13 tests
The entry point to "Pesepay" version 1.2.4 is a PHP file that has certain tags in its header comment area
52 characters long description:
Robust & Secure online payments solution for Africa.
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
Everything looks great! No dangerous files found in this plugin2,924 lines of code in 54 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 41 | 494 | 1,328 | 1,851 |
JSON | 7 | 0 | 0 | 984 |
Markdown | 5 | 30 | 0 | 72 |
SVG | 1 | 2 | 0 | 17 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 10.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 3.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 23 | 100.00% |
▷ Final classes | 7 | 30.43% |
Methods | 111 | |
▷ Static methods | 55 | 49.55% |
▷ Public methods | 99 | 89.19% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 10.81% |
Functions | 30 | |
▷ Named functions | 29 | 96.67% |
▷ Anonymous functions | 1 | 3.33% |
Constants | 18 | |
▷ Global constants | 10 | 55.56% |
▷ Class constants | 8 | 44.44% |
▷ Public constants | 8 | 100.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.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/badge.png | 21.17KB | 6.37KB | ▼ 69.91% |