Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.27MB] [CPU: ▼0.90ms] Passed 4 tests
This is a short check of server-side resources used by GetOTP OTP Verification
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 38.56 ▼5.52 |
Dashboard /wp-admin | 3.62 ▲0.31 | 49.84 ▼5.56 |
Posts /wp-admin/edit.php | 3.67 ▲0.31 | 57.54 ▲10.58 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.27 | 92.91 ▲2.96 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 40.76 ▲4.51 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for GetOTP OTP Verification
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,909 ▲148 | 13.41 ▼0.98 | 7.87 ▲5.71 | 41.20 ▼3.41 |
Dashboard /wp-admin | 2,230 ▲56 | 5.59 ▼0.00 | 94.35 ▼6.15 | 38.16 ▼3.70 |
Posts /wp-admin/edit.php | 2,137 ▲40 | 2.02 ▲0.07 | 42.23 ▲5.76 | 38.22 ▲3.49 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 23.10 ▼0.23 | 689.01 ▲23.44 | 52.67 ▼2.15 |
Media Library /wp-admin/upload.php | 1,440 ▲37 | 4.20 ▼0.00 | 106.26 ▲4.13 | 45.91 ▲0.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
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
Even though no errors were found, 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 fix the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/getotp-otp-verification/admin/partials/getotp-admin-display.php
- > /wp-content/plugins/getotp-otp-verification/public/partials/getotp-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Contributors: Plugin contributors field is missing
getotp-otp-verification/getotp.php 85% from 13 tests
Analyzing the main PHP file in "GetOTP OTP Verification" version 1.4.1
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("getotp-otp-verification.php" instead of "getotp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,314 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 504 | 705 | 1,222 |
JavaScript | 7 | 35 | 56 | 92 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 28.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 137.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 82 | |
▷ Static methods | 2 | 2.44% |
▷ Public methods | 53 | 64.63% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 29 | 35.37% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin