74% tipzty

Code Review | Tipzty

WordPress plugin Tipzty scored74%from 54 tests.

About plugin

  • Plugin page: tipzty
  • Plugin version: 1.10.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9
  • WordPress version: 6.3.1
  • First release: Apr 28, 2022
  • Latest release: Nov 29, 2022
  • Number of updates: 66
  • Update frequency: every 3.3 days
  • Top authors: tipzty (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,391 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▼1.20MB] [CPU: ▼40.63ms] Passed 4 tests

Analyzing server-side resources used by Tipzty
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.78 ▼0.6816.10 ▼19.86
Dashboard /wp-admin2.82 ▼0.5219.23 ▼35.53
Posts /wp-admin/edit.php2.83 ▼0.5317.51 ▼29.06
Add New Post /wp-admin/post-new.php2.83 ▼3.0616.39 ▼78.06
Media Library /wp-admin/upload.php2.83 ▼0.4017.32 ▼17.64

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 59 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Tipzty
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,426 ▲65514.35 ▲0.0012.05 ▲10.3040.85 ▲0.72
Dashboard /wp-admin2,251 ▲715.65 ▼0.0295.52 ▲10.3152.10 ▲12.11
Posts /wp-admin/edit.php2,156 ▲532.00 ▼0.0034.10 ▼4.1331.04 ▼1.15
Add New Post /wp-admin/post-new.php1,581 ▲5222.82 ▼0.17589.58 ▼26.8788.75 ▲26.11
Media Library /wp-admin/upload.php1,456 ▲534.19 ▲0.0295.82 ▼8.2340.51 ▼5.22

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/tipzty/tipzty.php+181
    Undefined index: t-add-to-cart
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/tipzty/tipzty.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sanitize_email() in wp-content/plugins/tipzty/admin/dashboard.php:174
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/tipzty/admin/dashboard.php on line 119

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: live, video-shopping, video, reviews

tipzty/tipzty.php 92% from 13 tests

The entry point to "Tipzty" version 1.10.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: Please use dashes and lowercase characters for text domains

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
Good job! No executable or dangerous file extensions detected48,176 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
CSS178,16814235,305
JavaScript93,6271,61612,347
PHP36914523
SVG1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.77MB with 0.40MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png732.09KB241.44KB▼ 67.02%
admin/img/live.png24.96KB8.85KB▼ 64.55%
admin/img/icon.png0.85KB0.32KB▼ 61.91%
admin/img/close.png2.70KB2.69KB0.22%
admin/img/btn.png24.84KB8.92KB▼ 64.12%