84% tito

Code Review | Tito

WordPress plugin Tito scored84%from 54 tests.

About plugin

  • Plugin page: tito
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.0
  • WordPress version: 6.3.1
  • First release: Sep 23, 2014
  • Latest release: Feb 8, 2023
  • Number of updates: 17
  • Update frequency: every 180.2 days
  • Top authors: tady (64.71%)billhorsman (23.53%)drbparsons (23.53%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,616 total downloads

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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.66ms] Passed 4 tests

Analyzing server-side resources used by Tito
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.75 ▲2.79
Dashboard /wp-admin3.33 ▼0.0256.02 ▼10.11
Posts /wp-admin/edit.php3.38 ▲0.0246.60 ▼4.70
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.98 ▼22.62
Media Library /wp-admin/upload.php3.25 ▲0.0244.29 ▲3.41

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Tito
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,951 ▲19016.75 ▲2.5661.77 ▲59.8842.67 ▲1.82
Dashboard /wp-admin2,218 ▲415.55 ▼0.0684.10 ▼13.0244.17 ▲4.01
Posts /wp-admin/edit.php2,132 ▲291.99 ▼0.0335.81 ▼5.4435.06 ▼1.89
Add New Post /wp-admin/post-new.php1,539 ▲223.32 ▲5.06659.00 ▼52.3952.79 ▼18.48
Media Library /wp-admin/upload.php1,426 ▲294.30 ▲0.0699.16 ▼17.7044.34 ▼5.55

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% 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
Almost there! Just fix the following items
  • 4× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/tito/inc/scripts.php
    • > /wp-content/plugins/tito/inc/display.php
    • > /wp-content/plugins/tito/tito.php
    • > /wp-content/plugins/tito/inc/admin.php

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, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: stripe, tickets, event management, tito, events

tito/tito.php 92% from 13 tests

The main PHP script in "Tito" version 2.1 is automatically included on every request by WordPress
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 145 characters long)

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 detected234 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP45222116
SVG40463
Markdown141055

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
7 PNG files occupy 0.26MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png2.38KB1.06KB▼ 55.40%
assets/screenshot-3.png75.82KB21.16KB▼ 72.10%
assets/screenshot-2.png59.01KB17.94KB▼ 69.60%
assets/banner-772x250.png13.56KB6.39KB▼ 52.88%
assets/screenshot-4.png34.51KB9.83KB▼ 71.52%