Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼11.73ms] Passed 4 tests
A check of server-side resources used by BadgeOS EDD Integration
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 31.95 ▼5.56 |
Dashboard /wp-admin | 3.31 ▲0.00 | 41.15 ▼2.89 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.45 ▲0.88 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 75.22 ▼36.41 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 31.81 ▼2.05 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
bosedd_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
bosedd_version |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for BadgeOS EDD Integration
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲36 | 14.35 ▲0.07 | 1.67 ▼0.15 | 39.89 ▲1.84 |
Dashboard /wp-admin | 2,198 ▲31 | 5.59 ▼0.07 | 94.72 ▼4.52 | 42.24 ▼0.07 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▲0.03 | 36.12 ▼3.90 | 35.31 ▼0.45 |
Add New Post /wp-admin/post-new.php | 1,531 ▲2 | 23.30 ▲0.24 | 677.55 ▲79.58 | 63.33 ▲11.09 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.22 ▼0.02 | 110.00 ▲12.78 | 47.71 ▲3.21 |
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 8 options in the database
- theysaidso_admin_options
- widget_recent-comments
- bosedd_version
- widget_theysaidso_widget
- widget_recent-posts
- bosedd_options
- can_compress_scripts
- db_upgraded
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
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/badgeos-edd-integration/includes/integration/rules-engine.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/badgeos-edd-integration/includes/integration/steps-ui.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
badgeos-edd-integration/badgeos-edd-integration.php 92% from 13 tests
This is the main PHP file of "BadgeOS EDD Integration" version 1.2, 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:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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
Good job! No executable or dangerous file extensions detected2,027 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 41 | 48 | 1,287 |
PHP | 7 | 251 | 389 | 682 |
Markdown | 2 | 18 | 0 | 32 |
JavaScript | 3 | 10 | 7 | 26 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 17.50 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 3.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 5 | 31.25% |
▷ Public methods | 13 | 81.25% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 18.75% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 7 | 87.50% |
▷ Class constants | 1 | 12.50% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/wooninjas.png | 6.78KB | 4.52KB | ▼ 33.32% |