Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼4.82ms] Passed 4 tests
Server-side resources used by Business Review Block
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 37.82 ▼1.33 |
Dashboard /wp-admin | 3.41 ▲0.11 | 45.80 ▼5.52 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 49.87 ▲3.33 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 83.12 ▼15.76 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 44.64 ▲13.44 |
Business Review /wp-admin/admin.php?page=business-review | 3.29 | 35.15 |
Server storage [IO: ▲1.76MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 68 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
brp-redirect |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Business Review Block: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲46 | 14.31 ▲0.02 | 1.79 ▲0.12 | 39.55 ▼4.73 |
Dashboard /wp-admin | 2,195 ▲15 | 5.55 ▼0.14 | 91.93 ▲1.90 | 41.53 ▲1.99 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.94 ▼0.00 | 40.35 ▼1.37 | 36.11 ▼2.93 |
Add New Post /wp-admin/post-new.php | 1,678 ▲152 | 25.00 ▲1.67 | 662.48 ▲64.10 | 36.56 ▼17.39 |
Media Library /wp-admin/upload.php | 1,403 ▲9 | 4.19 ▲0.01 | 102.30 ▲2.05 | 40.19 ▼2.86 |
Business Review /wp-admin/admin.php?page=business-review | 798 | 2.38 | 55.77 | 27.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- brp-redirect
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
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)
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following items
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to a member function can_use_premium_feature() on null in wp-content/plugins/business-review/custom-post.php:8
- > PHP Warning
Use of undefined constant GRBB_PLUGIN_VERSION - assumed 'GRBB_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/business-review/dist/editor.asset.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'BSDK' not found in wp-content/plugins/business-review/bplugins_sdk/inc/Base/License.php:3
- > PHP Fatal error
Uncaught Error: Class 'BSDK' not found in wp-content/plugins/business-review/bplugins_sdk/inc/Base/Activate.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/business-review/api/BusinessReviewAPI.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% 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
These attributes need to be fixed:
- Requires at least: Version format is invalid
business-review/index.php 92% from 13 tests
The main file in "Business Review Block" v. 1.0.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("business-review.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected2,084 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 167 | 43 | 759 |
JavaScript | 17 | 71 | 28 | 489 |
JSON | 4 | 0 | 0 | 383 |
PO File | 2 | 85 | 90 | 201 |
Sass | 3 | 11 | 5 | 184 |
CSS | 6 | 4 | 8 | 50 |
SVG | 2 | 1 | 0 | 18 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 3 | 5.45% |
▷ Public methods | 53 | 96.36% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.64% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 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 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
bplugins_sdk/dist/assets/images/shield_success.png | 3.47KB | 3.61KB | 0.00% |