Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼7.04ms] Passed 4 tests
A check of server-side resources used by Vonage 2FA
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 37.64 ▼2.06 |
Dashboard /wp-admin | 3.36 ▲0.02 | 45.22 ▼14.68 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 47.25 ▼5.92 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 89.40 ▼5.48 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 36.86 ▲4.08 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Vonage 2FA
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,843 ▲72 | 14.75 ▲0.16 | 1.88 ▼0.09 | 44.64 ▲0.60 |
Dashboard /wp-admin | 2,246 ▲55 | 6.05 ▲1.15 | 109.42 ▲4.47 | 42.92 ▼0.47 |
Posts /wp-admin/edit.php | 2,135 ▲46 | 2.03 ▲0.01 | 41.58 ▲2.60 | 35.54 ▲0.27 |
Add New Post /wp-admin/post-new.php | 1,546 ▲32 | 23.04 ▲5.26 | 669.85 ▼26.86 | 64.33 ▲8.71 |
Media Library /wp-admin/upload.php | 1,435 ▲50 | 4.23 ▼0.01 | 104.49 ▲2.13 | 45.85 ▲3.09 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vonage-2fa/vonage2fa.php:304
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: A description for screenshot #4 is missing in vonage-2fa/assets to your readme.txt
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== vonage-2fa ===
)
vonage-2fa/vonage2fa.php 92% from 13 tests
The main PHP file in "Vonage 2FA" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("vonage-2fa.php" instead of "vonage2fa.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin288 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 56 | 14 | 241 |
Markdown | 1 | 17 | 0 | 32 |
SVG | 1 | 1 | 0 | 15 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 1 | 14.29% |
▷ Class constants | 6 | 85.71% |
▷ Public constants | 6 | 100.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
7 PNG files occupy 0.22MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/admin-menu.png | 67.61KB | 21.66KB | ▼ 67.96% |
assets/vonage-api-screenshot.png | 29.99KB | 11.30KB | ▼ 62.33% |
assets/vonage-login-pin.png | 20.12KB | 5.91KB | ▼ 70.62% |
assets/vonage-user-settings.png | 37.20KB | 11.79KB | ▼ 68.31% |
assets/vonagexwordpress.png | 37.50KB | 13.16KB | ▼ 64.91% |