84% mc-login-code

Code Review | MC Login Code

WordPress plugin MC Login Code scored 84% from 54 tests.

About plugin

  • Plugin page: mc-login-code
  • Plugin version: 2.3.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 13, 2020
  • Latest release: Jun 13, 2022
  • Number of updates: 27
  • Update frequency: every 22.5 days
  • Top authors: Mike Hickcox (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,367 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: ▼5.21ms] Passed 4 tests

Analyzing server-side resources used by MC Login Code
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.37 ▲0.17
Dashboard /wp-admin3.33 ▲0.0349.11 ▲0.79
Posts /wp-admin/edit.php3.38 ▲0.0249.81 ▲2.96
Add New Post /wp-admin/post-new.php5.91 ▲0.0282.00 ▼22.35
Media Library /wp-admin/upload.php3.25 ▲0.0233.86 ▲0.54
MC Login Code /wp-admin/options-general.php?page=mclogincode3.2229.08

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for MC Login Code
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.26 ▼1.101.67 ▼0.1843.77 ▼3.42
Dashboard /wp-admin2,210 ▲255.90 ▲0.9197.66 ▼4.3240.75 ▼5.24
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0132.63 ▼5.8034.14 ▼0.67
Add New Post /wp-admin/post-new.php1,517 ▼1917.64 ▼5.47627.28 ▼17.4755.10 ▲7.16
Media Library /wp-admin/upload.php1,395 ▲74.19 ▼0.0392.35 ▼7.9839.71 ▼6.86
MC Login Code /wp-admin/options-general.php?page=mclogincode8252.0525.1345.08

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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
Almost there! Just fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/mc-login-code/inc/mc6397lc_sendEmail-2.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/mc-login-code/inc/mc6397lc_sendEmail.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: login form, login protection, login code, custom login form, authorization code...

mc-login-code/mc-login-code.php 92% from 13 tests

The entry point to "MC Login Code" version 2.3.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 155 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
Good job! No executable or dangerous file extensions detected175 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP45333175

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions10
▷ Named functions770.00%
▷ Anonymous functions330.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin