Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▲0.25ms] Passed 4 tests
This is a short check of server-side resources used by Buoy
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.21 | 38.04 ▼5.62 |
Dashboard /wp-admin | 3.55 ▲0.25 | 52.91 ▼3.88 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 55.39 ▲3.45 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.31 | 99.60 ▲7.07 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 44.61 ▲10.10 |
Team membership /wp-admin/edit.php?post_type=buoy_team&page=buoy_team_membership | 3.45 | 39.79 |
Buoy /wp-admin/options-general.php?page=buoy_settings | 3.53 | 46.92 |
Respond to Alert /wp-admin/admin.php?page=buoy_review_alert | 3.45 | 42.71 |
All Teams /wp-admin/edit.php?post_type=buoy_team | 3.52 | 48.12 |
Incident Chat /wp-admin/admin.php?page=buoy_chat | 3.42 | 37.93 |
Activate Alert /wp-admin/index.php?page=buoy_activate_alert | 3.48 | 42.31 |
Add New /wp-admin/post-new.php?post_type=buoy_team | 3.55 | 63.09 |
Safety information /wp-admin/edit.php?post_type=buoy_team&page=buoy_safety_info | 3.44 | 51.32 |
Server storage [IO: ▲3.37MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 656 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
buoy_settings |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Buoy
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,951 ▲205 | 13.20 ▼1.55 | 1.58 ▼0.33 | 41.09 ▼3.37 |
Dashboard /wp-admin | 2,351 ▲160 | 4.91 ▼0.95 | 114.33 ▲6.60 | 43.34 ▲1.69 |
Posts /wp-admin/edit.php | 2,162 ▲73 | 2.00 ▼0.02 | 36.91 ▼6.03 | 29.01 ▼5.80 |
Add New Post /wp-admin/post-new.php | 1,587 ▲68 | 23.20 ▼0.11 | 646.07 ▼6.80 | 57.10 ▼3.86 |
Media Library /wp-admin/upload.php | 1,461 ▲73 | 4.19 ▼0.00 | 100.22 ▼6.18 | 45.20 ▲0.12 |
Team membership /wp-admin/edit.php?post_type=buoy_team&page=buoy_team_membership | 959 | 1.68 | 29.18 | 31.50 |
Buoy /wp-admin/options-general.php?page=buoy_settings | 1,873 | 7.02 | 137.10 | 76.08 |
Respond to Alert /wp-admin/admin.php?page=buoy_review_alert | 890 | 3.00 | 48.86 | 30.56 |
All Teams /wp-admin/edit.php?post_type=buoy_team | 1,208 | 1.98 | 30.41 | 31.34 |
Incident Chat /wp-admin/admin.php?page=buoy_chat | 847 | 2.96 | 51.59 | 20.27 |
Activate Alert /wp-admin/index.php?page=buoy_activate_alert | 894 | 2.96 | 38.48 | 24.27 |
Add New /wp-admin/post-new.php?post_type=buoy_team | 1,728 | 2.61 | 49.96 | 53.14 |
Safety information /wp-admin/edit.php?post_type=buoy_team&page=buoy_safety_info | 998 | 2.06 | 21.95 | 27.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/buoy/uninstall.php+35
Undefined property: WP_Buoy_User_Settings::$default
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=buoy_chat
- > Notice in wp-content/plugins/buoy/includes/class-buoy-alert.php+881
Undefined index: buoy_hash
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
Please take a closer look at the following
- 222× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Horde_Translation' not found in wp-content/plugins/buoy/vendor/pear-pear.horde.org/Horde_Translation/Horde/Translation/Autodetect.php:26
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/buoy/vendor/composer/installers/src/Composer/Installers/SilverStripeInstaller.php:6
- > PHP Fatal error
Uncaught Error: Class 'Horde_Stream' not found in wp-content/plugins/buoy/vendor/pear-pear.horde.org/Horde_Stream/Horde/Stream/Temp.php:23
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\Test\\TestCase' not found in wp-content/plugins/buoy/vendor/composer/installers/tests/Composer/Installers/Test/CraftInstallerTest.php:12
- > PHP Fatal error
Uncaught Error: Class 'Horde_Imap_Client_Data_Format' not found in wp-content/plugins/buoy/vendor/pear-pear.horde.org/Horde_Imap_Client/Horde/Imap/Client/Data/Format/Atom.php:23
- > PHP Fatal error
Uncaught Error: Class 'Horde_Db_Migration_Base' not found in wp-content/plugins/buoy/vendor/pear-pear.horde.org/Horde_Imap_Client/data/migration/1_horde_imap_client_base_tables.php:24
- > PHP Fatal error
Uncaught Error: Class 'Horde_Imap_Client_Socket_Connection_Base' not found in wp-content/plugins/buoy/vendor/pear-pear.horde.org/Horde_Imap_Client/Horde/Imap/Client/Socket/Connection/Socket.php:28
- > PHP Fatal error
Uncaught Error: Class 'Horde_Imap_Client_Data_Format_List' not found in wp-content/plugins/buoy/vendor/pear-pear.horde.org/Horde_Imap_Client/Horde/Imap/Client/Interaction/Client.php:25
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/buoy/vendor/composer/installers/src/Composer/Installers/WolfCMSInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Horde_Exception_Wrapped' not found in wp-content/plugins/buoy/vendor/pear-pear.horde.org/Horde_Mime/Horde/Mime/Exception.php:23
- > 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 93% from 29 tests
readme.txt Passed 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
3 plugin tags: activism, emergency response, community
buoy/buoy.php 85% from 13 tests
The principal PHP file in "Buoy" v. 0.3.3 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 418 characters long)
- Requires at least: Required version number should use periods and dots only (ex. "7.0" instead of "([0-9.]+)$/', $line, $m);")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin53,154 lines of code in 521 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 357 | 6,621 | 22,314 | 34,118 |
JavaScript | 12 | 2,323 | 1,010 | 7,253 |
PO File | 106 | 2,333 | 3,099 | 7,118 |
Markdown | 17 | 382 | 0 | 1,270 |
CSS | 9 | 136 | 50 | 1,168 |
SVG | 3 | 1 | 2 | 1,061 |
JSON | 9 | 0 | 0 | 940 |
Bourne Shell | 1 | 21 | 6 | 85 |
XML | 3 | 2 | 0 | 54 |
YAML | 2 | 13 | 0 | 49 |
HTML | 1 | 0 | 0 | 30 |
Expect | 1 | 0 | 12 | 8 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 16.37 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 740.00 |
Average method complexity | 3.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 78.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 7 | |
Traits | 0 | |
Classes | 324 | |
▷ Abstract classes | 12 | 3.70% |
▷ Concrete classes | 312 | 96.30% |
▷ Final classes | 0 | 0.00% |
Methods | 2,031 | |
▷ Static methods | 261 | 12.85% |
▷ Public methods | 1,544 | 76.02% |
▷ Protected methods | 448 | 22.06% |
▷ Private methods | 39 | 1.92% |
Functions | 26 | |
▷ Named functions | 4 | 15.38% |
▷ Anonymous functions | 22 | 84.62% |
Constants | 266 | |
▷ Global constants | 1 | 0.38% |
▷ Class constants | 265 | 99.62% |
▷ Public constants | 265 | 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
7 PNG files occupy 0.06MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/leaflet/dist/images/layers.png | 1.47KB | 1.05KB | ▼ 28.36% |
vendor/leaflet/dist/images/marker-shadow.png | 0.78KB | 1.16KB | 0.00% |
vendor/leaflet/dist/images/marker-icon-2x.png | 3.94KB | 2.53KB | ▼ 35.71% |
img/apple-touch-icon-152x152.png | 20.84KB | 12.29KB | ▼ 41.01% |
vendor/leaflet/dist/images/marker-icon.png | 1.71KB | 1.56KB | ▼ 8.59% |