89% 1on1-secure

Code Review | 1on1 Secure - AI Security, Anti-Spam, and Firewall

WordPress plugin 1on1 Secure - AI Security, Anti-Spam, and Firewall scored89%from 54 tests.

About plugin

  • Plugin page: 1on1-secure
  • Plugin version: 1.1.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4.1
  • WordPress version: 6.3.1
  • First release: Aug 18, 2023
  • Latest release: Dec 1, 2023
  • Number of updates: 16
  • Update frequency: every 6.6 days
  • Top authors: 1on1secure (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

900+ active /2,179 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▲1.58ms] Passed 4 tests

A check of server-side resources used by 1on1 Secure - AI Security, Anti-Spam, and Firewall
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.19697.58 ▲654.47
Dashboard /wp-admin3.41 ▲0.1046.59 ▼3.21
Posts /wp-admin/edit.php3.52 ▲0.1650.11 ▼2.90
Add New Post /wp-admin/post-new.php5.99 ▲0.1092.22 ▲6.44
Media Library /wp-admin/upload.php3.33 ▲0.1040.28 ▲6.01

Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 12 new options
New WordPress options
APIKey1on1Secure
can_compress_scripts
DataAnalysis1on1Secure
widget_recent-comments
ErrorPageForBadIPs1on1Secure
db_upgraded
OnlyUSAVisitor1on1Secure
TorUser1on1Secure
theysaidso_admin_options
widget_recent-posts
...

Browser metrics Passed 4 tests

Checking browser requirements for 1on1 Secure - AI Security, Anti-Spam, and Firewall
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3314.19 ▼0.171.59 ▼0.1241.80 ▼1.58
Dashboard /wp-admin2,213 ▲335.67 ▲0.0291.42 ▼10.5463.41 ▲18.96
Posts /wp-admin/edit.php2,121 ▲181.96 ▲0.0239.51 ▼1.6033.27 ▼3.57
Add New Post /wp-admin/post-new.php1,693 ▲16322.26 ▼0.65678.68 ▲39.7744.88 ▼2.80
Media Library /wp-admin/upload.php1,415 ▲154.10 ▼0.0591.65 ▼4.1874.94 ▲33.71

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Screenshots: No descriptions were found for these screenshots #2, #3, #4 in 1on1-secure/assets to your readme.txt
The official readme.txt is a good inspiration

1on1-secure/1on1secure.php 77% from 13 tests

The primary PHP file in "1on1 Secure - AI Security, Anti-Spam, and Firewall" version 1.1.9 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("1on1-secure.php" instead of "1on1secure.php")
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 185 characters long)

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
No dangerous file extensions were detected983 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP316170723
JavaScript1325155
CSS186105

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions29
▷ Named functions29100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/1on1securelogo70.png13.33KB1.78KB▼ 86.63%
images/1on1secureicon18.png10.76KB0.46KB▼ 95.68%
images/1on1securelogo40.png0.48KB0.48KB0.00%