Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼0.12ms] Passed 4 tests
Server-side resources used by Gift Buddypress Addons
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 39.40 ▼2.43 |
Dashboard /wp-admin | 3.36 ▲0.06 | 51.31 ▼1.48 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 51.41 ▲6.48 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 82.86 ▼1.00 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 40.03 ▲4.41 |
Add New Gift /wp-admin/post-new.php?post_type=gift-post | 3.41 | 50.11 |
Manage Gifts /wp-admin/edit.php?post_type=gift-post | 3.33 | 40.36 |
Gift Categories /wp-admin/edit-tags.php?taxonomy=gifts&post_type=gift-post | 3.29 | 39.82 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 9 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_bp_gift_addons_meta |
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
gifts_children |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Gift Buddypress Addons
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,922 ▲151 | 13.96 ▼0.33 | 5.61 ▲3.74 | 38.72 ▼1.74 |
Dashboard /wp-admin | 2,237 ▲49 | 5.86 ▲0.97 | 108.87 ▲4.68 | 41.29 ▲4.30 |
Posts /wp-admin/edit.php | 2,117 ▲49 | 2.03 ▼0.02 | 39.71 ▲4.05 | 35.50 ▲3.09 |
Add New Post /wp-admin/post-new.php | 1,559 ▲45 | 23.25 ▲5.65 | 637.79 ▼35.52 | 50.73 ▲4.30 |
Media Library /wp-admin/upload.php | 1,419 ▲31 | 4.26 ▲0.06 | 93.99 ▼11.85 | 41.10 ▼4.28 |
Add New Gift /wp-admin/post-new.php?post_type=gift-post | 2,352 | 7.73 | 187.78 | 69.60 |
Manage Gifts /wp-admin/edit.php?post_type=gift-post | 1,101 | 1.95 | 31.88 | 29.90 |
Gift Categories /wp-admin/edit-tags.php?taxonomy=gifts&post_type=gift-post | 1,501 | 2.15 | 27.02 | 37.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% 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 cannot be uninstalled
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'Gift_Buddypress_Template' does not have a method 'deactivate'
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_bp_gift_addons_meta
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- gifts_children
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/gift-buddypress-addons/buddypress-gift-addon.php:452
- > PHP Fatal error
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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
Attributes that require attention:
- Tags: You are using too many tags: 14 tag instead of maximum 10
gift-buddypress-addons/buddypress-gift-addon.php 92% from 13 tests
The main PHP file in "Gift Buddypress Addons" ver. 2.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("gift-buddypress-addons.php" instead of "buddypress-gift-addon.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected1,025 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 57 | 37 | 472 |
CSS | 2 | 63 | 28 | 335 |
JavaScript | 2 | 23 | 15 | 218 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 22 | |
▷ Static methods | 1 | 4.55% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/150x150.png | 2.04KB | 0.94KB | ▼ 54.03% |