68% wp-experiments-free

Code Review | Title Experiments Free

WordPress plugin Title Experiments Free scored68%from 54 tests.

About plugin

  • Plugin page: wp-experiments-free
  • Plugin version: 9.0.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-5.9.3
  • WordPress version: 6.3.1
  • First release: Jun 6, 2013
  • Latest release: Apr 7, 2022
  • Number of updates: 135
  • Update frequency: every 24.0 days
  • Top authors: jasonlfunk (92.59%)kbowson (7.41%)seokai (1.48%)

Code review

54 tests

User reviews

14 reviews

Install metrics

500+ active /41,811 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼6.10ms] Passed 4 tests

Server-side resources used by Title Experiments Free
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.1949.64 ▲5.28
Dashboard /wp-admin3.49 ▲0.1855.63 ▲1.52
Posts /wp-admin/edit.php3.60 ▲0.2457.16 ▲5.73
Add New Post /wp-admin/post-new.php5.63 ▼0.2677.01 ▼33.12
Media Library /wp-admin/upload.php3.41 ▲0.1842.23 ▲1.91
Title Exp Settings /wp-admin/options-general.php?page=wpex-settings3.3936.57

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 31 new files
Database: 2 new tables, 8 new options
New tables
wp_wpex_titles
wp_wpex_stats
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
wpex_installed
db_upgraded
wpex_db_version
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Title Experiments Free
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲5214.73 ▲0.361.95 ▲0.2744.81 ▼0.59
Dashboard /wp-admin2,222 ▲455.10 ▼0.5097.95 ▲3.8343.12 ▲2.15
Posts /wp-admin/edit.php2,134 ▲372.30 ▲0.3243.56 ▲6.8036.03 ▼0.68
Add New Post /wp-admin/post-new.php6,262 ▲4,73622.82 ▼0.56964.68 ▲282.2537.54 ▼20.54
Media Library /wp-admin/upload.php1,427 ▲304.56 ▲0.48108.27 ▲3.4146.39 ▲0.25
Title Exp Settings /wp-admin/options-general.php?page=wpex-settings1,0251.9828.1633.41

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie tables were found after uninstall: 2 tables
    • wp_wpex_titles
    • wp_wpex_stats
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • wpex_db_version
    • theysaidso_admin_options
    • wpex_installed

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
The following issues need your attention
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wp-experiments-free/libs/PDL/BetaDistribution.php
    • > /wp-content/plugins/wp-experiments-free/libs/PDL/GammaDistribution.php
    • > /wp-content/plugins/wp-experiments-free/libs/PDL/functions/SpecialMath.php
  • 21× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: adjust_every in wp-content/plugins/wp-experiments-free/wpex-general-settings.php on line 54
    • > PHP Notice
      Undefined variable: adjust_every in wp-content/plugins/wp-experiments-free/wpex-general-settings.php on line 53
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-experiments-free/libs/PDL/test.php:65
    • > PHP Notice
      Undefined variable: adjust_every in wp-content/plugins/wp-experiments-free/wpex-general-settings.php on line 58
    • > PHP Notice
      Undefined variable: adjust_every in wp-content/plugins/wp-experiments-free/wpex-general-settings.php on line 51
    • > PHP Notice
      Undefined variable: adjust_every in wp-content/plugins/wp-experiments-free/wpex-general-settings.php on line 56
    • > PHP Notice
      Undefined variable: adjust_every in wp-content/plugins/wp-experiments-free/wpex-general-settings.php on line 57
    • > PHP Notice
      Undefined variable: search_engines in wp-content/plugins/wp-experiments-free/wpex-general-settings.php on line 28
    • > PHP Notice
      Undefined variable: adjust_every in wp-content/plugins/wp-experiments-free/wpex-general-settings.php on line 52
    • > PHP Notice
      Undefined variable: search_engines in wp-content/plugins/wp-experiments-free/wpex-general-settings.php on line 26

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: ab testing, optimization, conversions, titles, split testing...

wp-experiments-free/wp-experiments.php 92% from 13 tests

The main PHP file in "Title Experiments Free" ver. 9.0.4 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-experiments-free.php" instead of "wp-experiments.php")

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 plugin3,521 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP113486662,543
JavaScript59847509
Sass1192233
CSS2180228
Ruby1008

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity58.00
▷ Minimum class complexity7.00
▷ Maximum class complexity150.00
Average method complexity3.91
▷ Minimum method complexity1.00
▷ Maximum method complexity58.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods98
▷ Static methods00.00%
▷ Public methods9394.90%
▷ Protected methods00.00%
▷ Private methods55.10%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants16
▷ Global constants1381.25%
▷ Class constants318.75%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.06MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/loser.png7.10KB0.33KB▼ 95.28%
img/del-gray.png9.50KB0.16KB▼ 98.29%
img/winner.png7.18KB0.53KB▼ 92.64%
img/beaker-green.png7.05KB0.44KB▼ 93.71%
img/del-red.png9.60KB0.22KB▼ 97.73%