83% my-company-files-login

Code Review | MyCompanyFiles Login Form

WordPress plugin MyCompanyFiles Login Form scored83%from 54 tests.

About plugin

  • Plugin page: my-company-files-...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.8.2
  • WordPress version: 6.3.1
  • First release: Mar 10, 2020
  • Latest release: Nov 29, 2021
  • Number of updates: 10
  • Update frequency: every 62.9 days
  • Top authors: lagriffedigitale (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /630 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.14ms] Passed 4 tests

An overview of server-side resources used by MyCompanyFiles Login Form
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0539.76 ▼3.02
Dashboard /wp-admin3.36 ▲0.0147.94 ▼20.90
Posts /wp-admin/edit.php3.41 ▲0.0556.77 ▲4.65
Add New Post /wp-admin/post-new.php5.96 ▲0.07106.10 ▲3.39
Media Library /wp-admin/upload.php3.28 ▲0.0538.14 ▲3.97
MyCompanyFiles settings page /wp-admin/options-general.php?page=mcf_login3.2631.43

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

MyCompanyFiles Login Form: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,920 ▲17413.91 ▼0.707.77 ▲5.7439.16 ▼8.37
Dashboard /wp-admin2,218 ▲445.83 ▲0.2692.98 ▼2.5743.85 ▲0.90
Posts /wp-admin/edit.php2,128 ▲282.27 ▲0.2443.22 ▲6.5136.80 ▼1.97
Add New Post /wp-admin/post-new.php6,211 ▲4,68319.32 ▼3.84941.98 ▲249.7739.64 ▼16.10
Media Library /wp-admin/upload.php1,417 ▲204.53 ▲0.3497.66 ▼1.9645.09 ▲2.96
MyCompanyFiles settings page /wp-admin/options-general.php?page=mcf_login1,2022.3755.0128.91

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • mcf_login_options

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
Please fix the following
  • 9× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/my-company-files-login/blocks/mcf-login-form/mcf-login-gutenberg.php:23
    • > PHP Notice
      Undefined variable: form_key in wp-content/plugins/my-company-files-login/templates/mcf-login-form.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/my-company-files-login/templates/mcf-recovery-form.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/my-company-files-login/templates/mcf-login-settings-page.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/my-company-files-login/templates/mcf-login-block.php:12
    • > PHP Notice
      Undefined variable: recovery_form_key in wp-content/plugins/my-company-files-login/templates/mcf-recovery-form.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/my-company-files-login/mcf-login.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/my-company-files-login/mcf-login-settings.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/my-company-files-login/templates/mcf-login-form.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test


Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (Front plug-in generation), #2 (Form display on front), #3 (Settings page)
  • Tags: You are using too many tags: 13 tag instead of maximum 10
The official readme.txt is a good inspiration

my-company-files-login/mcf-login.php 92% from 13 tests

"MyCompanyFiles Login Form" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("my-company-files-login.php" instead of "mcf-login.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin673 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PO File13232104

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions15100.00%
▷ Anonymous functions00.00%
▷ 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 compressed PNG files occupy 0.07MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png39.26KB38.49KB▼ 1.96%
screenshot-2.png19.83KB18.88KB▼ 4.81%
screenshot-1.png10.31KB9.71KB▼ 5.89%