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.13MB] [CPU: ▼4.16ms] Passed 4 tests
Server-side resources used by Insecure Content Warning
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 41.70 ▲1.69 |
Dashboard /wp-admin | 3.43 ▲0.12 | 47.56 ▼2.81 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 43.79 ▼4.78 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 81.78 ▼10.74 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 35.05 ▲4.11 |
Insecure Content Warning /wp-admin/tools.php?page=insecure-content-warning | 3.33 | 32.00 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Insecure Content Warning
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.28 ▼0.38 | 1.87 ▼0.01 | 47.76 ▲3.52 |
Dashboard /wp-admin | 2,202 ▲25 | 5.61 ▼0.04 | 81.12 ▼23.74 | 38.75 ▼6.24 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.01 ▼0.02 | 36.09 ▼0.23 | 34.21 ▼1.14 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 23.11 ▲0.02 | 687.06 ▲81.15 | 57.64 ▲9.11 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.19 ▼0.02 | 95.89 ▼6.45 | 41.17 ▼2.13 |
Insecure Content Warning /wp-admin/tools.php?page=insecure-content-warning | 961 | 1.73 | 23.75 | 26.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/insecure-content-warning/includes/wp-cli/insecure-content-warning.php:74
- > PHP Fatal error
Uncaught Error: Call to undefined function ICW\\plugin_dir_url() in wp-content/plugins/insecure-content-warning/insecure-content-warning.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: ssl, https, publishing, secure content, publishers
insecure-content-warning/insecure-content-warning.php Passed 13 tests
The main PHP script in "Insecure Content Warning" version 1.2.0 is automatically included on every request by WordPress
59 characters long description:
Prevent editors from adding insecure content in the editor.
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
Success! There were no dangerous files found in this plugin658 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 119 | 381 | 650 |
JavaScript | 3 | 0 | 3 | 6 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 23.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 6.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 1 | 12.50% |
▷ Public methods | 5 | 62.50% |
▷ Protected methods | 3 | 37.50% |
▷ Private methods | 0 | 0.00% |
Functions | 39 | |
▷ Named functions | 18 | 46.15% |
▷ Anonymous functions | 21 | 53.85% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected