Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/all-in-one-wp-content-security/includes/class-all-in-one-wp-content-security-core.php+49
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.87MB] [CPU: ▼52.90ms] Passed 4 tests
An overview of server-side resources used by All in one WP Content Protector
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.12 ▼1.35 | 5.02 ▼42.89 |
Dashboard /wp-admin | 2.14 ▼1.17 | 6.19 ▼44.73 |
Posts /wp-admin/edit.php | 2.14 ▼1.22 | 7.17 ▼41.96 |
Add New Post /wp-admin/post-new.php | 2.14 ▼3.75 | 6.88 ▼82.01 |
Media Library /wp-admin/upload.php | 2.14 ▼1.09 | 5.99 ▼26.57 |
All in one WP Content Protector /wp-admin/options-general.php?page=all-in-one-wp-content-security-admin | 2.14 | 6.07 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for All in one WP Content Protector
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.20 ▼1.18 | 1.87 ▼0.02 | 48.73 ▲2.96 |
Dashboard /wp-admin | 2,212 ▲27 | 5.85 ▲0.03 | 106.94 ▼10.48 | 41.63 ▼1.32 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 1.99 ▼0.02 | 39.31 ▲2.77 | 36.15 ▲3.47 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.36 ▲5.89 | 652.60 ▲6.51 | 62.61 ▲13.33 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.21 ▲0.03 | 96.84 ▲2.78 | 40.16 ▼1.91 |
All in one WP Content Protector /wp-admin/options-general.php?page=all-in-one-wp-content-security-admin | 925 | 2.14 | 24.61 | 43.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/all-in-one-wp-content-security/includes/class-all-in-one-wp-content-security-core.php+49
Trying to access array offset on value of type bool
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=all-in-one-wp-content-security-admin
- > Notice in wp-content/plugins/all-in-one-wp-content-security/includes/class-all-in-one-wp-content-security-core.php+49
Trying to access array offset on value of type bool
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=all-in-one-wp-content-security-admin
- > Notice in wp-content/plugins/all-in-one-wp-content-security/admin/class-all-in-one-wp-content-security-admin.php+95
Undefined index: con
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
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
5 plugin tags: core security, security, performance, content security, javascript
all-in-one-wp-content-security/all-in-one-wp-content-security.php 92% from 13 tests
The main PHP script in "All in one WP Content Protector" version 0.2 is automatically included on every request by WordPress
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 190 characters long)
Code Analysis Passed 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
Success! There were no dangerous files found in this plugin460 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 36 | 82 | 438 |
SVG | 2 | 0 | 1 | 21 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 16.50 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
6 PNG files occupy 0.26MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/img/qr.png | 14.84KB | 7.15KB | ▼ 51.81% |
admin/assets/img/gpay.png | 88.55KB | 34.15KB | ▼ 61.44% |
admin/assets/img/sbi.png | 19.66KB | 9.76KB | ▼ 50.34% |
admin/assets/img/upi.png | 78.57KB | 29.46KB | ▼ 62.51% |
admin/assets/img/paypral.png | 24.14KB | 23.87KB | ▼ 1.11% |