Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.50MB] [CPU: ▼2.28ms] Passed 4 tests
A check of server-side resources used by Magic Login Link
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.97 ▲0.51 | 41.78 ▼7.85 |
Dashboard /wp-admin | 3.81 ▲0.50 | 53.35 ▼0.16 |
Posts /wp-admin/edit.php | 3.86 ▲0.50 | 56.24 ▲2.17 |
Add New Post /wp-admin/post-new.php | 6.39 ▲0.50 | 99.38 ▼3.26 |
Media Library /wp-admin/upload.php | 3.73 ▲0.50 | 42.49 ▲2.68 |
Server storage [IO: ▲1.34MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 254 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Magic Login Link
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.71 ▲0.18 | 1.59 ▼0.64 | 41.92 ▼6.61 |
Dashboard /wp-admin | 2,198 ▲24 | 5.61 ▼0.06 | 92.23 ▼1.99 | 40.64 ▲0.53 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.09 ▲0.09 | 40.44 ▼1.88 | 37.68 ▼1.13 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.02 ▼0.08 | 599.60 ▼77.89 | 53.96 ▼7.13 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.19 ▲0.00 | 101.36 ▼14.20 | 44.10 ▼3.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 50% 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)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/magic-link-login/vendor/smarty/smarty/demo/index.php
- 81× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Smarty_Internal_CompileBase' not found in wp-content/plugins/magic-link-login/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_call.php:17
- > PHP Fatal error
Uncaught Error: Class 'Smarty_Internal_CompileBase' not found in wp-content/plugins/magic-link-login/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_object_function.php:17
- > PHP Fatal error
Uncaught Error: Class 'Smarty_CacheResource' not found in wp-content/plugins/magic-link-login/vendor/smarty/smarty/libs/sysplugins/smarty_cacheresource_keyvaluestore.php:31
- > PHP Fatal error
Uncaught Error: Class 'Smarty_Internal_Resource_File' not found in wp-content/plugins/magic-link-login/vendor/smarty/smarty/libs/sysplugins/smarty_internal_resource_php.php:12
- > PHP Fatal error
Uncaught Error: Class 'Smarty_Internal_Data' not found in wp-content/plugins/magic-link-login/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php:47
- > PHP Fatal error
Uncaught Error: Class 'Smarty_CacheResource' not found in wp-content/plugins/magic-link-login/vendor/smarty/smarty/libs/sysplugins/smarty_internal_cacheresource_file.php:18
- > PHP Fatal error
Uncaught Error: Class 'Smarty_Internal_CompileBase' not found in wp-content/plugins/magic-link-login/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_special_variable.php:17
- > PHP Fatal error
Uncaught Error: Class 'Smarty_Internal_CompileBase' not found in wp-content/plugins/magic-link-login/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_include_php.php:17
- > PHP Fatal error
Uncaught Error: Class 'Smarty_Internal_Resource_Extends' not found in wp-content/plugins/magic-link-login/vendor/smarty/smarty/demo/plugins/resource.extendsall.php:11
- > PHP Fatal error
Uncaught Error: Class 'Smarty_Resource' not found in wp-content/plugins/magic-link-login/vendor/smarty/smarty/libs/sysplugins/smarty_internal_resource_registered.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% 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
4 plugin tags: magic, login, passwordless login, magic login
magic-link-login/amc-spark.php 77% from 13 tests
The main PHP script in "Magic Login Link" version 1.1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Description: Please keep the plugin description shorter than 140 characters (currently 161 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("magic-link-login.php" instead of "amc-spark.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected18,745 lines of code in 236 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 226 | 2,728 | 12,116 | 18,330 |
Smarty | 3 | 46 | 2 | 203 |
JSON | 2 | 0 | 0 | 71 |
Markdown | 1 | 20 | 0 | 45 |
PO File | 1 | 7 | 8 | 41 |
Sass | 1 | 3 | 0 | 23 |
CSS | 1 | 3 | 1 | 17 |
JavaScript | 1 | 1 | 1 | 15 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 14.94 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 182.00 |
Average method complexity | 3.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 91.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 189 | |
▷ Abstract classes | 12 | 6.35% |
▷ Concrete classes | 177 | 93.65% |
▷ Final classes | 0 | 0.00% |
Methods | 967 | |
▷ Static methods | 35 | 3.62% |
▷ Public methods | 895 | 92.55% |
▷ Protected methods | 49 | 5.07% |
▷ Private methods | 23 | 2.38% |
Functions | 62 | |
▷ Named functions | 61 | 98.39% |
▷ Anonymous functions | 1 | 1.61% |
Constants | 164 | |
▷ Global constants | 7 | 4.27% |
▷ Class constants | 157 | 95.73% |
▷ Public constants | 157 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin