Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼2.76ms] Passed 4 tests
Analyzing server-side resources used by Easy Digital Downloads - Additional Shortcodes
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 42.21 ▲0.74 |
Dashboard /wp-admin | 3.41 ▲0.11 | 48.14 ▲1.44 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 50.21 ▲2.80 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 82.96 ▼16.03 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 36.15 ▲3.41 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Easy Digital Downloads - Additional Shortcodes
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲71 | 14.74 ▲0.37 | 1.97 ▲0.04 | 43.85 ▼6.88 |
Dashboard /wp-admin | 2,212 ▲27 | 4.84 ▼0.98 | 98.28 ▼17.73 | 37.79 ▼7.59 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.05 ▼0.00 | 37.47 ▼0.64 | 37.59 ▲5.57 |
Add New Post /wp-admin/post-new.php | 1,522 ▼12 | 23.04 ▼0.28 | 645.19 ▼17.75 | 54.07 ▼6.09 |
Media Library /wp-admin/upload.php | 1,394 ▲6 | 4.17 ▼0.04 | 101.00 ▲3.96 | 42.19 ▼1.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: easy digital downloads, shopping cart, conditional logic, shortcodes, landing page
edd-additional-shortcodes/edd-additional-shortcodes.php 85% from 13 tests
"Easy Digital Downloads - Additional Shortcodes" version 1.4.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Requires PHP: Required version must be the same as the one declared in readme.txt ("5.6" instead of "5.3")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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 plugin1,155 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 337 | 414 | 1,025 |
JSON | 3 | 0 | 0 | 74 |
Markdown | 1 | 13 | 0 | 56 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 16.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 73 | |
▷ Static methods | 17 | 23.29% |
▷ Public methods | 61 | 83.56% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 16.44% |
Functions | 11 | |
▷ Named functions | 10 | 90.91% |
▷ Anonymous functions | 1 | 9.09% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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
PNG images were not found in this plugin