10% all-in-one-wp-content-security

Code Review | All in one WP Content Protector

WordPress plugin All in one WP Content Protector scored10%from 54 tests.

About plugin

  • Plugin page: all-in-one-wp-con...
  • Plugin version: 0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.1.1
  • WordPress version: 6.3.1
  • First release: Apr 21, 2022
  • Latest release: Feb 26, 2023
  • Number of updates: 7
  • Update frequency: every 44.6 days
  • Top authors: maheshmthorat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /670 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.12 ▼1.355.02 ▼42.89
Dashboard /wp-admin2.14 ▼1.176.19 ▼44.73
Posts /wp-admin/edit.php2.14 ▼1.227.17 ▼41.96
Add New Post /wp-admin/post-new.php2.14 ▼3.756.88 ▼82.01
Media Library /wp-admin/upload.php2.14 ▼1.095.99 ▼26.57
All in one WP Content Protector /wp-admin/options-general.php?page=all-in-one-wp-content-security-admin2.146.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.20 ▼1.181.87 ▼0.0248.73 ▲2.96
Dashboard /wp-admin2,212 ▲275.85 ▲0.03106.94 ▼10.4841.63 ▼1.32
Posts /wp-admin/edit.php2,095 ▲61.99 ▼0.0239.31 ▲2.7736.15 ▲3.47
Add New Post /wp-admin/post-new.php1,533 ▲1923.36 ▲5.89652.60 ▲6.5162.61 ▲13.33
Media Library /wp-admin/upload.php1,391 ▲34.21 ▲0.0396.84 ▲2.7840.16 ▼1.91
All in one WP Content Protector /wp-admin/options-general.php?page=all-in-one-wp-content-security-admin9252.1424.6143.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:
LanguageFilesBlank linesComment linesLines of code
PHP53682438
SVG20121
CSS1001

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 code0.34
Average class complexity16.50
▷ Minimum class complexity8.00
▷ Maximum class complexity25.00
Average method complexity2.82
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
admin/assets/img/qr.png14.84KB7.15KB▼ 51.81%
admin/assets/img/gpay.png88.55KB34.15KB▼ 61.44%
admin/assets/img/sbi.png19.66KB9.76KB▼ 50.34%
admin/assets/img/upi.png78.57KB29.46KB▼ 62.51%
admin/assets/img/paypral.png24.14KB23.87KB▼ 1.11%