Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/cellarweb-privacy-and-security-options/cellarweb-privacy-and-security.php+819
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.58MB] [CPU: ▼57.15ms] Passed 4 tests
A check of server-side resources used by CellarWeb Privacy and Security Options
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.42 ▼1.05 | 7.06 ▼33.87 |
Dashboard /wp-admin | 2.44 ▼0.91 | 8.27 ▼57.31 |
Posts /wp-admin/edit.php | 2.44 ▼0.92 | 8.36 ▼41.11 |
Add New Post /wp-admin/post-new.php | 2.44 ▼3.45 | 7.61 ▼96.32 |
Media Library /wp-admin/upload.php | 2.44 ▼0.79 | 8.61 ▼24.52 |
Privacy and Security by CellarWeb /wp-admin/options-general.php?page=cellarweb_privacy_and_security | 2.44 | 7.96 |
Server storage [IO: ▲3.26MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for CellarWeb Privacy and Security Options
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲70 | 14.32 ▼0.03 | 1.73 ▲0.07 | 43.11 ▼2.00 |
Dashboard /wp-admin | 2,198 ▲27 | 5.58 ▲0.07 | 90.35 ▼7.42 | 35.16 ▼5.70 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.94 ▼0.03 | 38.97 ▼2.53 | 31.01 ▼5.45 |
Add New Post /wp-admin/post-new.php | 1,525 ▼10 | 23.44 ▼1.61 | 593.09 ▼18.51 | 57.40 ▼17.28 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.18 ▼0.04 | 94.84 ▼7.07 | 40.20 ▼2.06 |
Privacy and Security by CellarWeb /wp-admin/options-general.php?page=cellarweb_privacy_and_security | 1,345 | 2.00 | 24.50 | 62.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/cellarweb-privacy-and-security-options/cellarweb-privacy-and-security.php+819
Trying to access array offset on value of type bool
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 21 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=cellarweb_privacy_and_security
- > Notice in wp-content/plugins/cellarweb-privacy-and-security-options/cellarweb-privacy-and-security.php+517
Trying to access array offset on value of type bool
SRP 0% 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 take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/cellarweb-privacy-and-security-options/css/custom_login_page.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_stylesheet_directory_uri() in wp-content/plugins/cellarweb-privacy-and-security-options/cellarweb-privacy-and-security.php:35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
1 plugin tags: site security privacy safety hardening
cellarweb-privacy-and-security-options/cellarweb-privacy-and-security.php 92% from 13 tests
The main PHP file in "CellarWeb Privacy and Security Options" ver. 4.14 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("cellarweb-privacy-and-security-options.php" instead of "cellarweb-privacy-and-security.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,218 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 261 | 405 | 991 |
CSS | 3 | 23 | 6 | 207 |
XML | 2 | 0 | 0 | 12 |
SVG | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 61 | |
▷ Named functions | 59 | 96.72% |
▷ Anonymous functions | 2 | 3.28% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.13MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/soda-cup-straw.png | 121.76KB | 58.15KB | ▼ 52.24% |
css/warning-yellow.png | 0.95KB | 0.77KB | ▼ 19.47% |
assets/curl-result.png | 4.43KB | 2.02KB | ▼ 54.31% |
css/icons8-lock-30.png | 0.41KB | 0.35KB | ▼ 14.80% |
css/icons8-high-importance-48.png | 0.95KB | 0.64KB | ▼ 32.65% |