84% woo-title-limit

Code Review | Woo Title Limit

WordPress plugin Woo Title Limit scored84%from 54 tests.

About plugin

  • Plugin page: woo-title-limit
  • Plugin version: 2.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.8.3
  • WordPress version: 6.3.1
  • First release: Jan 29, 2016
  • Latest release: Jan 8, 2022
  • Number of updates: 72
  • Update frequency: every 30.2 days
  • Top authors: DimaW (100%)

Code review

54 tests

User reviews

20 reviews

Install metrics

9,000+ active /72,891 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.22MB] [CPU: ▼2.43ms] Passed 4 tests

Analyzing server-side resources used by Woo Title Limit
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0934.84 ▼1.74
Dashboard /wp-admin3.61 ▲0.3149.91 ▲3.32
Posts /wp-admin/edit.php3.66 ▲0.3149.79 ▲3.83
Add New Post /wp-admin/post-new.php6.13 ▲0.2480.39 ▼15.14
Media Library /wp-admin/upload.php3.45 ▲0.2237.82 ▲4.29
Woo Title Limit /wp-admin/options-general.php?page=woo-title-limit3.4534.91

Server storage [IO: ▲0.09MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 12 new options
New WordPress options
wtl_opt_product
wtl_opt_tag
wtl_opt_shop
theysaidso_admin_options
wtl_opt_category
widget_recent-comments
db_upgraded
wtl_opt_home
widget_recent-posts
widget_theysaidso_widget
...

Browser metrics Passed 4 tests

Checking browser requirements for Woo Title Limit
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,079 ▲31815.03 ▲0.445.01 ▲3.5639.34 ▼1.89
Dashboard /wp-admin2,374 ▲1946.30 ▲0.67104.99 ▲15.6839.93 ▼4.38
Posts /wp-admin/edit.php2,306 ▲2093.52 ▲1.5650.30 ▲14.4832.52 ▼2.66
Add New Post /wp-admin/post-new.php1,558 ▲2323.27 ▲4.85657.40 ▲6.8236.91 ▼59.71
Media Library /wp-admin/upload.php1,445 ▲424.30 ▲0.0980.93 ▼17.0643.33 ▲0.57
Woo Title Limit /wp-admin/options-general.php?page=woo-title-limit1,3393.5146.6245.14

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/woo-title-limit/admin/partials/woo-title-limit-admin-display.php
    • > /wp-content/plugins/woo-title-limit/public/partials/woo-title-limit-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: shop, woocommerce, limit, length, product title...

woo-title-limit/woo-title-limit.php 92% from 13 tests

The main PHP script in "Woo Title Limit" version 2.0.3 is automatically included on every request by WordPress
You should first fix the following items:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("3.0.1" instead of "3.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin1,035 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP13308898945
PO File1346470
CSS21814
JavaScript24546

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity14.38
▷ Minimum class complexity1.00
▷ Maximum class complexity62.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods61
▷ Static methods23.28%
▷ Public methods5691.80%
▷ Protected methods00.00%
▷ Private methods58.20%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin