Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- This plugin did not install gracefully
- > Parse error in wp-content/plugins/two-factor-authentication-with-missed-calls-spam-blocker/motp.php+263
syntax error, unexpected '}', expecting end of file
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.20ms] Passed 4 tests
Analyzing server-side resources used by mOTP Spam Blocker
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 34.67 ▼4.23 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.36 ▼3.83 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.72 ▲5.26 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.73 ▼20.19 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.60 ▲3.46 |
Server storage [IO: ▲0.52MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by mOTP Spam Blocker
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.64 ▼0.95 | 1.85 ▲0.10 | 43.57 ▲0.40 |
Dashboard /wp-admin | 2,206 ▲14 | 5.90 ▲0.98 | 106.70 ▼1.71 | 37.50 ▼0.96 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.03 ▲0.03 | 39.58 ▼0.40 | 36.47 ▲2.90 |
Add New Post /wp-admin/post-new.php | 1,514 ▼23 | 17.89 ▼5.01 | 663.44 ▲80.54 | 62.04 ▲12.95 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.18 ▲0.02 | 92.33 ▼4.33 | 39.80 ▼1.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% 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 no errors were found, this is by no means an exhaustive test
SRP 0% 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 items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/two-factor-authentication-with-missed-calls-spam-blocker/motp_session.php
- > /wp-content/plugins/two-factor-authentication-with-missed-calls-spam-blocker/motp_push.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Parse error
syntax error, unexpected '}', expecting end of file in wp-content/plugins/two-factor-authentication-with-missed-calls-spam-blocker/motp.php on line 263
- > PHP Parse error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
- Screenshots: These screenshots do not have images: #1 (Intro), #2 (Signup screen preview), #3 (Signup verification screen preview), #4 (Comments section), #5 (Misc), #6 (Admin panel)
two-factor-authentication-with-missed-calls-spam-blocker/motp.php 92% from 13 tests
Analyzing the main PHP file in "mOTP Spam Blocker" version 1.0
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("two-factor-authentication-with-missed-calls-spam-blocker.php" instead of "motp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin615 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 129 | 83 | 572 |
JavaScript | 1 | 8 | 0 | 43 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
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 | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 77.80KB | 30.15KB | ▼ 61.24% |