Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.02MB] [CPU: ▼11.95ms] Passed 4 tests
A check of server-side resources used by Wbcom Designs - Private Community for BuddyPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.00 | 45.15 ▼0.89 |
Dashboard /wp-admin | 3.57 ▼0.07 | 49.03 ▼25.20 |
Posts /wp-admin/edit.php | 3.68 ▲0.00 | 47.57 ▼5.05 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.00 | 85.83 ▼16.65 |
Media Library /wp-admin/upload.php | 3.49 ▲0.00 | 37.37 ▲0.43 |
Server storage [IO: ▲4.63MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 87 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Wbcom Designs - Private Community for BuddyPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.37 ▲0.02 | 2.14 ▲0.28 | 39.78 ▼6.69 |
Dashboard /wp-admin | 2,198 ▲18 | 5.64 ▼0.05 | 85.31 ▼10.79 | 41.92 ▼3.73 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▼0.00 | 36.01 ▼0.03 | 34.64 ▼2.47 |
Add New Post /wp-admin/post-new.php | 1,538 ▼7 | 23.18 ▼0.21 | 673.52 ▲10.70 | 55.20 ▼7.24 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.23 ▲0.02 | 97.40 ▼6.92 | 42.39 ▼2.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/lock-my-bp/admin/wbcom/templates/wbcom-license-page.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/lock-my-bp/admin/wbcom/templates/wbcom-support-page.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/lock-my-bp/admin/class-bp-lock-feedback.php:311
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/lock-my-bp/admin/wbcom/templates/wbcom-plugins-page.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #4 (This screenshot shows the pages List options setting to screenshot-4.(png|jpg|jpeg|gif).), #5 (This screenshot shows the locked pages setting layout to screenshot-5.(png|jpg|jpeg|gif).)
lock-my-bp/bp-lock.php 77% from 13 tests
The primary PHP file in "Wbcom Designs - Private Community for BuddyPress" version 1.9.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("lock-my-bp.php" instead of "bp-lock.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 172 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin16,511 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 9,149 |
SVG | 1 | 0 | 0 | 2,671 |
PHP | 25 | 336 | 1,024 | 2,393 |
CSS | 5 | 304 | 74 | 1,955 |
JavaScript | 5 | 19 | 17 | 335 |
XML | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 19.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 104.00 |
Average method complexity | 3.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.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 | 68 | |
▷ Static methods | 2 | 2.94% |
▷ Public methods | 61 | 89.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 10.29% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 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
4 PNG files occupy 0.38MB with 0.22MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/wbcom/assets/imgs/logowbcom.png | 10.12KB | 3.87KB | ▼ 61.72% |
admin/wbcom/assets/imgs/wbcom-offer-notice.png | 67.64KB | 32.40KB | ▼ 52.11% |
admin/wbcom/assets/imgs/bp_lock.png | 5.95KB | 3.18KB | ▼ 46.53% |
screenshot-5.png | 301.64KB | 76.65KB | ▼ 74.59% |