84% woocommerce-title-split-test

Code Review | WooCommerce title split test

WordPress plugin WooCommerce title split test scored 84% 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: 6.3.1
  • 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 / 920 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▲0.52ms] Passed 4 tests

Analyzing server-side resources used by WooCommerce title split test
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.39 ▲2.09
Dashboard /wp-admin3.35 ▲0.0446.26 ▼2.26
Posts /wp-admin/edit.php3.40 ▲0.0444.32 ▼0.26
Add New Post /wp-admin/post-new.php5.95 ▲0.0788.33 ▲3.71
Media Library /wp-admin/upload.php3.27 ▲0.0435.75 ▲2.52

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce title split test
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲4014.63 ▲1.391.87 ▲0.3237.81 ▼1.04
Dashboard /wp-admin2,207 ▲45.83 ▼0.0195.48 ▲2.2837.87 ▼1.03
Posts /wp-admin/edit.php2,093 ▲72.00 ▼0.0335.63 ▲0.7130.97 ▼0.85
Add New Post /wp-admin/post-new.php1,532 ▼418.59 ▼4.57587.01 ▼9.2853.13 ▲5.17
Media Library /wp-admin/upload.php1,392 ▲44.22 ▼0.0294.30 ▼7.8443.36 ▼0.80

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 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
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
3 plugin tags: ab test, split test, woocommerce

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

The main PHP file in "WooCommerce title split test" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file 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 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected960 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP5286341921
JavaScript114020
CSS17019

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin