Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼5.91ms] Passed 4 tests
A check of server-side resources used by Brandsoft Team Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 38.44 ▼3.36 |
Dashboard /wp-admin | 3.46 ▲0.11 | 52.12 ▼9.15 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 52.78 ▲3.32 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.16 | 95.99 ▼14.45 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 41.95 ▲7.43 |
Members /wp-admin/edit.php?post_type=bs_team_member | 3.42 | 42.96 |
Teams /wp-admin/edit.php?post_type=bs_team | 3.42 | 37.07 |
Add New Team /wp-admin/post-new.php?post_type=bs_team | 3.45 | 46.53 |
Add New Member /wp-admin/post-new.php?post_type=bs_team_member | 3.57 | 55.31 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Brandsoft Team Plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲89 | 14.34 ▼0.03 | 1.76 ▲0.11 | 42.06 ▲1.01 |
Dashboard /wp-admin | 2,233 ▲56 | 5.63 ▼0.02 | 90.17 ▼1.48 | 37.10 ▼8.50 |
Posts /wp-admin/edit.php | 2,138 ▲35 | 2.00 ▲0.02 | 40.39 ▼3.80 | 37.50 ▼0.30 |
Add New Post /wp-admin/post-new.php | 1,572 ▲46 | 23.13 ▼0.15 | 640.69 ▼16.08 | 47.20 ▼11.78 |
Media Library /wp-admin/upload.php | 1,435 ▲35 | 4.24 ▲0.06 | 97.39 ▼9.94 | 42.00 ▼2.47 |
Members /wp-admin/edit.php?post_type=bs_team_member | 1,090 | 1.96 | 30.83 | 29.99 |
Teams /wp-admin/edit.php?post_type=bs_team | 1,075 | 1.93 | 35.06 | 30.15 |
Add New Team /wp-admin/post-new.php?post_type=bs_team | 1,623 | 2.81 | 66.99 | 34.42 |
Add New Member /wp-admin/post-new.php?post_type=bs_team_member | 2,529 | 8.16 | 187.17 | 126.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% 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)
Good news, no errors were detected
SRP 0% 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
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/brandsoft-team-viewer/includes/media.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/brandsoft-team-viewer/includes/bsteam-member-info.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/brandsoft-team-viewer/includes/bsteam-team-info.php:6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/brandsoft-team-viewer/includes/view.php:7
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Requires php: The plugin version is formatted incorrectly
brandsoft-team-viewer/bsteam.php 85% from 13 tests
Analyzing the main PHP file in "Brandsoft Team Plugin" version 1.0.0
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("brandsoft-team-viewer.php" instead of "bsteam.php")
- Git Repository: There should be no Git repositories present in your plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin2,473 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 528 | 423 | 1,356 |
PHP | 6 | 436 | 31 | 960 |
JavaScript | 2 | 9 | 2 | 79 |
SVG | 1 | 0 | 0 | 78 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 86.00 |
▷ Minimum class complexity | 86.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.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 | 34 | |
▷ Static methods | 3 | 8.82% |
▷ Public methods | 34 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/right.png | 0.45KB | 0.32KB | ▼ 28.38% |
images/close-item.png | 0.60KB | 0.22KB | ▼ 62.54% |
images/close.png | 0.57KB | 0.33KB | ▼ 42.29% |
images/default.png | 16.22KB | 8.55KB | ▼ 47.30% |
images/down.png | 5.20KB | 5.36KB | 0.00% |