Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5737
Function get_plugin_data was called with an argument that is deprecated since version 3.0.0! The Site Wide Only: true plugin header is deprecated. Use Network: true instead.
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.13ms] Passed 4 tests
Server-side resources used by Buddypress Gifts latest 2014
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 41.80 ▼5.06 |
Dashboard /wp-admin | 3.31 ▲0.00 | 50.69 ▼2.95 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.08 ▼3.17 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.19 ▼5.34 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.92 ▼1.49 |
Server storage [IO: ▲0.65MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 82 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_bp_gifts |
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Buddypress Gifts latest 2014
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.27 ▼0.41 | 1.79 ▼0.26 | 43.07 ▼5.73 |
Dashboard /wp-admin | 2,195 ▲15 | 5.65 ▼0.05 | 83.64 ▼14.74 | 38.52 ▼7.37 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▼0.02 | 37.69 ▼2.27 | 37.87 ▲2.07 |
Add New Post /wp-admin/post-new.php | 1,545 ▲5 | 23.29 ▲4.77 | 667.66 ▼4.86 | 57.06 ▲4.26 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.21 ▲0.00 | 95.86 ▼6.78 | 47.06 ▼1.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5737
Function get_plugin_data was called with an argument that is deprecated since version 3.0.0! The Site Wide Only: true plugin header is deprecated. Use Network: true instead.
- Zombie tables detected upon uninstall: 1 table
- wp_bp_gifts
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 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 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
Almost there! Just fix the following items
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-gifts-latest-2014/includes/bp-gifts-cssjs.php:54
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/buddypress-gifts-latest-2014/includes/bp-gifts-filters.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-gifts-latest-2014/loader.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-gifts-latest-2014/includes/bp-gifts-notifications.php:109
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/buddypress-gifts-latest-2014/includes/templates/gifts/screen_old.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-gifts-latest-2014/includes/bp-gifts-ajax.php:52
- > PHP Fatal error
Uncaught Error: Call to undefined function load_textdomain() in wp-content/plugins/buddypress-gifts-latest-2014/includes/bp-gifts-core.php:45
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/buddypress-gifts-latest-2014/includes/templates/gifts/screen.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Requires at least: Invalid plugin version format
- Tested up to: Invalid plugin version format
buddypress-gifts-latest-2014/loader.php 85% from 13 tests
"Buddypress Gifts latest 2014" version 1.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("buddypress-gifts-latest-2014.php" instead of "loader.php")
- Requires at least: Required version number should use periods and dots only (ex. "7.0" instead of "WP 3.3.1, BuddyPress 1.5.1")
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
Good job! No executable or dangerous file extensions detected1,645 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 1,718 | 686 | 1,238 |
PO File | 1 | 52 | 79 | 167 |
CSS | 2 | 12 | 40 | 147 |
JavaScript | 6 | 18 | 91 | 84 |
XML | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 6.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 38 | |
▷ Named functions | 38 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
49 PNG files occupy 0.44MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/hamberger.png | 8.30KB | 2.78KB | ▼ 66.48% |
includes/images/rat.png | 8.89KB | 3.16KB | ▼ 64.46% |
includes/images/beer.png | 7.43KB | 2.53KB | ▼ 65.92% |
screenshot-1.png | 36.05KB | 11.16KB | ▼ 69.03% |
includes/images/penguin.png | 6.49KB | 3.26KB | ▼ 49.78% |