94% secwurity-wp-login

Code Review | SeCWurity WP Login

WordPress plugin SeCWurity WP Login scored 94% from 54 tests.

About plugin

  • Plugin page: secwurity-wp-login
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.2
  • WordPress version: 5.8.1
  • First release: Nov 3, 2014
  • Latest release: May 31, 2015
  • Number of updates: 29
  • Update frequency: every 7.2 days
  • Top authors: slmsmsk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 876 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.05MB] [CPU: ▼144.02ms] Passed 4 tests

This is a short check of server-side resources used by SeCWurity WP Login
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.1730.87 ▲6.82
Dashboard /wp-admin3.11 ▲0.0651.42 ▲8.95
Posts /wp-admin/edit.php3.17 ▲0.0644.87 ▼3.20
Add New Post /wp-admin/post-new.php5.47 ▲0.0488.30 ▼578.91
Media Library /wp-admin/upload.php3.06 ▲0.0634.25 ▼0.80
Eklenti Ayarları /wp-admin/admin.php?page=secwurity-wp-login3.0729.35
Plug-in Grubu /wp-admin/admin.php?page=plugin_team3.0229.42
Hakkımızda /wp-admin/admin.php?page=cyber_warrior3.0228.54

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
SCWL_url
SCWL_sifre
SCWL_login
SCWL_par
SCWL_sayi
SCWL_deger

Browser metrics Passed 4 tests

This is an overview of browser requirements for SeCWurity WP Login
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,835 ▲23916.38 ▲0.669.23 ▼1.2546.13 ▼1.00
Dashboard /wp-admin2,997 ▲606.09 ▼0.02137.09 ▼4.44121.05 ▲13.93
Posts /wp-admin/edit.php2,791 ▲522.73 ▲0.0275.40 ▲6.8292.71 ▲8.23
Add New Post /wp-admin/post-new.php1,641 ▼1,99521.52 ▲6.55287.71 ▼174.53106.68 ▼5.58
Media Library /wp-admin/upload.php1,785 ▼225.06 ▲0.04138.58 ▼18.54142.23 ▲32.01
Eklenti Ayarları /wp-admin/admin.php?page=secwurity-wp-login1,1602.3362.4390.40
Plug-in Grubu /wp-admin/admin.php?page=plugin_team1,0842.0949.4879.53
Hakkımızda /wp-admin/admin.php?page=cyber_warrior1,0772.3453.7663.83

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=cyber_warrior
    • > Network (severe)
    https://www.cyber-warrior.org/images/Banner/05.gif - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
7 plugin tags: force, security, brute, anti, kelogger...

secwurity-wp-login/secwurity-wp-login.php 92% from 13 tests

Analyzing the main PHP file in "SeCWurity WP Login" version 2.1
The following require your attention:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected542 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP25651308
CSS212202
JavaScript33132

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity2.44
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods1794.44%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants114.29%
▷ Class constants685.71%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/arti.png0.30KB0.18KB▼ 40.26%
images/eksi.png0.27KB0.28KB0.00%
images/icon.png1.56KB0.70KB▼ 55.24%