Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- Install procedure had errors
- > Parse error in wp-content/plugins/salam/index.php+102
syntax error, unexpected end of file
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.50ms] Passed 4 tests
A check of server-side resources used by Salam - OTP Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 42.71 ▼3.11 |
Dashboard /wp-admin | 3.31 ▲0.00 | 54.41 ▲1.21 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 51.30 ▼1.50 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 95.73 ▼3.03 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.50 ▼2.35 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Salam - OTP Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.19 ▼0.15 | 1.71 ▼0.47 | 42.60 ▼2.94 |
Dashboard /wp-admin | 2,198 ▲21 | 5.59 ▼0.08 | 92.59 ▼9.45 | 40.36 ▼9.71 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▲0.00 | 40.55 ▲3.01 | 35.98 ▲2.66 |
Add New Post /wp-admin/post-new.php | 1,409 ▼117 | 17.86 ▼5.23 | 640.73 ▼46.54 | 45.77 ▼8.99 |
Media Library /wp-admin/upload.php | 1,391 ▼9 | 4.15 ▼0.07 | 99.73 ▼6.02 | 44.12 ▼5.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 | 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 perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/salam/template/login-widget.php
- 4× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined index: mobile in wp-content/plugins/salam/login-otp.php on line 4
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/salam/index.php on line 102
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/salam/login-otp.php:20
- > PHP Notice
Undefined index: otpp in wp-content/plugins/salam/login-otp.php on line 12
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: Add an image for screenshot #1 (This screen shot description corresponds to screenshot.(png). Note that the screenshot is stored in the / directory.)
salam/index.php 92% from 13 tests
The main PHP script in "Salam - OTP Plugin" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("salam.php" instead of "index.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 plugin231 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 15 | 27 | 202 |
JavaScript | 1 | 6 | 2 | 29 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
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 | 5 | |
▷ Named functions | 5 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.22MB with 0.16MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot.png | 221.25KB | 59.13KB | ▼ 73.28% |