89% secure-admin-access

Code Review | Secure Admin Access

WordPress plugin Secure Admin Access scored89%from 54 tests.

About plugin

  • Plugin page: secure-admin-access
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.7.4
  • WordPress version: 6.3.1
  • First release: Oct 9, 2017
  • Latest release: Oct 9, 2017
  • Number of updates: 6
  • Update frequency: every 13.0 days
  • Top authors: maheshkathiriya (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /692 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▲4.96ms] Passed 4 tests

An overview of server-side resources used by Secure Admin Access
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1346.74 ▲6.72
Dashboard /wp-admin3.44 ▲0.1459.57 ▲8.36
Posts /wp-admin/edit.php3.56 ▲0.2159.76 ▲13.33
Add New Post /wp-admin/post-new.php6.01 ▲0.1293.60 ▼3.38
Media Library /wp-admin/upload.php3.35 ▲0.1243.83 ▲8.12

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: 1 new table, 7 new options
New tables
wp_saa_limit_login
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
saa_limit_login_install_date
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Secure Admin Access
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,942 ▲18114.47 ▲0.161.67 ▼0.1641.83 ▲0.73
Dashboard /wp-admin2,351 ▲1716.12 ▲0.48119.63 ▲23.5038.63 ▼1.40
Posts /wp-admin/edit.php2,279 ▲1793.30 ▲1.3254.83 ▲19.1735.86 ▼0.38
Add New Post /wp-admin/post-new.php1,544 ▲1623.21 ▲0.24607.71 ▼6.1634.78 ▼29.44
Media Library /wp-admin/upload.php1,413 ▲134.18 ▲0.0083.99 ▼22.5947.33 ▼1.00

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Donate link: Invalid URI ("")
  • Tags: Please delete some tags, you are using 17 tag instead of maximum 10
Please take inspiration from this readme.txt

secure-admin-access/secure-admin-access.php 92% from 13 tests

This is the main PHP file of "Secure Admin Access" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 281 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin786 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP312196759
CSS11427

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.48
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%
Functions30
▷ Named functions30100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There were not PNG files found in your plugin