Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.44ms] Passed 4 tests
Analyzing server-side resources used by PayM8 Gateway
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 42.25 ▲0.49 |
Dashboard /wp-admin | 3.32 ▼0.02 | 49.83 ▼16.26 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 50.78 ▼3.38 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 100.52 ▼2.06 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 34.72 ▼0.06 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for PayM8 Gateway
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.27 ▲0.00 | 2.20 ▲0.33 | 46.01 ▲2.55 |
Dashboard /wp-admin | 2,195 ▲28 | 5.65 ▼0.04 | 97.73 ▼9.54 | 40.33 ▼3.47 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.02 ▲0.05 | 39.28 ▲1.73 | 38.10 ▼2.72 |
Add New Post /wp-admin/post-new.php | 1,535 ▼6 | 18.39 ▼4.71 | 634.77 ▼12.92 | 72.29 ▲19.36 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.21 ▲0.01 | 95.31 ▼7.18 | 43.73 ▼0.41 |
Uninstaller [IO: ▲0.09MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the followingZombie WordPress options were found after uninstall: 7 options
- Uninstall procedure had uncaught errors
- > Error in wp-content/plugins/paym8-gateway/wc-gateway-paym8-plugin.php+136
Uncaught Error: Call to undefined function wc_get_logger() in wp-content/plugins/paym8-gateway/wc-gateway-paym8-plugin.php:136
Stack trace:
#0 wp-content/plugins/paym8-gateway/wc-gateway-paym8-plugin.php(103): logger()
#1 wp-includes/class-wp-hook.php(310): paym8_uninstall_gateway()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/includes/plugin.php(1269): do_action()
#5 wp-admin/includes/plugin.php(960): uninstall_plugin() - The plugin did not uninstall correctly, leaving 12 files (0.09MB) in the plugin directory
- (new file) assets/images/payM8LoginLettering-withoutAxis.png
- (new file) assets/images/paym8Logo.png
- (new file) assets/images/payM8LoginLettering.png
- (new file) README.md
- (new file) changelog.txt
- (new file) assets/images/paym8LogoRounded.png
- (new file) includes/css/loading.gif
- (new file) includes/class-wc-gateway-paym8.php
- (new file) assets/images/exclamationMark2.png
- (new file) assets/images/exclamationMark.png
- ...
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- recovery_mode_email_last_sent
- db_upgraded
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)
The smoke test was a success, however most plugin functionality was not tested
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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/paym8-gateway/includes/class-wc-gateway-paym8.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Requires php: The plugin version is formatted incorrectly
paym8-gateway/wc-gateway-paym8-plugin.php 92% from 13 tests
The entry point to "PayM8 Gateway" version 1.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("paym8-gateway.php" instead of "wc-gateway-paym8-plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin421 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 88 | 239 | 347 |
CSS | 1 | 6 | 6 | 47 |
Markdown | 1 | 13 | 0 | 27 |
PHP code Passed 2 tests
A brief analysis 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.24 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 33.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 3.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 84.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 15.38% |
Functions | 8 | |
▷ Named functions | 8 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/paym8Logo.png | 14.54KB | 8.08KB | ▼ 44.45% |
assets/images/payM8LoginLettering-withoutAxis.png | 10.14KB | 4.14KB | ▼ 59.19% |
assets/images/paym8LogoRounded.png | 16.47KB | 8.20KB | ▼ 50.21% |
assets/images/exclamationMark2.png | 0.38KB | 0.49KB | 0.00% |
assets/images/payM8LoginLettering.png | 12.12KB | 4.71KB | ▼ 61.12% |