84% sekur-me

Code Review | Sekur.me

WordPress plugin Sekur.me scored 84% from 54 tests.

About plugin

  • Plugin page: sekur-me
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7.0-4.1.1
  • WordPress version: 6.3.1
  • First release: Aug 21, 2014
  • Latest release: Mar 23, 2015
  • Number of updates: 18
  • Update frequency: every 12.0 days
  • Top authors: sekur (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 646 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼2.67ms] Passed 4 tests

Server-side resources used by Sekur.me
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0738.92 ▼4.33
Dashboard /wp-admin3.37 ▲0.0647.52 ▼10.63
Posts /wp-admin/edit.php3.42 ▲0.0650.74 ▲5.00
Add New Post /wp-admin/post-new.php5.95 ▲0.0686.58 ▲0.04
Media Library /wp-admin/upload.php3.29 ▲0.0637.35 ▲4.26

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: 1 new table, 6 new options
New tables
sekurmelogin
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Sekur.me
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲10414.74 ▲0.361.70 ▼0.0633.52 ▼14.43
Dashboard /wp-admin2,223 ▲355.83 ▲0.75106.15 ▼7.5071.34 ▲21.28
Posts /wp-admin/edit.php2,112 ▲262.00 ▲0.0138.33 ▲2.5635.03 ▲3.60
Add New Post /wp-admin/post-new.php1,528 ▼617.42 ▼5.87748.69 ▲154.1953.06 ▲4.00
Media Library /wp-admin/upload.php1,405 ▲144.17 ▼0.0395.18 ▼4.5975.05 ▲31.98

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

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
Even though no errors were found, this is by no means an exhaustive test

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 fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sekur-me/SekurMe.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function status_header() in wp-content/plugins/sekur-me/sekurclient/sekurclient_processverification/index.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: authentication, sekurme, login

sekur-me/SekurMe.php 92% from 13 tests

The main PHP file in "Sekur.me" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sekur-me.php" instead of "SekurMe.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin469 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP38836412
CSS132356
JavaScript1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods3100.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/icon.png1.70KB1.02KB▼ 39.94%