94% secure-access

Code Review | Secure Access

WordPress plugin Secure Access scored 94% from 54 tests.

About plugin

  • Plugin page: secure-access
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.0-4.9
  • WordPress version: 5.8.1
  • First release: Sep 2, 2015
  • Latest release: Dec 4, 2017
  • Number of updates: 8
  • Update frequency: every 103.0 days
  • Top authors: bobbywalters (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,028 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.02MB] [CPU: ▼142.89ms] Passed 4 tests

An overview of server-side resources used by Secure Access
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1436.94 ▲13.12
Dashboard /wp-admin3.08 ▲0.0350.09 ▲4.59
Posts /wp-admin/edit.php3.13 ▲0.0247.11 ▼0.72
Add New Post /wp-admin/post-new.php5.44 ▲0.0095.16 ▼573.96
Media Library /wp-admin/upload.php3.02 ▲0.0234.51 ▼1.45

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Secure Access: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,700 ▲10415.71 ▲0.2410.21 ▲0.1858.77 ▲7.14
Dashboard /wp-admin2,970 ▲365.85 ▼0.06146.60 ▲3.68128.15 ▲14.95
Posts /wp-admin/edit.php2,736 ▼32.68 ▼0.0165.59 ▼6.6789.26 ▼0.27
Add New Post /wp-admin/post-new.php1,604 ▼7918.77 ▲0.05384.23 ▼8.17113.71 ▲1.90
Media Library /wp-admin/upload.php1,810 ▲35.00 ▼0.04150.43 ▼1.95127.86 ▲1.71

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
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/secure-access/secure-access.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
4 plugin tags: private, signin, security, login

secure-access/secure-access.php Passed 13 tests

The primary PHP file in "Secure Access" version 1.0.1 is used by WordPress to initiate all plugin functionality
46 characters long description:
Secure your site by requiring users to log in.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin81 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP22213862
PO File11119

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity1.88
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There are no PNG files in this plugin