89% text-changer-for-welcart

Code Review | Text Changer for Welcart

WordPress plugin Text Changer for Welcart scored89%from 54 tests.

About plugin

  • Plugin page: text-changer-for-...
  • Plugin version: 1.1.8
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Jun 16, 2021
  • Latest release: Nov 19, 2023
  • Number of updates: 16
  • Update frequency: every 55.4 days
  • Top authors: mainichiweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /2,798 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼2.77ms] Passed 4 tests

This is a short check of server-side resources used by Text Changer for Welcart
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.52 ▼2.42
Dashboard /wp-admin3.31 ▼0.0350.94 ▼10.90
Posts /wp-admin/edit.php3.36 ▲0.0147.74 ▲0.24
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.46 ▲3.43
Media Library /wp-admin/upload.php3.24 ▲0.0136.68 ▲2.02
Text Changer for Welcart /wp-admin/options-general.php?page=tcw_function_settings3.7632.43

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Text Changer for Welcart: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲3414.34 ▼0.261.76 ▼0.1643.91 ▲0.24
Dashboard /wp-admin2,201 ▲235.52 ▼0.2083.60 ▼33.3940.20 ▼5.63
Posts /wp-admin/edit.php2,106 ▲91.94 ▼0.0139.47 ▲1.4838.73 ▲3.57
Add New Post /wp-admin/post-new.php1,534 ▲823.32 ▲0.10585.08 ▼171.3645.18 ▼23.27
Media Library /wp-admin/upload.php1,409 ▲94.20 ▼0.0499.27 ▼16.1045.73 ▼2.35
Text Changer for Welcart /wp-admin/options-general.php?page=tcw_function_settings7712.0225.0923.58

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Donate link: Please fix this invalid url: ""
You can look at the official readme.txt

text-changer-for-welcart/text-changer-for-welcart.php 92% from 13 tests

The entry point to "Text Changer for Welcart" version 1.1.8 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin2,263 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP6113992,025
CSS1536238

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions30
▷ Named functions30100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants266.67%
▷ Class constants133.33%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
other_tab/img/logo-ffw_square_350.png8.80KB3.05KB▼ 65.30%
other_tab/img/logo-pnp_square_350.png6.37KB3.09KB▼ 51.47%
other_tab/img/logo-tfs_square_350.png5.34KB2.50KB▼ 53.16%
other_tab/img/logo-tcw_square_350.png5.16KB2.67KB▼ 48.27%
other_tab/img/logo-cps_square_350.png8.00KB2.89KB▼ 63.88%