94% woocommerce-title-split-test

Code Review | WooCommerce title split test

WordPress plugin WooCommerce title split test scored 94% from 54 tests.

About plugin

  • Plugin page: woocommerce-title...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1
  • WordPress version: 5.9.2
  • First release: Feb 18, 2015
  • Latest release: Feb 18, 2015
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: staskus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 787 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼290.55ms] Passed 4 tests

A check of server-side resources used by WooCommerce title split test
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2155.23 ▲6.54
Dashboard /wp-admin3.58 ▲0.1733.61 ▼0.09
Posts /wp-admin/edit.php3.81 ▲0.1739.77 ▼0.27
Add New Post /wp-admin/post-new.php7.05 ▲0.08102.37 ▼1,165.55
Media Library /wp-admin/upload.php3.47 ▲0.1728.61 ▲3.73

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce title split test
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,800 ▲5615.92 ▼0.085.86 ▼0.312.32 ▼0.10
Dashboard /wp-admin2,894 ▲406.11 ▼0.11118.03 ▼12.94158.95 ▼2.70
Posts /wp-admin/edit.php2,699 ▲113.24 ▲0.0063.70 ▼0.01141.49 ▼0.06
Add New Post /wp-admin/post-new.php1,720 ▼5321.17 ▼0.91450.80 ▼29.11169.61 ▲12.63
Media Library /wp-admin/upload.php1,703 ▲55.49 ▼0.01146.41 ▼2.34193.39 ▲2.27

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/woocommerce-title-split-test/includes/templates/tests_list.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: ab test, split test, woocommerce

woocommerce-title-split-test/woocommerce-title-test.php 92% from 13 tests

The main PHP script in "WooCommerce title split test" version 1.0.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("woocommerce-title-split-test.php" instead of "woocommerce-title-test.php")

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 detected960 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP5286341921
JavaScript114020
CSS17019

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity45.50
▷ Minimum class complexity26.00
▷ Maximum class complexity65.00
Average method complexity3.62
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods34
▷ Static methods25.88%
▷ Public methods2470.59%
▷ Protected methods00.00%
▷ Private methods1029.41%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants133.33%
▷ Class constants266.67%
▷ Public constants2100.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 images were found in this plugin