Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.17MB] [CPU: ▼3.47ms] Passed 4 tests
This is a short check of server-side resources used by Login by Magic
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 35.35 ▼6.64 |
Dashboard /wp-admin | 3.52 ▲0.22 | 54.14 ▲4.58 |
Posts /wp-admin/edit.php | 3.57 ▲0.22 | 53.83 ▼2.07 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.16 | 98.03 ▼5.02 |
Media Library /wp-admin/upload.php | 3.38 ▲0.16 | 35.80 ▼0.16 |
Login by Magic /wp-admin/options-general.php?page=magiclabs | 3.35 | 31.55 |
Server storage [IO: ▲3.32MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 144 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Login by Magic
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 13.20 ▼1.17 | 1.62 ▼0.21 | 42.53 ▲0.52 |
Dashboard /wp-admin | 2,210 ▲22 | 4.86 ▼0.01 | 118.46 ▲13.82 | 41.76 ▼1.16 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.97 ▼0.08 | 41.25 ▲3.46 | 35.23 ▼0.90 |
Add New Post /wp-admin/post-new.php | 1,536 ▼6 | 23.11 ▲4.70 | 649.71 ▲13.26 | 55.49 ▲0.18 |
Media Library /wp-admin/upload.php | 1,386 ▼5 | 4.22 ▲0.03 | 96.28 ▼0.18 | 39.89 ▼0.50 |
Login by Magic /wp-admin/options-general.php?page=magiclabs | 873 | 2.05 | 23.89 | 27.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 58× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Elliptic\\Curve\\PresetCurve' not found in wp-content/plugins/magiclabs/vendor/simplito/elliptic-php/lib/Curves.php:23
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/magiclabs/vendor/simplito/elliptic-php/tests/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/magiclabs/vendor/simplito/elliptic-php/tests/ED25519Test.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/magiclabs/vendor/magiclabs/magic-admin-php/tests/Util/HttpTest.php:9
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/magiclabs/vendor/magiclabs/magic-admin-php/tests/Exception/DidTokenExceptionTest.php:9
- > PHP Fatal error
Uncaught Error: Class 'Elliptic\\Curve\\BaseCurve' not found in wp-content/plugins/magiclabs/vendor/simplito/elliptic-php/lib/Curve/ShortCurve.php:10
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/magiclabs/vendor/magiclabs/magic-admin-php/tests/MagicResponseTest.php:9
- > PHP Fatal error
Uncaught Exception: Extension gmp not loaded in wp-content/plugins/magiclabs/vendor/simplito/bigint-wrapper-php/lib/BigInteger.php:22
- > PHP Fatal error
Uncaught Error: Class 'BI\\BigInteger' not found in wp-content/plugins/magiclabs/vendor/simplito/bigint-wrapper-php/test/test.php:24
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/magiclabs/vendor/magiclabs/magic-admin-php/tests/Exception/ForbiddenExceptionTest.php:9
- > PHP Fatal error
Uncaught Error: Class 'Elliptic\\Curve\\BaseCurve\\Point' not found in wp-content/plugins/magiclabs/vendor/simplito/elliptic-php/lib/Curve/ShortCurve/JPoint.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: authentication, login, security, passwordless, magiclink
magiclabs/wp-magic.php 77% from 13 tests
This is the main PHP file of "Login by Magic" version 1.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("magiclabs.php" instead of "wp-magic.php")
- Git Repository: There should be no Git repositories present in your plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin14,116 lines of code in 126 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 94 | 1,851 | 1,134 | 12,198 |
JSON | 9 | 0 | 0 | 877 |
Markdown | 14 | 318 | 0 | 746 |
JavaScript | 2 | 8 | 4 | 129 |
YAML | 3 | 13 | 0 | 61 |
XML | 2 | 4 | 0 | 50 |
CSS | 1 | 6 | 0 | 45 |
make | 1 | 3 | 0 | 10 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 13.34 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 162.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 18 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 79 | |
▷ Abstract classes | 2 | 2.53% |
▷ Concrete classes | 77 | 97.47% |
▷ Final classes | 22 | 28.57% |
Methods | 677 | |
▷ Static methods | 107 | 15.81% |
▷ Public methods | 626 | 92.47% |
▷ Protected methods | 23 | 3.40% |
▷ Private methods | 28 | 4.14% |
Functions | 67 | |
▷ Named functions | 51 | 76.12% |
▷ Anonymous functions | 16 | 23.88% |
Constants | 26 | |
▷ Global constants | 17 | 65.38% |
▷ Class constants | 9 | 34.62% |
▷ Public constants | 3 | 33.33% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin