Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.85MB] [CPU: ▲0.35ms] Passed 4 tests
Server-side resources used by Rublon Multi-Factor Authentication (MFA)
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.32 ▲0.85 | 42.64 ▲2.20 |
Dashboard /wp-admin | 4.15 ▲0.85 | 50.57 ▲4.16 |
Posts /wp-admin/edit.php | 4.27 ▲0.91 | 50.04 ▲1.81 |
Add New Post /wp-admin/post-new.php | 6.75 ▲0.87 | 93.99 ▼6.77 |
Media Library /wp-admin/upload.php | 4.08 ▲0.85 | 43.63 ▲8.79 |
Server storage [IO: ▲0.99MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 134 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
rublon2factor_settings |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
rublon2factor_additional_settings |
can_compress_scripts |
rublon2factor_transient_settings |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Rublon Multi-Factor Authentication (MFA)
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,993 ▲231 | 13.40 ▼0.76 | 9.42 ▲7.49 | 39.75 ▼6.48 |
Dashboard /wp-admin | 2,289 ▲118 | 5.76 ▲0.12 | 83.75 ▼16.60 | 68.00 ▲20.47 |
Posts /wp-admin/edit.php | 2,205 ▲105 | 1.87 ▼0.15 | 28.56 ▼12.39 | 31.96 ▼0.77 |
Add New Post /wp-admin/post-new.php | 1,618 ▲92 | 23.16 ▼0.05 | 791.62 ▲42.21 | 58.27 ▲5.54 |
Media Library /wp-admin/upload.php | 1,503 ▲100 | 4.13 ▼0.09 | 114.50 ▲10.81 | 47.03 ▲1.27 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
- 65× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Rublon_WordPress\\Libs\\Classes\\Confirmations\\RublonConfirmStrategyForm' not found in wp-content/plugins/rublon/includes/Libs/Classes/Confirmations/Strategy/SettingsUpdate.php:7
- > PHP Fatal error
Uncaught Error: Class 'Rublon\\Core\\Exceptions\\Api\\APIException' not found in wp-content/plugins/rublon/vendor/rublon/rublon-sdk-php/Rublon/Core/Exceptions/Api/InvalidSignatureException.php:11
- > PHP Fatal error
Uncaught Error: Class 'Rublon\\Core\\Exceptions\\Api\\APIException' not found in wp-content/plugins/rublon/vendor/rublon/rublon-sdk-php/Rublon/Core/Exceptions/Api/SubscriptionExpiredException.php:11
- > PHP Fatal error
Uncaught Error: Class 'Rublon\\Core\\Exceptions\\Api\\APIException' not found in wp-content/plugins/rublon/vendor/rublon/rublon-sdk-php/Rublon/Core/Exceptions/Api/UserNotFoundException.php:11
- > PHP Fatal error
Uncaught Error: Class 'Rublon\\Core\\Exceptions\\Api\\APIException' not found in wp-content/plugins/rublon/vendor/rublon/rublon-sdk-php/Rublon/Core/Exceptions/Api/AccessTokenExpiredException.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function Rublon_WordPress\\Libs\\Classes\\add_action() in wp-content/plugins/rublon/includes/Libs/Classes/RublonFlashMessage.php:57
- > PHP Fatal error
Uncaught Error: Class 'Rublon\\Core\\Exceptions\\Api\\APIException' not found in wp-content/plugins/rublon/vendor/rublon/rublon-sdk-php/Rublon/Core/Exceptions/Api/MissingHeaderException.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/rublon/rublon2factor.php:17
- > PHP Fatal error
Uncaught Error: Class 'Rublon_WordPress\\Libs\\RublonConsumerRegistration\\RublonConsumerRegistrationCommon' not found in wp-content/plugins/rublon/includes/Libs/RublonConsumerRegistration/RublonSubprojectRegistration.php:9
- > PHP Fatal error
Uncaught Error: Class 'Rublon\\Core\\Exceptions\\Client\\RublonClientException' not found in wp-content/plugins/rublon/vendor/rublon/rublon-sdk-php/Rublon/Core/Exceptions/Client/RublonClientResponseException.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Tags: Too many tags (34 tag instead of maximum 10); only the first 5 tags are used in your directory listing
rublon/rublon2factor.php 85% from 13 tests
Analyzing the main PHP file in "Rublon Multi-Factor Authentication (MFA)" version 4.4.3
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("rublon.php" instead of "rublon2factor.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 181 characters long)
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 plugin10,876 lines of code in 116 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 98 | 2,267 | 3,982 | 7,993 |
HTML | 1 | 76 | 0 | 968 |
CSS | 8 | 123 | 0 | 700 |
JavaScript | 4 | 105 | 2 | 563 |
Markdown | 1 | 269 | 0 | 445 |
SVG | 2 | 3 | 2 | 116 |
JSON | 2 | 0 | 0 | 91 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 11.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 435.00 |
Average method complexity | 2.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 16 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 89 | |
▷ Abstract classes | 9 | 10.11% |
▷ Concrete classes | 80 | 89.89% |
▷ Final classes | 0 | 0.00% |
Methods | 547 | |
▷ Static methods | 259 | 47.35% |
▷ Public methods | 403 | 73.67% |
▷ Protected methods | 90 | 16.45% |
▷ Private methods | 54 | 9.87% |
Functions | 52 | |
▷ Named functions | 51 | 98.08% |
▷ Anonymous functions | 1 | 1.92% |
Constants | 297 | |
▷ Global constants | 7 | 2.36% |
▷ Class constants | 290 | 97.64% |
▷ Public constants | 290 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/rublon_badge_32.png | 2.49KB | 1.60KB | ▼ 35.92% |
assets/images/toggle-off.png | 1.66KB | 1.21KB | ▼ 27.42% |
assets/images/unlocked.png | 0.34KB | 0.25KB | ▼ 24.93% |
assets/images/rublon_adam@2x.png | 47.43KB | 16.53KB | ▼ 65.15% |
assets/images/toggle-on.png | 2.24KB | 1.89KB | ▼ 15.72% |