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.09MB] [CPU: ▼6.82ms] Passed 4 tests
Analyzing server-side resources used by Campay Woocommerce Payment Gateway
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 42.00 ▼0.44 |
Dashboard /wp-admin | 3.39 ▲0.09 | 46.55 ▲2.96 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 43.80 ▼7.37 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 80.66 ▼18.45 |
Media Library /wp-admin/upload.php | 3.31 ▲0.09 | 32.95 ▼1.01 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Campay Woocommerce Payment Gateway: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.70 ▲0.43 | 1.78 ▲0.05 | 43.87 ▼0.41 |
Dashboard /wp-admin | 2,195 ▲15 | 5.61 ▼0.02 | 86.07 ▼2.92 | 40.34 ▼3.55 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.14 ▲0.14 | 38.73 ▼7.26 | 33.15 ▼5.68 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.17 ▼0.14 | 674.92 ▲59.85 | 60.06 ▲7.43 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.22 ▲0.04 | 101.28 ▼4.21 | 44.18 ▼0.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 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)
Everything seems fine, however this is by no means 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 take a closer look at the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/campay-api/campay-api.php on line 18
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/campay-api/campay-api.php:19
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/campay-api/campay-api.php on line 18
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/campay-api/campay-api.php on line 18
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% 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 your attention:
- Contributors: Plugin contributors field is missing
- Screenshots: These screenshots lack descriptions #1, #2 in campay-api/assets to your readme.txt
campay-api/campay-api.php Passed 13 tests
The main PHP script in "Campay Woocommerce Payment Gateway" version 1.1.6 is automatically included on every request by WordPress
54 characters long description:
Accept Mobile Money Payment using CamPay API Services.
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
Everything looks great! No dangerous files found in this plugin942 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 146 | 85 | 542 |
PO File | 3 | 80 | 80 | 225 |
CSS | 1 | 10 | 6 | 136 |
JavaScript | 1 | 22 | 13 | 39 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 59.00 |
▷ Minimum class complexity | 59.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 4.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.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 | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/momo-om.png | 2.79KB | 1.74KB | ▼ 37.87% |
assets/img/logo-campay-momo.png | 6.27KB | 2.68KB | ▼ 57.30% |