Benchmarks
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 39.76 ▼3.02 |
Dashboard /wp-admin | 3.36 ▲0.01 | 47.94 ▼20.90 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 56.77 ▲4.65 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 106.10 ▲3.39 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 38.14 ▲3.97 |
MyCompanyFiles settings page /wp-admin/options-general.php?page=mcf_login | 3.26 | 31.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 |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
mcf_login_options |
Browser metrics Passed 4 tests
MyCompanyFiles Login Form: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,920 ▲174 | 13.91 ▼0.70 | 7.77 ▲5.74 | 39.16 ▼8.37 |
Dashboard /wp-admin | 2,218 ▲44 | 5.83 ▲0.26 | 92.98 ▼2.57 | 43.85 ▲0.90 |
Posts /wp-admin/edit.php | 2,128 ▲28 | 2.27 ▲0.24 | 43.22 ▲6.51 | 36.80 ▼1.97 |
Add New Post /wp-admin/post-new.php | 6,211 ▲4,683 | 19.32 ▼3.84 | 941.98 ▲249.77 | 39.64 ▼16.10 |
Media Library /wp-admin/upload.php | 1,417 ▲20 | 4.53 ▲0.34 | 97.66 ▼1.96 | 45.09 ▲2.96 |
MyCompanyFiles settings page /wp-admin/options-general.php?page=mcf_login | 1,202 | 2.37 | 55.01 | 28.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
- > PHP Fatal error
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
Optimizations
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 42 | 94 | 305 |
CSS | 1 | 36 | 3 | 215 |
PO File | 1 | 32 | 32 | 104 |
JavaScript | 3 | 6 | 1 | 49 |
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 code | 0.27 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 39.26KB | 38.49KB | ▼ 1.96% |
screenshot-2.png | 19.83KB | 18.88KB | ▼ 4.81% |
screenshot-1.png | 10.31KB | 9.71KB | ▼ 5.89% |