84% eazy-login-logo

Code Review | Eazy Login Logo

WordPress plugin Eazy Login Logo scored84%from 54 tests.

About plugin

  • Plugin page: eazy-login-logo
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.9.1
  • WordPress version: 6.3.1
  • First release: May 14, 2015
  • Latest release: Jan 2, 2018
  • Number of updates: 15
  • Update frequency: every 64.3 days
  • Top authors: r0bsc0tt (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

600+ active /9,978 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.02ms] Passed 4 tests

This is a short check of server-side resources used by Eazy Login Logo
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.82 ▼4.70
Dashboard /wp-admin3.31 ▲0.0149.03 ▲0.35
Posts /wp-admin/edit.php3.36 ▲0.0048.44 ▲0.03
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.83 ▼14.65
Media Library /wp-admin/upload.php3.23 ▲0.0036.95 ▼0.75

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Eazy Login Logo
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,781 ▲2014.42 ▲0.121.99 ▲0.2741.89 ▼3.52
Dashboard /wp-admin2,195 ▲185.64 ▼0.0985.95 ▼6.7340.04 ▲0.04
Posts /wp-admin/edit.php2,100 ▼02.13 ▲0.0841.03 ▼1.5134.26 ▼2.53
Add New Post /wp-admin/post-new.php1,526 ▼2117.63 ▼5.40670.63 ▲1.3160.66 ▲4.33
Media Library /wp-admin/upload.php1,400 ▼04.20 ▲0.00103.28 ▲0.9543.83 ▼4.50

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/eazy-login-logo/eazy_login_logo.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Tags: There are too many tags (42 tag instead of maximum 10)
The official readme.txt might help

eazy-login-logo/eazy_login_logo.php 92% from 13 tests

The primary PHP file in "Eazy Login Logo" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("eazy-login-logo.php" instead of "eazy_login_logo.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected18 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP141318

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/login-logo.png9.36KB4.00KB▼ 57.23%