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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.11MB] [CPU: ▼5.84ms] Passed 4 tests
A check of server-side resources used by TS login
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 43.77 ▼0.90 |
Dashboard /wp-admin | 3.41 ▲0.10 | 50.39 ▼0.28 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 51.54 ▼3.86 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 87.65 ▼17.51 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 38.80 ▼1.08 |
TS Login /wp-admin/admin.php?page=tipster_script_login | 3.37 | 45.74 |
Config /wp-admin/admin.php?page=tsl_config | 3.37 | 42.11 |
Server storage [IO: ▲3.18MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 38 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_tsl_login_register |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for TS login
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,067 ▲321 | 13.81 ▼0.77 | 11.68 ▲9.86 | 40.86 ▼2.58 |
Dashboard /wp-admin | 2,233 ▲45 | 4.86 ▼0.23 | 105.94 ▼3.80 | 40.44 ▼3.45 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.04 ▼0.00 | 40.81 ▲1.28 | 35.67 ▲1.82 |
Add New Post /wp-admin/post-new.php | 1,569 ▲55 | 18.09 ▲0.57 | 607.76 ▼81.98 | 64.44 ▲12.26 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.30 ▲0.13 | 99.19 ▼4.62 | 44.78 ▼2.58 |
TS Login /wp-admin/admin.php?page=tipster_script_login | 3,610 | 3.99 | 130.09 | 40.22 |
Config /wp-admin/admin.php?page=tsl_config | 3,613 | 3.96 | 128.40 | 38.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_tsl_login_register
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ts-login/php/tsl_ajax.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/ts-login/php/tsl_config.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ts-login/php/templates/login2.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ts-login/php/templates/login3.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ts-login/php/templates/login1.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ts-login/php/templates/register3.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ts-login/php/templates/register2.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ts-login/php/templates/register1.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ts-login/php/Tsl_login_register.php:2
- > PHP Fatal error
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: register, different styles, popup, google recaptcha, login
ts-login/tipster_script_login.php 92% from 13 tests
The main file in "TS login" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("ts-login.php" instead of "tipster_script_login.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin10,656 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 0 | 9,552 |
PHP | 11 | 39 | 32 | 808 |
JavaScript | 4 | 15 | 9 | 177 |
CSS | 4 | 5 | 13 | 88 |
Markdown | 1 | 16 | 0 | 31 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 2.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 1 | 14.29% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
No PNG files were detected