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: ▼7.56ms] Passed 4 tests
A check of server-side resources used by Wbcom Designs – Check-ins for BuddyPress Activity
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.06 ▼1.21 |
Dashboard /wp-admin | 3.31 ▼0.04 | 45.94 ▼15.67 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 42.90 ▼6.81 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.68 ▼6.52 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.43 ▼1.22 |
Server storage [IO: ▲3.25MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 119 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Wbcom Designs – Check-ins for BuddyPress Activity
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.27 ▼0.08 | 1.72 ▼0.17 | 38.08 ▼5.62 |
Dashboard /wp-admin | 2,189 ▲12 | 5.53 ▼0.05 | 86.47 ▼6.29 | 37.07 ▼4.85 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▲0.02 | 38.44 ▼1.47 | 31.06 ▼8.51 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.44 ▲0.53 | 623.71 ▼6.89 | 56.02 ▲2.75 |
Media Library /wp-admin/upload.php | 1,391 ▼9 | 4.22 ▼0.07 | 100.34 ▼5.47 | 41.31 ▼4.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/bp-check-in/admin/wbcom/templates/wbcom-support-page.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/bp-check-in/admin/class-bp-checkins-admin-feedback.php:318
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/bp-check-in/admin/wbcom/templates/wbcom-license-page.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/bp-check-in/admin/wbcom/templates/wbcom-plugins-page.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 86% 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
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (screenshot-1 -), #2 (screenshot-2 -), #3 (screenshot-3 -)
bp-check-in/bp-checkins.php 77% from 13 tests
The entry point to "Wbcom Designs – Check-ins for BuddyPress Activity" version 2.1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 163 characters long)
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bp-check-in.php" instead of "bp-checkins.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin21,095 lines of code in 52 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 9,303 |
PHP | 28 | 409 | 1,180 | 3,012 |
CSS | 8 | 494 | 157 | 2,761 |
PO File | 5 | 837 | 997 | 2,761 |
SVG | 2 | 4 | 0 | 2,687 |
JavaScript | 5 | 67 | 43 | 564 |
XML | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
A short review of 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.27 |
Average class complexity | 24.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 140.00 |
Average method complexity | 3.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 96 | |
▷ Static methods | 12 | 12.50% |
▷ Public methods | 91 | 94.79% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 5.21% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
17 PNG files occupy 0.12MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/css/images/ui-bg_glass_65_ffffff_1x400.png | 0.20KB | 0.09KB | ▼ 57.49% |
admin/wbcom/assets/imgs/wbcom-offer-notice.png | 67.64KB | 32.40KB | ▼ 52.11% |
public/css/images/ui-bg_glass_100_f6f6f6_1x400.png | 0.26KB | 0.12KB | ▼ 53.44% |
public/css/images/ui-bg_diagonals-thick_18_b81900_40x40.png | 0.41KB | 0.15KB | ▼ 62.44% |
public/css/images/ui-icons_222222_256x240.png | 6.76KB | 4.17KB | ▼ 38.24% |