89% undasecure

Code Review | UndaSecure

WordPress plugin UndaSecure scored89%from 54 tests.

About plugin

  • Plugin page: undasecure
  • Plugin version: 1.2.16
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.5
  • WordPress version: 6.3.1
  • First release: Nov 13, 2017
  • Latest release: Apr 6, 2018
  • Number of updates: 20
  • Update frequency: every 7.3 days
  • Top authors: asantosundanet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /768 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.50ms] Passed 4 tests

A check of server-side resources used by UndaSecure
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0339.72 ▲0.56
Dashboard /wp-admin3.33 ▲0.0245.86 ▲0.60
Posts /wp-admin/edit.php3.38 ▲0.0246.89 ▲1.17
Add New Post /wp-admin/post-new.php5.91 ▲0.0288.99 ▼10.17
Media Library /wp-admin/upload.php3.25 ▲0.0232.47 ▼1.00

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

Analyzing filesystem and database footprints of this plugin
It is recommended to fix the following issues
  • Illegal file modification found: 1 file (3.44KB) outside of "wp-content/plugins/undasecure/" and "wp-content/uploads/"
    • (modified) .htaccess
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for UndaSecure
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.27 ▼1.041.82 ▼0.0638.64 ▼1.90
Dashboard /wp-admin2,205 ▲135.84 ▲0.7396.33 ▼15.3738.85 ▼6.99
Posts /wp-admin/edit.php2,091 ▲22.05 ▲0.0440.31 ▲3.4434.35 ▼1.11
Add New Post /wp-admin/post-new.php1,516 ▼2617.59 ▼0.82623.37 ▲14.8162.54 ▲12.21
Media Library /wp-admin/upload.php1,387 ▼14.18 ▼0.0395.11 ▼2.1943.35 ▲1.43

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Contributors: Contributors not specified
You can take inspiration from this readme.txt

undasecure/undasecure.php Passed 13 tests

Analyzing the main PHP file in "UndaSecure" version 1.2.16
62 characters long description:
Plugin de Securización y Optimización de WP de Grupo Undanet

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 detected121 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2277121

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods450.00%
▷ Protected methods00.00%
▷ Private methods450.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin