63% tipster-tap

Code Review | Tipster TAP

WordPress plugin Tipster TAP scored63%from 54 tests.

About plugin

  • Plugin page: tipster-tap
  • Plugin version: 4.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.8.1
  • WordPress version: 6.3.1
  • First release: Sep 18, 2014
  • Latest release: Nov 26, 2021
  • Number of updates: 79
  • Update frequency: every 33.3 days
  • Top authors: todoapuestas (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /4,832 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.44MB] [CPU: ▲2.31ms] Passed 4 tests

Analyzing server-side resources used by Tipster TAP
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2043.16 ▲6.48
Dashboard /wp-admin3.88 ▲0.5770.12 ▲22.96
Posts /wp-admin/edit.php3.91 ▲0.5647.34 ▼2.92
Add New Post /wp-admin/post-new.php6.41 ▲0.5293.25 ▲2.20
Media Library /wp-admin/upload.php3.72 ▲0.4939.05 ▲3.47
Agregar nuevo /wp-admin/post-new.php?post_type=tipster3.9153.82
Manage Picks /wp-admin/admin.php?page=tipster-tap/manage-picks3.7131.19
Todos los tipster /wp-admin/edit.php?post_type=tipster3.7637.68
Categorias de Tipsters /wp-admin/edit-tags.php?taxonomy=tipsters&post_type=tipster3.7136.73
Informacion /wp-admin/admin.php?page=tipster-tap3.6930.75
Troubleshoot /wp-admin/admin.php?page=tipster-tap/troubleshoot3.7028.66
Manage Tipsters /wp-admin/admin.php?page=tipster-tap/manage-tipsters3.7434.09

Server storage [IO: ▲12.49MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 316 new files
Database: 2 new tables, 7 new options
New tables
wp_picks
statistics
New WordPress options
widget_recent-posts
theysaidso_admin_options
tipster_tap_version
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Tipster TAP
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,869 ▲12313.31 ▼0.984.48 ▲2.4648.75 ▲1.87
Dashboard /wp-admin2,272 ▲844.86 ▲0.02110.16 ▼2.5540.49 ▼5.99
Posts /wp-admin/edit.php2,160 ▲682.01 ▲0.0040.02 ▲5.1135.12 ▲1.79
Add New Post /wp-admin/post-new.php1,585 ▲6318.18 ▼4.85629.12 ▲19.4335.61 ▼18.05
Media Library /wp-admin/upload.php1,457 ▲724.20 ▼0.0098.30 ▼7.6042.42 ▼0.76
Agregar nuevo /wp-admin/post-new.php?post_type=tipster2,3687.94190.7978.63
Manage Picks /wp-admin/admin.php?page=tipster-tap/manage-picks1,7502.7775.6538.87
Todos los tipster /wp-admin/edit.php?post_type=tipster1,1381.9531.6330.47
Categorias de Tipsters /wp-admin/edit-tags.php?taxonomy=tipsters&post_type=tipster1,3312.1425.4828.35
Informacion /wp-admin/admin.php?page=tipster-tap8772.0223.4427.95
Troubleshoot /wp-admin/admin.php?page=tipster-tap/troubleshoot8842.0323.5125.02
Manage Tipsters /wp-admin/admin.php?page=tipster-tap/manage-tipsters8792.0624.0626.24

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The plugin did not uninstall successfully, leaving 2 tables in the database
    • statistics
    • wp_picks
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • tipster_tap_version
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 25% 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/tipster-tap/public/views/public.php
  • 9× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/tipster-tap/admin/views/troubleshoot.php:45
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_transient() in wp-content/plugins/tipster-tap/admin/views/troubleshoot_cache_information.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/tipster-tap/admin/views/troubleshoot_request_bookies.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_posts() in wp-content/plugins/tipster-tap/admin/views/manage-picks.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_posts() in wp-content/plugins/tipster-tap/admin/views/manage-tipsters.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/tipster-tap/admin/views/admin.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/tipster-tap/admin/views/troubleshoot_request_competitions.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/tipster-tap/admin/views/troubleshoot_request_sports.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/tipster-tap/admin/views/update-picks-information.php:18

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=tipster-tap/manage-picks
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: wpApiSettings is not defined" "ReferenceError: wpApiSettings is not defined\n at executeFiltrar (/wp-content/plugins/tipster-tap/admin/assets/js/manage-pick.js?ver=4.2.2:97:24)\n at HTMLSelectElement.\u003Canonymous> (/wp-content/plugins/tipster-tap/admin/assets/js/manage-pick.js?ver=4.2.2:121:32)\n at Function.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:3129)\n at e.\u003Ccomputed>.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:1594)\n at handleTipstersSelect (/wp-content/plugins/tipster-tap/admin/assets/js/manage-pick.js?ver=4.2.2:121:14)\n at Object.init (/wp-content/plugins/tipster-tap/admin/assets/js/manage-pick.js?ver=4.2.2:131:13)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/tipster-tap/admin/assets/js/manage-pick.js?ver=4.2.2:139:17)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/admin.php?page=tipster-tap/manage-picks
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught ReferenceError: wpApiSettings is not defined

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: picks, tipster

tipster-tap/tipster-tap.php Passed 13 tests

This is the main PHP file of "Tipster TAP" version 4.2.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
38 characters long description:
Plugin para gestionar tipsters y picks

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin128,702 lines of code in 241 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript9827,00654,602119,340
CSS1212252196,352
PHP194149342,446
PO File1166177427
Sass2283137

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity30.33
▷ Minimum class complexity5.00
▷ Maximum class complexity115.00
Average method complexity3.39
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods73
▷ Static methods1115.07%
▷ Public methods6386.30%
▷ Protected methods00.00%
▷ Private methods1013.70%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.00%
Constants12
▷ Global constants18.33%
▷ Class constants1191.67%
▷ Public constants11100.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
12 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/js/DataTables/DataTables-1.10.16/images/sort_desc_disabled.png0.14KB0.25KB0.00%
admin/assets/css/jquery-ui/images/ui-icons_444444_256x240.png6.83KB4.17KB▼ 38.86%
admin/assets/js/DataTables/DataTables-1.10.16/images/sort_desc.png0.15KB0.25KB0.00%
admin/assets/js/DataTables/DataTables-1.10.16/images/sort_asc.png0.16KB0.25KB0.00%
assets/img/tipster.png15.54KB7.55KB▼ 51.40%