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
This plugin's installer ran successfully
Server metrics [RAM: ▼1.63MB] [CPU: ▼48.68ms] Passed 4 tests
Server-side resources used by Plugin Name: Login With Token
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.36 ▼1.11 | 6.72 ▼33.25 |
Dashboard /wp-admin | 2.38 ▼0.93 | 8.04 ▼42.74 |
Posts /wp-admin/edit.php | 2.38 ▼0.98 | 9.11 ▼36.55 |
Add New Post /wp-admin/post-new.php | 2.38 ▼3.51 | 8.81 ▼82.17 |
Media Library /wp-admin/upload.php | 2.38 ▼0.86 | 6.80 ▼26.98 |
Test Gateway /wp-admin/admin.php?page=test_gateway | 2.38 | 7.09 |
Instructions /wp-admin/admin.php?page=submenu_settings | 2.38 | 8.20 |
Settings /wp-admin/admin.php?page=menu_plugin | 2.38 | 9.15 |
Log /wp-admin/admin.php?page=sms_log | 2.38 | 7.79 |
Server storage [IO: ▲0.62MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Plugin Name: Login With Token
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,924 ▲189 | 14.04 ▼0.34 | 5.74 ▲3.92 | 40.12 ▼10.65 |
Dashboard /wp-admin | 2,246 ▲58 | 5.88 ▲0.96 | 104.10 ▼9.68 | 40.70 ▼4.59 |
Posts /wp-admin/edit.php | 2,129 ▲40 | 2.03 ▲0.00 | 40.78 ▼3.41 | 39.24 ▲3.69 |
Add New Post /wp-admin/post-new.php | 1,573 ▲59 | 18.27 ▲0.71 | 631.31 ▼76.72 | 45.51 ▼6.88 |
Media Library /wp-admin/upload.php | 1,428 ▲43 | 4.20 ▲0.03 | 95.03 ▼7.92 | 40.77 ▼3.65 |
Test Gateway /wp-admin/admin.php?page=test_gateway | 824 | 1.72 | 27.24 | 27.28 |
Instructions /wp-admin/admin.php?page=submenu_settings | 901 | 2.07 | 25.53 | 30.73 |
Settings /wp-admin/admin.php?page=menu_plugin | 984 | 1.83 | 25.76 | 28.68 |
Log /wp-admin/admin.php?page=sms_log | 797 | 2.07 | 24.42 | 24.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sms_log
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sms_log
- > Notice in wp-content/plugins/login-with-token/ts-access-with-token.php+618
Undefined index: tsa_token
- > GET request to /wp-admin/admin.php?page=sms_log
- > Warning in wp-content/plugins/login-with-token/ts-access-with-token.php+1072
file_get_contents(wp-content/uploads/token.log): failed to open stream: No such file or directory
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
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 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== Plugin Name: Login With Token ===
)
login-with-token/ts-access-with-token.php 92% from 13 tests
The main PHP file in "Plugin Name: Login With Token" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("login-with-token.php" instead of "ts-access-with-token.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,160 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 260 | 115 | 982 |
CSS | 1 | 19 | 3 | 83 |
Markdown | 1 | 26 | 0 | 57 |
JavaScript | 2 | 22 | 11 | 38 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 31.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 3.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 1 | 33.33% |
▷ Concrete classes | 2 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 45 | 95.74% |
▷ Protected methods | 2 | 4.26% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin