84% customizer-login-page-wp

Code Review | Customizer Login Page WP

WordPress plugin Customizer Login Page WP scored84%from 54 tests.

About plugin

  • Plugin page: customizer-login-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 26, 2023
  • Latest release: Feb 6, 2023
  • Number of updates: 5
  • Update frequency: every 2.4 days
  • Top authors: shovoalways (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

20+ active /288 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼0.91ms] Passed 4 tests

A check of server-side resources used by Customizer Login Page WP
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.54 ▼3.29
Dashboard /wp-admin3.33 ▲0.0349.80 ▼0.86
Posts /wp-admin/edit.php3.38 ▲0.0353.99 ▼0.03
Add New Post /wp-admin/post-new.php5.91 ▲0.03103.45 ▲12.26
Media Library /wp-admin/upload.php3.25 ▲0.0334.67 ▲0.54

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Customizer Login Page WP
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲6713.70 ▼0.671.67 ▼0.4945.48 ▲0.05
Dashboard /wp-admin2,221 ▲334.87 ▼0.97111.02 ▼7.2241.76 ▼3.18
Posts /wp-admin/edit.php2,107 ▲182.01 ▼0.0439.40 ▲1.2335.36 ▼5.16
Add New Post /wp-admin/post-new.php1,544 ▲2523.34 ▼0.09616.63 ▼86.4352.81 ▼10.52
Media Library /wp-admin/upload.php1,409 ▲274.12 ▼0.0898.60 ▼13.7949.28 ▲0.65

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/customizer-login-page-wp/customizer-login-page-wp.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: Screenshot #3 (Back End) image required
The official readme.txt is a good inspiration

customizer-login-page-wp/customizer-login-page-wp.php 92% from 13 tests

The main PHP file in "Customizer Login Page WP" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
Good job! No executable or dangerous file extensions detected290 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS231184
PHP12931106

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.06
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/author.png35.63KB13.20KB▼ 62.95%
img/logo-sm.png9.44KB4.78KB▼ 49.35%
img/buyme.png5.24KB2.76KB▼ 47.31%