Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲4.60MB] [CPU: ▼279.62ms] Passed 4 tests
Analyzing server-side resources used by Multisite Robots.txt Manager
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.44 ▲4.92 | 71.12 ▲20.59 |
Dashboard /wp-admin | 8.46 ▲5.05 | 54.06 ▲18.40 |
Posts /wp-admin/edit.php | 8.46 ▲4.82 | 59.97 ▲21.46 |
Add New Post /wp-admin/post-new.php | 10.57 ▲3.60 | 116.87 ▼1,175.87 |
Media Library /wp-admin/upload.php | 8.46 ▲5.15 | 45.95 ▲18.41 |
Server storage [IO: ▲4.39MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 235 new files
Database: no new tables, 4 new options
New WordPress options |
---|
fs_active_plugins |
fs_accounts |
fs_gdpr |
fs_debug_mode |
Browser metrics Passed 4 tests
A check of browser resources used by Multisite Robots.txt Manager
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,778 ▲55 | 16.20 ▲0.56 | 5.94 ▼0.60 | 2.24 ▲0.01 |
Dashboard /wp-admin | 2,903 ▲42 | 6.08 ▼0.11 | 126.75 ▼9.98 | 163.28 ▲5.88 |
Posts /wp-admin/edit.php | 2,703 ▲12 | 3.24 ▲0.00 | 64.44 ▲0.86 | 139.30 ▼2.95 |
Add New Post /wp-admin/post-new.php | 1,646 ▼15 | 19.64 ▲3.55 | 444.13 ▲43.14 | 146.04 ▼18.23 |
Media Library /wp-admin/upload.php | 1,713 ▲18 | 5.54 ▲0.00 | 151.06 ▲7.17 | 190.11 ▲0.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/multisite-robotstxt-manager/sdk/freemius/includes/class-freemius.php+8218
Undefined property: stdClass::$plugins
- This plugin did not uninstall successfully, leaving 4 options in the database
- fs_debug_mode
- fs_accounts
- fs_gdpr
- fs_active_plugins
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/multisite-robotstxt-manager/sdk/freemius/templates/ajax-loader.php
- 9× 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/multisite-robotstxt-manager/sdk/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/multisite-robotstxt-manager/sdk/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/multisite-robotstxt-manager/sdk/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/multisite-robotstxt-manager/sdk/freemius/templates/account/partials/addon.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/multisite-robotstxt-manager/sdk/freemius/templates/partials/network-activation.php:6
- > PHP Warning
Use of undefined constant MS_ROBOTSTXT_MANAGER_FILE - assumed 'MS_ROBOTSTXT_MANAGER_FILE' (this will throw an Error in a future version of PHP) in wp-content/plugins/multisite-robotstxt-manager/sdk/msrtm-fs.php on line 12
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/multisite-robotstxt-manager/sdk/freemius/templates/account/partials/addon.php on line 6
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/multisite-robotstxt-manager/sdk/freemius/templates/account/partials/addon.php:9
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/multisite-robotstxt-manager/sdk/freemius/templates/account/partials/addon.php on line 8
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: There are too many tags (14 tag instead of maximum 10)
multisite-robotstxt-manager/multisite-robotstxt-manager.php Passed 13 tests
The principal PHP file in "Multisite Robots.txt Manager" v. 3.0.0 is loaded by WordPress automatically on each request
128 characters long description:
A Multisite Network Robots.txt Manager. Quickly manage your Network Websites robots.txt files from a single administration area.
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
No dangerous file extensions were detected49,471 lines of code in 174 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 144 | 7,740 | 17,435 | 31,723 |
PO File | 13 | 7,531 | 9,161 | 16,474 |
CSS | 13 | 0 | 0 | 889 |
JavaScript | 3 | 34 | 59 | 194 |
Markdown | 1 | 59 | 0 | 191 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
It is recommended to fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 2,772)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 61.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,772.00 |
Average method complexity | 4.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 2 | |
Classes | 65 | |
▷ Abstract classes | 2 | 3.08% |
▷ Concrete classes | 63 | 96.92% |
▷ Final classes | 18 | 28.57% |
Methods | 1,221 | |
▷ Static methods | 180 | 14.74% |
▷ Public methods | 849 | 69.53% |
▷ Protected methods | 15 | 1.23% |
▷ Private methods | 357 | 29.24% |
Functions | 95 | |
▷ Named functions | 95 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 128 | |
▷ Global constants | 103 | 80.47% |
▷ Class constants | 25 | 19.53% |
▷ Public constants | 25 | 100.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
3 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
sdk/freemius/assets/img/multisite-robotstxt-manager.png | 28.33KB | 4.20KB | ▼ 85.19% |
sdk/freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
sdk/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |