Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲1.47MB] [CPU: ▲2.72ms] Passed 4 tests
This is a short check of server-side resources used by RapID Secure Login
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.07 ▲1.61 | 66.32 ▲15.07 |
Dashboard /wp-admin | 4.78 ▲1.43 | 56.66 ▼5.50 |
Posts /wp-admin/edit.php | 4.83 ▲1.47 | 59.00 ▲7.29 |
Add New Post /wp-admin/post-new.php | 7.38 ▲1.49 | 97.46 ▼3.69 |
Media Library /wp-admin/upload.php | 4.70 ▲1.47 | 47.30 ▲12.78 |
RapID /wp-admin/options-general.php?page=rpsl-plugin-settings | 4.61 | 45.43 |
Server storage [IO: ▲1.14MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 490 new files
Database: 4 new tables, 7 new options
New tables |
---|
wp_rpsl_certificates |
wp_rpsl_devices |
wp_rpsl_config |
wp_rpsl_sessions |
New WordPress options |
---|
widget_recent-comments |
rpsl_plugin_db_version_number |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by RapID Secure Login
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,970 ▲184 | 13.44 ▼1.15 | 8.13 ▲5.98 | 44.02 ▼8.02 |
Dashboard /wp-admin | 2,201 ▲24 | 5.59 ▼0.07 | 90.67 ▼11.35 | 39.52 ▼5.00 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 1.99 ▼0.00 | 35.54 ▼3.61 | 33.29 ▼4.94 |
Add New Post /wp-admin/post-new.php | 1,542 ▲16 | 18.04 ▼5.03 | 608.51 ▼39.97 | 79.17 ▲15.44 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.18 ▲0.02 | 97.31 ▼13.74 | 41.65 ▼2.77 |
RapID /wp-admin/options-general.php?page=rpsl-plugin-settings | 938 | 2.11 | 27.95 | 27.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The plugin did not uninstall successfully, leaving 4 tables in the database
- wp_rpsl_config
- wp_rpsl_sessions
- wp_rpsl_devices
- wp_rpsl_certificates
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- rpsl_plugin_db_version_number
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 10× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Httpful\\Handlers\\MimeHandlerAdapter' not found in wp-content/plugins/rapid-secure-login/includes/httpful/Handlers/CsvHandler.php:9
- > PHP Fatal error
Uncaught Error: Class 'Httpful\\Handlers\\MimeHandlerAdapter' not found in wp-content/plugins/rapid-secure-login/includes/httpful/Handlers/FormHandler.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/rapid-secure-login/rpsl_direct_enrolment.php:322
- > PHP Fatal error
Uncaught Error: Call to undefined function Httpful\\plugin_dir_path() in wp-content/plugins/rapid-secure-login/includes/httpful/Bootstrap.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/rapid-secure-login/rpsl_login.php:172
- > PHP Fatal error
Uncaught Error: Class 'Httpful\\Handlers\\MimeHandlerAdapter' not found in wp-content/plugins/rapid-secure-login/includes/httpful/Handlers/XmlHandler.php:11
- > PHP Fatal error
Uncaught Error: Class 'Httpful\\Handlers\\MimeHandlerAdapter' not found in wp-content/plugins/rapid-secure-login/includes/httpful/Handlers/JsonHandler.php:9
- > PHP Fatal error
Uncaught Error: Class 'Httpful\\Handlers\\MimeHandlerAdapter' not found in wp-content/plugins/rapid-secure-login/includes/httpful/Handlers/XHtmlHandler.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/rapid-secure-login/rpsl_authenticate.php:282
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/rapid-secure-login/rpsl_my_devices.php:281
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: login, authentication, security, 2 factor authentication, 2fa...
rapid-secure-login/rpsl_main.php 85% from 13 tests
The main PHP script in "RapID Secure Login" version 2.0.15 is automatically included on every request by WordPress
It is important to fix the following:
- 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: It is recommended to name the main PHP file as the plugin slug ("rapid-secure-login.php" instead of "rpsl_main.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Please make sure to remedy the following
- For security reasons, never distribute binary or executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/rapid-secure-login/includes/phpqrcode/tools/merge.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 55 | 3,187 | 4,109 | 12,747 |
JavaScript | 4 | 69 | 21 | 362 |
SVG | 1 | 0 | 1 | 128 |
CSS | 1 | 13 | 1 | 53 |
Markdown | 1 | 8 | 0 | 36 |
Bourne Shell | 1 | 0 | 0 | 2 |
DOS Batch | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 23.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 292.00 |
Average method complexity | 3.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 70 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 70 | 100.00% |
▷ Final classes | 1 | 1.43% |
Methods | 653 | |
▷ Static methods | 222 | 34.00% |
▷ Public methods | 534 | 81.78% |
▷ Protected methods | 97 | 14.85% |
▷ Private methods | 22 | 3.37% |
Functions | 124 | |
▷ Named functions | 123 | 99.19% |
▷ Anonymous functions | 1 | 0.81% |
Constants | 158 | |
▷ Global constants | 130 | 82.28% |
▷ Class constants | 28 | 17.72% |
▷ Public constants | 28 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
49 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/phpqrcode/cache/frame_9.png | 0.19KB | 0.19KB | ▼ 2.01% |
images/qr2_164.png | 2.25KB | 0.47KB | ▼ 79.32% |
images/qr2_180.png | 2.55KB | 0.53KB | ▼ 79.28% |
includes/phpqrcode/cache/frame_2.png | 0.14KB | 0.14KB | ▼ 2.08% |
includes/phpqrcode/cache/frame_21.png | 0.23KB | 0.22KB | ▼ 3.83% |