89% wp-awesome-login

Code Review | WP Awesome Login

WordPress plugin WP Awesome Login scored 89% from 54 tests.

About plugin

  • Plugin page: wp-awesome-login
  • Plugin version: 0.4.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 12, 2016
  • Latest release: May 26, 2017
  • Number of updates: 23
  • Update frequency: every 20.4 days
  • Top authors: elvishp2006 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

70+ active / 2,407 total downloads

Benchmarks

Plugin footprint 83% 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 gracefully, with no errors

Server metrics [RAM: ▲0.12MB] [CPU: ▼0.93ms] Passed 4 tests

Analyzing server-side resources used by WP Awesome Login
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1340.32 ▲0.98
Dashboard /wp-admin3.42 ▲0.1248.71 ▲3.71
Posts /wp-admin/edit.php3.54 ▲0.1851.39 ▲3.50
Add New Post /wp-admin/post-new.php6.01 ▲0.1290.96 ▼11.93
Media Library /wp-admin/upload.php3.35 ▲0.1238.21 ▲6.18
WP Awesome Login /wp-admin/themes.php?page=wpal-settings-theme3.3538.65

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for WP Awesome Login
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲7713.25 ▼1.561.79 ▲0.0529.62 ▼14.33
Dashboard /wp-admin2,210 ▲225.81 ▼0.07103.04 ▼5.8937.10 ▼3.78
Posts /wp-admin/edit.php2,090 ▲12.01 ▼0.0337.61 ▼2.4733.77 ▲1.30
Add New Post /wp-admin/post-new.php1,531 ▼223.07 ▼0.07636.51 ▲15.0774.50 ▲15.93
Media Library /wp-admin/upload.php1,392 ▲14.18 ▼0.04100.70 ▼0.5543.78 ▼3.14
WP Awesome Login /wp-admin/themes.php?page=wpal-settings-theme1,7644.2483.2224.69

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
  • Screenshots: These screenshots do not have images: #1 (Screen example 1), #2 (Screen example 2), #3 (Screen example 3), #4 (Config screen)
You can take inspiration from this readme.txt

wp-awesome-login/wp-awesome-login.php Passed 13 tests

The principal PHP file in "WP Awesome Login" v. 0.4.0 is loaded by WordPress automatically on each request
84 characters long description:
Change the way you log in to WordPress with a flat design and colors of your choice.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,601 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
PHP9144134602
JavaScript914614579
Sass8391322
PO File1182059
JSON10025
Markdown13012
CSS2022

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity9.67
▷ Minimum class complexity2.00
▷ Maximum class complexity25.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods43
▷ Static methods2455.81%
▷ Public methods4093.02%
▷ Protected methods12.33%
▷ Private methods24.65%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants00.00%
▷ Class constants13100.00%
▷ Public constants13100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 compressed PNG files occupy 0.04MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png11.00KB11.28KB0.00%
screenshot-3.png8.06KB8.33KB0.00%
screenshot-4.png15.86KB16.31KB0.00%
screenshot-2.png7.34KB7.46KB0.00%