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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.52MB] [CPU: ▼1.94ms] Passed 4 tests
Server-side resources used by ALMEFY: Two-Factor Authentication in one step. Without password
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.94 ▲0.48 | 39.83 ▲2.02 |
Dashboard /wp-admin | 3.85 ▲0.55 | 61.77 ▲8.08 |
Posts /wp-admin/edit.php | 3.90 ▲0.54 | 53.92 ▼3.15 |
Add New Post /wp-admin/post-new.php | 6.42 ▲0.53 | 89.10 ▼13.44 |
Media Library /wp-admin/upload.php | 3.77 ▲0.54 | 42.51 ▲6.82 |
Server storage [IO: ▲4.92MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 144 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for ALMEFY: Two-Factor Authentication in one step. Without password
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,440 ▲694 | 13.63 ▼0.81 | 2.82 ▲1.22 | 42.33 ▲3.82 |
Dashboard /wp-admin | 2,613 ▲422 | 5.90 ▲0.00 | 106.19 ▲3.35 | 41.73 ▲0.09 |
Posts /wp-admin/edit.php | 2,503 ▲414 | 2.10 ▲0.09 | 40.53 ▲4.87 | 31.97 ▼4.72 |
Add New Post /wp-admin/post-new.php | 1,568 ▲26 | 23.13 ▲5.01 | 689.05 ▲67.90 | 51.61 ▼0.10 |
Media Library /wp-admin/upload.php | 1,801 ▲413 | 4.30 ▲0.00 | 98.51 ▼5.48 | 43.24 ▼1.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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
Please take a closer look at the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/almefy-me/src/Mail/connect_device_template.php
- > /wp-content/plugins/almefy-me/src/Pages/Settings/icon.php
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Almefy\\Exception\\TransportException' not found in wp-content/plugins/almefy-me/vendor/almefy/sdk/src/Exception/NetworkException.php:20
- > PHP Fatal error
Uncaught Error: Class 'Almefy\\Exception\\TransportException' not found in wp-content/plugins/almefy-me/vendor/almefy/client/src/Exception/NetworkException.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/almefy-me/src/Pages/Settings/tab_03_howtouse.php:1
- > PHP Fatal error
Uncaught Error: Class 'Almefy\\Exception\\TransportException' not found in wp-content/plugins/almefy-me/vendor/almefy/client/src/Exception/ServerException.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function do_settings_fields() in wp-content/plugins/almefy-me/src/Pages/Settings/tab_02_settings.php:6
- > PHP Fatal error
Uncaught Error: Class 'Almefy\\Exception\\TransportException' not found in wp-content/plugins/almefy-me/vendor/almefy/sdk/src/Exception/ServerException.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/almefy-me/src/Pages/Settings/tab_01_keysecret.php:3
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: login, signin, authentication, two-factor-authentication
almefy-me/plugin.php 92% from 13 tests
The primary PHP file in "ALMEFY: Two-Factor Authentication in one step. Without password" version 0.16.5 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("almefy-me.php" instead of "plugin.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
Good job! No executable or dangerous file extensions detected9,853 lines of code in 93 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 58 | 1,143 | 1,316 | 4,382 |
SVG | 14 | 352 | 1 | 3,680 |
PO File | 2 | 254 | 308 | 814 |
CSS | 10 | 116 | 19 | 472 |
Markdown | 2 | 76 | 0 | 198 |
JavaScript | 3 | 63 | 291 | 184 |
JSON | 4 | 0 | 0 | 123 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 10.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 41 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 41 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 222 | |
▷ Static methods | 39 | 17.57% |
▷ Public methods | 194 | 87.39% |
▷ Protected methods | 7 | 3.15% |
▷ Private methods | 21 | 9.46% |
Functions | 63 | |
▷ Named functions | 2 | 3.17% |
▷ Anonymous functions | 61 | 96.83% |
Constants | 23 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 23 | 100.00% |
▷ Public constants | 23 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/qr-play-store.png | 10.02KB | 5.07KB | ▼ 49.45% |
assets/img/qr-app-store.png | 9.92KB | 5.11KB | ▼ 48.45% |
assets/img/si.png | 23.12KB | 9.48KB | ▼ 58.99% |
assets/img/qr.png | 12.76KB | 5.99KB | ▼ 53.08% |
assets/img/getapple.png | 2.44KB | 1.31KB | ▼ 46.46% |