Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲4.38MB] [CPU: ▼276.13ms] Passed 4 tests
A check of server-side resources used by BlogSafe Scanner
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.34 ▲4.82 | 77.08 ▲26.43 |
Dashboard /wp-admin | 8.36 ▲4.95 | 57.87 ▲24.06 |
Posts /wp-admin/edit.php | 8.36 ▲4.71 | 60.67 ▲17.03 |
Add New Post /wp-admin/post-new.php | 10.04 ▲3.06 | 113.38 ▼1,163.58 |
Media Library /wp-admin/upload.php | 8.36 ▲5.06 | 43.23 ▲17.98 |
Freemius Debug [v.2.4.1] /wp-admin/admin.php?page=freemius | 8.36 | 42.59 |
Server storage [IO: ▲3.53MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 196 new files
Database: 2 new tables, 4 new options
New tables |
---|
wp_BS_Scanner_Data |
wp_BS_Scanner |
New WordPress options |
---|
fs_accounts |
fs_active_plugins |
fs_debug_mode |
fs_gdpr |
Browser metrics Passed 4 tests
This is an overview of browser requirements for BlogSafe Scanner
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,838 ▲84 | 15.71 ▼0.30 | 5.80 ▼0.48 | 2.02 ▼1.01 |
Dashboard /wp-admin | 2,946 ▲88 | 6.14 ▼0.04 | 120.51 ▼19.45 | 199.31 ▲37.04 |
Posts /wp-admin/edit.php | 2,743 ▲55 | 3.13 ▼0.10 | 65.40 ▲4.61 | 157.16 ▲21.83 |
Add New Post /wp-admin/post-new.php | 1,686 ▼33 | 22.57 ▲5.63 | 400.24 ▼16.60 | 175.89 ▲20.41 |
Media Library /wp-admin/upload.php | 1,736 ▲38 | 5.55 ▲0.01 | 129.76 ▼15.51 | 221.30 ▲28.99 |
Freemius Debug [v.2.4.1] /wp-admin/admin.php?page=freemius | 1,456 | 2.74 | 55.10 | 114.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/blogsafe-scanner/freemius/includes/class-freemius.php+8540
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 4 options in the database
- fs_gdpr
- fs_accounts
- fs_active_plugins
- fs_debug_mode
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=freemius
- > Notice in wp-content/plugins/blogsafe-scanner/admin/class-blogsafe-scanner-plus-admin.php+105
ob_end_flush(): failed to delete and flush buffer. No buffer to delete or flush
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
Please take a closer look at the following
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/blogsafe-scanner/public/partials/blogsafe-scanner-plus-public-display.php
- > /wp-content/plugins/blogsafe-scanner/freemius/templates/ajax-loader.php
- > /wp-content/plugins/blogsafe-scanner/admin/partials/blogsafe-scanner-plus-admin-display.php
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/blogsafe-scanner/freemius/templates/account/partials/addon.php on line 8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/blogsafe-scanner/freemius/templates/account/partials/addon.php on line 7
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/blogsafe-scanner/freemius/templates/account/partials/addon.php:9
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/blogsafe-scanner/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/blogsafe-scanner/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/blogsafe-scanner/freemius/templates/account/partials/addon.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/blogsafe-scanner/freemius/templates/partials/network-activation.php:6
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/blogsafe-scanner/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
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 96% from 29 tests
readme.txt Passed 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
3 plugin tags: malware, scanner, checksum
blogsafe-scanner/blogsafe-scanner-plus.php 92% from 13 tests
The main PHP file in "BlogSafe Scanner" ver. 1.1.4 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("blogsafe-scanner.php" instead of "blogsafe-scanner-plus.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin32,949 lines of code in 144 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 126 | 7,530 | 16,444 | 32,490 |
PO File | 1 | 95 | 104 | 235 |
JavaScript | 4 | 35 | 59 | 197 |
CSS | 13 | 1 | 8 | 27 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 2,895)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 71.02 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,895.00 |
Average method complexity | 4.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 61 | |
▷ Abstract classes | 2 | 3.28% |
▷ Concrete classes | 59 | 96.72% |
▷ Final classes | 0 | 0.00% |
Methods | 1,238 | |
▷ Static methods | 175 | 14.14% |
▷ Public methods | 865 | 69.87% |
▷ Protected methods | 15 | 1.21% |
▷ Private methods | 358 | 28.92% |
Functions | 99 | |
▷ Named functions | 98 | 98.99% |
▷ Anonymous functions | 1 | 1.01% |
Constants | 135 | |
▷ Global constants | 110 | 81.48% |
▷ Class constants | 25 | 18.52% |
▷ Public constants | 25 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.52MB with 0.34MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/blogsafe-scanner.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
admin/images/BSScannerIcon.png | 133.13KB | 0.60KB | ▼ 99.55% |
admin/images/BSS_Subscribe_Button.png | 193.20KB | 8.49KB | ▼ 95.61% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |