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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼0.71ms] Passed 4 tests
Server-side resources used by BuddyPress Shortcodes
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 43.59 ▼0.38 |
Dashboard /wp-admin | 3.32 ▲0.01 | 47.08 ▼0.87 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.20 ▲2.82 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 84.64 ▼4.42 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.79 ▲4.91 |
BuddyPress Shortcodes /wp-admin/options-general.php?page=buddypress-shortcodes/inc/settings.php | 3.20 | 30.88 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by BuddyPress Shortcodes
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.61 ▼0.76 | 1.75 ▼0.40 | 41.88 ▼6.26 |
Dashboard /wp-admin | 2,210 ▲19 | 4.86 ▼1.04 | 111.10 ▲5.56 | 44.14 ▼1.57 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 1.98 ▼0.03 | 39.82 ▲2.90 | 36.26 ▼0.42 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 23.36 ▲5.17 | 610.97 ▼6.30 | 53.18 ▲0.42 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.20 ▲0.01 | 95.20 ▼3.88 | 40.41 ▼2.70 |
BuddyPress Shortcodes /wp-admin/options-general.php?page=buddypress-shortcodes/inc/settings.php | 807 | 2.06 | 26.99 | 27.72 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/buddypress-shortcodes/inc/form.php
- 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/buddypress-shortcodes/inc/shortcodes/members-carousel.php:84
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/buddypress-shortcodes/inc/shortcodes/activity.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/buddypress-shortcodes/inc/shortcodes/members-grid.php:60
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/buddypress-shortcodes/inc/shortcodes/activity-carousel.php:70
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/buddypress-shortcodes/buddypress-shortcodes.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/buddypress-shortcodes/inc/shortcodes/groups-grid.php:52
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/buddypress-shortcodes/inc/shortcodes.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/buddypress-shortcodes/inc/shortcodes/groups-carousel.php:76
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-shortcodes/inc/settings.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (BuddyPress Shortcodes Button), #2 (Modal Window to build Shortcodes)
buddypress-shortcodes/buddypress-shortcodes.php Passed 13 tests
Analyzing the main PHP file in "BuddyPress Shortcodes" version 1.2
76 characters long description:
Buddypress Shortcodes plugin adds functionality of Shortcodes to Buddypress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin804 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 62 | 62 | 674 |
JavaScript | 3 | 0 | 29 | 103 |
CSS | 3 | 0 | 19 | 27 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.50 |
▷ 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 | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/images/icon.png | 14.53KB | 0.69KB | ▼ 95.25% |
screenshot-2.png | 33.03KB | 12.38KB | ▼ 62.52% |
screenshot-1.png | 20.40KB | 8.43KB | ▼ 58.68% |