Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼140.54ms] Passed 4 tests
This is a short check of server-side resources used by Groups Blog Protect
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.16 | 34.09 ▲11.15 |
Dashboard /wp-admin | 3.10 ▲0.05 | 38.39 ▼8.02 |
Posts /wp-admin/edit.php | 3.16 ▲0.05 | 44.47 ▲0.48 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.04 | 90.30 ▼553.23 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 33.07 ▼1.39 |
Groups Blog Protect /wp-admin/options-general.php?page=groups-blog-protect | 3.02 | 21.95 |
Server storage [IO: ▲0.10MB] [DB: ▲0.62MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Groups Blog Protect: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲102 | 15.94 ▲0.30 | 5.03 ▼2.18 | 45.58 ▼1.56 |
Dashboard /wp-admin | 2,978 ▲47 | 5.87 ▼0.07 | 132.95 ▼6.49 | 121.47 ▼1.16 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.69 ▼0.01 | 71.44 ▲1.21 | 93.53 ▲0.16 |
Add New Post /wp-admin/post-new.php | 1,501 ▼371 | 18.80 ▼0.32 | 387.09 ▼2.12 | 108.15 ▼3.32 |
Media Library /wp-admin/upload.php | 1,812 ▲8 | 5.01 ▲0.01 | 151.02 ▼6.02 | 126.68 ▲7.95 |
Groups Blog Protect /wp-admin/options-general.php?page=groups-blog-protect | 1,001 | 2.06 | 52.47 | 58.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.62MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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 fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/groups-blog-protect/groups-blog-protect.php:45
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: Screenshot #1 (Groups Blog Protect settings.) image required
groups-blog-protect/groups-blog-protect.php Passed 13 tests
The main PHP script in "Groups Blog Protect" version 1.3.0 is automatically included on every request by WordPress
64 characters long description:
Protect access to blogs via group memberships powered by Groups.
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
No dangerous file extensions were detected197 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 51 | 70 | 197 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 32.00 |
▷ Minimum class complexity | 32.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 4.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 8 | 100.00% |
▷ Public methods | 7 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 12.50% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 50.02KB | 17.31KB | ▼ 65.41% |