83% custom-thank-you-for-woo

Code Review | Custom Thank you for Woo

WordPress plugin Custom Thank you for Woo scored83%from 54 tests.

About plugin

  • Plugin page: custom-thank-you-...
  • Plugin version: 1.0.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Apr 8, 2021
  • Latest release: Apr 25, 2023
  • Number of updates: 11
  • Update frequency: every 68.0 days
  • Top authors: sunarc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /804 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.04MB] [CPU: ▼11.34ms] Passed 4 tests

An overview of server-side resources used by Custom Thank you for Woo
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.14 ▼1.03
Dashboard /wp-admin3.35 ▲0.0150.42 ▼25.89
Posts /wp-admin/edit.php3.40 ▲0.0549.53 ▼1.32
Add New Post /wp-admin/post-new.php5.93 ▲0.0593.89 ▼17.12
Media Library /wp-admin/upload.php3.27 ▲0.0541.63 ▲10.75
Custom Thank you /wp-admin/admin.php?page=custom_thank_you3.2139.60

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Custom Thank you for Woo
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.73 ▲0.161.77 ▲0.0644.98 ▼5.24
Dashboard /wp-admin2,209 ▲186.06 ▲1.16100.31 ▼61.8344.77 ▼14.65
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0038.11 ▲1.3933.40 ▲0.49
Add New Post /wp-admin/post-new.php1,533 ▲923.23 ▼0.14610.53 ▼62.8254.93 ▲4.77
Media Library /wp-admin/upload.php1,391 ▲34.17 ▼0.0397.34 ▼7.9746.63 ▲3.42
Custom Thank you /wp-admin/admin.php?page=custom_thank_you8192.0228.0533.87

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/admin.php?page=custom_thank_you
    • > Notice in wp-content/plugins/custom-thank-you-for-woo/index.php+305
    Trying to access array offset on value of type bool

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% 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 your attention: Please take inspiration from this readme.txt

custom-thank-you-for-woo/index.php 85% from 13 tests

The main file in "Custom Thank you for Woo" v. 1.0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("custom-thank-you-for-woo.php" instead of "index.php")

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
Good job! No executable or dangerous file extensions detected292 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP211538292

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods116.67%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected