90% elkse

Code Review | ELK Security Enforcer

WordPress plugin ELK Security Enforcer scored90%from 54 tests.

About plugin

  • Plugin page: elkse
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.3.2
  • WordPress version: 6.3.1
  • First release: Apr 2, 2020
  • Latest release: May 11, 2020
  • Number of updates: 4
  • Update frequency: every 9.8 days
  • Top authors: elklab (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /486 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.41ms] Passed 4 tests

An overview of server-side resources used by ELK Security Enforcer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.11 ▼5.00
Dashboard /wp-admin3.33 ▲0.0347.93 ▼1.84
Posts /wp-admin/edit.php3.38 ▲0.0351.03 ▲2.71
Add New Post /wp-admin/post-new.php5.91 ▲0.0390.96 ▼17.49
Media Library /wp-admin/upload.php3.25 ▲0.0341.81 ▲7.24

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
elkse_site
db_upgraded
widget_recent-comments
elkse_mail
theysaidso_admin_options
elkse_home
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for ELK Security Enforcer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.16 ▼1.431.53 ▼0.4143.48 ▼5.54
Dashboard /wp-admin2,206 ▲155.89 ▲1.03107.19 ▼1.8342.01 ▲0.47
Posts /wp-admin/edit.php2,086 ▼02.01 ▲0.0236.01 ▼0.7640.71 ▲5.02
Add New Post /wp-admin/post-new.php1,533 ▲523.22 ▲0.03698.17 ▲39.9753.02 ▼19.51
Media Library /wp-admin/upload.php1,388 ▼04.21 ▼0.0396.60 ▼7.6945.61 ▲0.84

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
  • Zombie WordPress options were found after uninstall: 9 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • elkse_mail
    • widget_recent-comments
    • elkse_home
    • elkse_site

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
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
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: breach, security, elk, elklab, malware

elkse/elkse.php Passed 13 tests

The primary PHP file in "ELK Security Enforcer" version 1.0.4 is used by WordPress to initiate all plugin functionality
104 characters long description:
This simple plugin enforces security measures against march 2020 attacks and handles breach notification

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected175 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11916111
PO File1161864

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions10
▷ Named functions10100.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
No PNG images were found in this plugin