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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 38.06 ▲14.17 |
Dashboard /wp-admin | 3.06 ▲0.01 | 48.78 ▼0.62 |
Posts /wp-admin/edit.php | 3.11 ▲0.01 | 48.74 ▲1.28 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 99.32 ▼557.89 |
Media Library /wp-admin/upload.php | 3.01 ▲0.00 | 37.55 ▼0.24 |
OU Security /wp-admin/options-general.php?page=ou_security_option | 2.96 | 39.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,707 ▲111 | 15.76 ▲0.32 | 12.04 ▲2.96 | 47.75 ▼0.02 |
Dashboard /wp-admin | 2,978 ▲47 | 6.00 ▲0.06 | 148.27 ▼2.51 | 112.74 ▼8.59 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.69 ▼0.00 | 68.72 ▼0.85 | 84.76 ▼12.87 |
Add New Post /wp-admin/post-new.php | 1,503 ▼112 | 18.57 ▼2.95 | 383.43 ▲90.32 | 114.31 ▲4.63 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.01 ▲0.00 | 160.18 ▲2.96 | 120.53 ▼10.20 |
OU Security /wp-admin/options-general.php?page=ou_security_option | 1,020 | 2.09 | 57.74 | 75.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
- > PHP Fatal error
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)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 20 | 23 | 99 |
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 code | 0.06 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 10.08KB | 3.37KB | ▼ 66.60% |