Benchmarks
Plugin footprint Passed 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.08MB] [CPU: ▼136.61ms] Passed 4 tests
Analyzing server-side resources used by SagePay Direct Gateway for Easy Digital Downloads
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.19 | 35.41 ▲14.53 |
Dashboard /wp-admin | 3.14 ▲0.08 | 51.81 ▲8.24 |
Posts /wp-admin/edit.php | 3.19 ▲0.08 | 43.30 ▲1.84 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.06 | 90.09 ▼556.33 |
Media Library /wp-admin/upload.php | 3.08 ▲0.08 | 33.41 ▼0.17 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for SagePay Direct Gateway for Easy Digital Downloads
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲97 | 15.85 ▲0.03 | 8.62 ▼0.97 | 56.43 ▲11.98 |
Dashboard /wp-admin | 2,992 ▲61 | 5.95 ▼0.20 | 138.61 ▼18.13 | 110.11 ▼11.01 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▼0.00 | 69.41 ▲0.65 | 82.33 ▼11.21 |
Add New Post /wp-admin/post-new.php | 1,672 ▲91 | 18.84 ▲4.55 | 374.45 ▼6.78 | 101.80 ▼7.89 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.02 ▼0.00 | 143.19 ▼4.68 | 115.75 ▼0.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/sagepay-direct-gateway-for-easy-digital-downloads/edd-sagepay-direct.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: sagepay, ecommerce, payment gateway, easy digital downloads, wordpress...
sagepay-direct-gateway-for-easy-digital-downloads/edd-sagepay-direct.php 77% from 13 tests
The main file in "SagePay Direct Gateway for Easy Digital Downloads" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Domain Path: The domain path is invalid: folder "/lang/" does not exist
- Main file name: Name the main plugin file the same as the plugin slug ("sagepay-direct-gateway-for-easy-digital-downloads.php" instead of "edd-sagepay-direct.php")
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin368 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 88 | 27 | 368 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected