Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼288.60ms] Passed 4 tests
Analyzing server-side resources used by GamiPress - WP Simple Pay integration
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.05 | 55.28 ▲5.54 |
Dashboard /wp-admin | 3.43 ▲0.02 | 33.89 ▼0.04 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 39.20 ▲1.78 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.06 | 98.36 ▼1,153.18 |
Media Library /wp-admin/upload.php | 3.31 ▲0.01 | 25.30 ▼2.96 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for GamiPress - WP Simple Pay integration
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,812 ▲58 | 16.00 ▲0.30 | 6.26 ▼0.67 | 2.81 ▲0.38 |
Dashboard /wp-admin | 2,920 ▲62 | 6.12 ▼0.09 | 116.47 ▼18.55 | 154.91 ▼5.50 |
Posts /wp-admin/edit.php | 2,719 ▲28 | 3.25 ▲0.01 | 68.65 ▲4.00 | 142.08 ▼2.84 |
Add New Post /wp-admin/post-new.php | 1,767 ▲106 | 21.53 ▲4.65 | 445.74 ▲19.86 | 159.66 ▲3.89 |
Media Library /wp-admin/upload.php | 1,726 ▲28 | 5.54 ▲0.09 | 148.41 ▲12.95 | 188.44 ▼1.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gamipress-wp-simple-pay-integration/gamipress-wp-simple-pay.php:196
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
gamipress-wp-simple-pay-integration/gamipress-wp-simple-pay.php 92% from 13 tests
This is the main PHP file of "GamiPress - WP Simple Pay integration" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gamipress-wp-simple-pay-integration.php" instead of "gamipress-wp-simple-pay.php")
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
Good job! No executable or dangerous file extensions detected194 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 90 | 204 | 194 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 7 | |
▷ Static methods | 1 | 14.29% |
▷ Public methods | 3 | 42.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 57.14% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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