74% aspexi-login-audit

Code Review | Aspexi Login Audit

WordPress plugin Aspexi Login Audit scored74%from 54 tests.

About plugin

  • Plugin page: aspexi-login-audit
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.9.5
  • WordPress version: 6.3.1
  • First release: Jul 3, 2017
  • Latest release: Apr 25, 2018
  • Number of updates: 4
  • Update frequency: every 74.3 days
  • Top authors: aspexi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,029 total downloads


Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.18MB] [CPU: ▼5.32ms] Passed 4 tests

An overview of server-side resources used by Aspexi Login Audit
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.1947.87 ▲7.57
Dashboard /wp-admin3.50 ▲0.1546.49 ▼15.08
Posts /wp-admin/edit.php3.61 ▲0.2547.38 ▲5.28
Add New Post /wp-admin/post-new.php6.08 ▲0.1980.71 ▼14.75
Media Library /wp-admin/upload.php3.42 ▲0.1936.64 ▲3.29

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: 1 new table, 7 new options
New tables
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Aspexi Login Audit
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.48 ▼0.262.01 ▲0.0940.96 ▼1.25
Dashboard /wp-admin2,210 ▲255.91 ▼0.02103.61 ▼8.7842.87 ▲3.36
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0139.85 ▲0.1533.83 ▼3.18
Add New Post /wp-admin/post-new.php1,536 ▼123.31 ▲0.05629.32 ▲33.6050.56 ▼0.94
Media Library /wp-admin/upload.php1,389 ▲14.18 ▼0.0799.94 ▲1.1040.01 ▼2.07
Aspexi Login Audit /wp-admin/aspexi-login-audit.php260.440.0914.74

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method AspexiLoginAudit::uninstall() should not be called statically
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 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)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/aspexi-login-audit.php
    • > Network (severe)
    wp-admin/aspexi-login-audit.php - Failed to load resource: the server responded with a status of 404 (Not Found)


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 25 tag instead of maximum 10
Please take inspiration from this readme.txt

aspexi-login-audit/aspexi-login-audit.php 92% from 13 tests

The principal PHP file in "Aspexi Login Audit" v. 1.0.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 195 characters long)

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 plugin1,027 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PO File16477157

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity119.00
▷ Minimum class complexity119.00
▷ Maximum class complexity119.00
Average method complexity4.81
▷ Minimum method complexity1.00
▷ Maximum method complexity70.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods2993.55%
▷ Protected methods26.45%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants337.50%
▷ Class constants562.50%
▷ Public constants5100.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
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/be250.png7.19KB3.89KB▼ 45.91%
images/aspexi300.png26.93KB11.76KB▼ 56.33%