Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼8.23ms] Passed 4 tests
This is a short check of server-side resources used by myCred WP Simple Pay - Stripe Payment Addon
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 39.01 ▼2.79 |
Dashboard /wp-admin | 3.35 ▲0.00 | 48.95 ▼15.97 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 51.24 ▲0.38 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 84.53 ▼14.55 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.83 ▲0.53 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
myCred WP Simple Pay - Stripe Payment Addon: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲50 | 14.24 ▼0.06 | 1.84 ▲0.11 | 43.68 ▲2.51 |
Dashboard /wp-admin | 2,199 ▲22 | 5.51 ▼0.16 | 86.68 ▼11.11 | 38.98 ▼4.62 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.00 ▼0.01 | 37.80 ▲2.18 | 33.96 ▼4.78 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 22.99 ▼0.16 | 699.17 ▲26.40 | 52.60 ▼11.07 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.24 ▲0.04 | 104.13 ▲3.97 | 41.80 ▼2.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
- 3× PHP files trigger server errors when accessed directly:
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/mycred-wp-simple-pay-addon/mycred-simple-pay-integration.php on line 19
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/mycred-wp-simple-pay-addon/mycred-simple-pay-integration.php on line 19
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/mycred-wp-simple-pay-addon/mycred-simple-pay-integration.php on line 19
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% 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 to be fixed:
- Screenshots: No descriptions were found for these screenshots #1, #10, #11, #12, #13, #14, #15, #16, #17, #2, #3, #4, #5, #6, #7, #8, #9 in mycred-wp-simple-pay-addon/assets to your readme.txt
mycred-wp-simple-pay-addon/mycred-simple-pay-integration.php 69% from 13 tests
Analyzing the main PHP file in "myCred WP Simple Pay - Stripe Payment Addon" version 1.0.3
It is important to fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Main file name: The principal plugin file should be the same as the plugin slug ("mycred-wp-simple-pay-addon.php" instead of "mycred-simple-pay-integration.php")
- Requires at least: Periods and digits should be used for the required version number (ex. "7.0" instead of "WP 4.8")
- Domain Path: The domain path points to a folder that does not exist ("/lang")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin300 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 50 | 64 | 281 |
JavaScript | 1 | 0 | 0 | 19 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 3.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.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
PNG images were not found in this plugin