83% ousecurity

Code Review | OU Security

WordPress plugin OU Security scored 83% from 54 tests.

About plugin

  • Plugin page: ousecurity
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.1-4.6.1
  • WordPress version: 5.8.1
  • First release: Oct 14, 2016
  • Latest release: Oct 15, 2016
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: oleksandr87 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 358 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼139.37ms] Passed 4 tests

An overview of server-side resources used by OU Security
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1238.06 ▲14.17
Dashboard /wp-admin3.06 ▲0.0148.78 ▼0.62
Posts /wp-admin/edit.php3.11 ▲0.0148.74 ▲1.28
Add New Post /wp-admin/post-new.php5.42 ▼0.0199.32 ▼557.89
Media Library /wp-admin/upload.php3.01 ▲0.0037.55 ▼0.24
OU Security /wp-admin/options-general.php?page=ou_security_option2.9639.86

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
Please try to fix the following items
  • You have illegally modified 1 file (0.95KB) outside of "wp-content/plugins/ousecurity/" and "wp-content/uploads/"
    • (modified) .htaccess
Filesystem: 3 new files
Database: 1 new table, 1 new option
New tables
wp_ousecuritydb
New WordPress options
jal_db_version

Browser metrics Passed 4 tests

OU Security: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,707 ▲11115.76 ▲0.3212.04 ▲2.9647.75 ▼0.02
Dashboard /wp-admin2,978 ▲476.00 ▲0.06148.27 ▼2.51112.74 ▼8.59
Posts /wp-admin/edit.php2,744 ▲52.69 ▼0.0068.72 ▼0.8584.76 ▼12.87
Add New Post /wp-admin/post-new.php1,503 ▼11218.57 ▼2.95383.43 ▲90.32114.31 ▲4.63
Media Library /wp-admin/upload.php1,812 ▲55.01 ▲0.00160.18 ▲2.96120.53 ▼10.20
OU Security /wp-admin/options-general.php?page=ou_security_option1,0202.0957.7475.13

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 1 option in the database
    • jal_db_version

Smoke tests 75% from 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 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ousecurity/index.php:52

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: Add an image for screenshot #1 (Screenshot)
You can look at the official readme.txt

ousecurity/index.php 92% from 13 tests

The principal PHP file in "OU Security" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ousecurity.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin99 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1202399

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.06
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png10.08KB3.37KB▼ 66.60%