Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/buddymenu-buddylinks/buddymenu.php+1798
Function create_function() is deprecated
Server metrics [RAM: ▼1.97MB] [CPU: ▼63.11ms] Passed 4 tests
An overview of server-side resources used by BuddyMenu BuddyLinks
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.70 ▼40.03 |
Dashboard /wp-admin | 2.05 ▼1.30 | 4.99 ▼61.99 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 7.11 ▼48.80 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.08 ▼101.61 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 7.39 ▼29.93 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_buddymenu |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for BuddyMenu BuddyLinks
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲45 | 14.69 ▲0.32 | 1.70 ▼0.03 | 37.12 ▼8.46 |
Dashboard /wp-admin | 2,195 ▲18 | 5.62 ▼0.05 | 92.96 ▼1.81 | 39.86 ▼4.96 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.02 ▼0.00 | 39.36 ▲0.45 | 33.70 ▼6.18 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.58 ▲0.54 | 682.34 ▼12.22 | 56.10 ▼2.76 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.14 ▼0.13 | 109.36 ▲12.53 | 45.23 ▼0.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/buddymenu-buddylinks/buddymenu.php+1798
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_buddymenu
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
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/buddymenu-buddylinks/buddymenu.php:38
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (screenshot-1), #2 (screenshot-2), #3 (screenshot-3), #4 (screenshot-4)
buddymenu-buddylinks/buddymenu.php 85% from 13 tests
The principal PHP file in "BuddyMenu BuddyLinks" v. 2.2.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("buddymenu-buddylinks.php" instead of "buddymenu.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 364 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected2,296 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 291 | 82 | 2,254 |
CSS | 1 | 23 | 0 | 42 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 40.00 |
▷ Minimum class complexity | 40.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 10.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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
22 PNG files occupy 0.31MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/edit-profile.png | 1.45KB | 1.37KB | ▼ 5.20% |
screenshot-4.png | 93.83KB | 28.10KB | ▼ 70.06% |
img/members.png | 1.45KB | 1.36KB | ▼ 6.59% |
img/settings.png | 1.81KB | 1.42KB | ▼ 21.49% |
img/profile.png | 1.58KB | 1.40KB | ▼ 11.30% |