Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼10.80ms] Passed 4 tests
A check of server-side resources used by Appture Pay
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 41.05 ▼13.29 |
Dashboard /wp-admin | 3.40 ▲0.09 | 48.67 ▼9.03 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 52.23 ▼8.99 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 92.24 ▼11.89 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 38.39 ▲3.11 |
API Client /wp-admin/admin.php?page=appturelab-appture-pay | 3.26 | 31.72 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Appture Pay
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲101 | 14.47 ▼0.14 | 1.76 ▼0.09 | 40.92 ▲1.71 |
Dashboard /wp-admin | 2,231 ▲43 | 5.86 ▲0.94 | 101.05 ▼15.74 | 64.29 ▲22.67 |
Posts /wp-admin/edit.php | 2,114 ▲25 | 2.02 ▼0.04 | 40.36 ▼2.37 | 35.19 ▼0.02 |
Add New Post /wp-admin/post-new.php | 1,545 ▲11 | 23.43 ▲0.36 | 681.69 ▲59.37 | 58.67 ▲7.06 |
Media Library /wp-admin/upload.php | 1,401 ▲13 | 4.16 ▼0.04 | 100.86 ▼7.06 | 73.56 ▲29.66 |
API Client /wp-admin/admin.php?page=appturelab-appture-pay | 882 | 2.03 | 22.95 | 27.66 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=appturelab-appture-pay
- > Notice in wp-content/plugins/appture-pay/appturelab-appture-pay.php+93
Trying to access array offset on value of type bool
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/appture-pay/MeprAppturePayGateway.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/appture-pay/class-wc-shipping-appture-pay.php:7
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/appture-pay/class-wc-gateway-appture-pay.php:5
- > PHP Fatal error
Uncaught Error: Class 'ApptureLab\\ApptureWebRequest' not found in wp-content/plugins/appture-pay/includes/AppturePayAPI.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Contributors: Plugin contributors not specified
appture-pay/appturelab-appture-pay.php 92% from 13 tests
The primary PHP file in "Appture Pay" version 1.6.3 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("appture-pay.php" instead of "appturelab-appture-pay.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
Good job! No executable or dangerous file extensions detected2,383 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 1,032 | 619 | 2,383 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 63.20 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 122.00 |
Average method complexity | 3.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 125 | |
▷ Static methods | 5 | 4.00% |
▷ Public methods | 114 | 91.20% |
▷ Protected methods | 11 | 8.80% |
▷ Private methods | 0 | 0.00% |
Functions | 29 | |
▷ Named functions | 29 | 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
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 |
img/logo_wordpress_20.png | 0.68KB | 0.55KB | ▼ 18.06% |