84% mp-customize-login-page

Code Review | MP Customize Login Page

WordPress plugin MP Customize Login Page scored 84% from 54 tests.

About plugin

  • Plugin page: mp-customize-logi...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9
  • WordPress version: 6.3.1
  • First release: Nov 6, 2017
  • Latest release: Jan 25, 2018
  • Number of updates: 14
  • Update frequency: every 5.9 days
  • Top authors: manuelpadillac (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 738 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼0.33ms] Passed 4 tests

A check of server-side resources used by MP Customize Login Page
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0244.46 ▼1.30
Dashboard /wp-admin3.33 ▲0.0248.19 ▼2.25
Posts /wp-admin/edit.php3.38 ▲0.0248.03 ▲0.04
Add New Post /wp-admin/post-new.php5.91 ▲0.0295.05 ▲2.68
Media Library /wp-admin/upload.php3.25 ▲0.0235.60 ▲2.20
MP Customize Login Page /wp-admin/options-general.php?page=mpclp-settings-menu3.2939.91

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for MP Customize Login Page
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲7214.44 ▲0.071.71 ▲0.1443.53 ▼9.84
Dashboard /wp-admin2,210 ▲194.85 ▼0.03106.09 ▼10.2942.83 ▼7.17
Posts /wp-admin/edit.php2,093 ▲72.05 ▲0.0338.68 ▲3.9834.82 ▼2.12
Add New Post /wp-admin/post-new.php1,545 ▲1218.44 ▼4.70602.87 ▼49.1460.58 ▲0.45
Media Library /wp-admin/upload.php1,392 ▲104.14 ▲0.0091.69 ▼5.2140.77 ▼2.76
MP Customize Login Page /wp-admin/options-general.php?page=mpclp-settings-menu2,2567.65160.1063.87

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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 following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/mp-customize-login-page/views/start.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: login customization, custom login, login page

mp-customize-login-page/mp-customize-login-page.php 85% from 13 tests

"MP Customize Login Page" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,137 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS21118742
PHP57671325
JavaScript110053
SVG10117

PHP code Passed 2 tests

Analyzing 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.18
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity1.79
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods29
▷ Static methods29100.00%
▷ Public methods2896.55%
▷ Protected methods00.00%
▷ Private methods13.45%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants360.00%
▷ Class constants240.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.28MB with 0.21MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-3.png79.22KB16.81KB▼ 78.78%
assets/screenshot-1.png120.04KB32.35KB▼ 73.05%
assets/screenshot-2.png87.17KB22.93KB▼ 73.70%