84% convert-experiments

Code Review | Convert Experiences

WordPress plugin Convert Experiences scored84%from 54 tests.

About plugin

  • Plugin page: convert-experiments
  • Plugin version: 3.1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-6.2
  • WordPress version: 6.3.1
  • First release: Sep 21, 2012
  • Latest release: Jul 22, 2023
  • Number of updates: 59
  • Update frequency: every 67.1 days
  • Top authors: claudiur (59.32%)joostdevalk (22.03%)sgulloni (18.64%)jbekas (5.08%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /8,310 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.83ms] Passed 4 tests

This is a short check of server-side resources used by Convert Experiences
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0340.49 ▼2.56
Dashboard /wp-admin3.36 ▲0.0648.30 ▼2.55
Posts /wp-admin/edit.php3.48 ▲0.1246.75 ▼0.74
Add New Post /wp-admin/post-new.php5.94 ▲0.0684.41 ▼5.45
Media Library /wp-admin/upload.php3.28 ▲0.0638.34 ▲3.26
Convert Experiments Configuration /wp-admin/options-general.php?page=convert-experiences3.2531.11

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

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

Browser metrics Passed 4 tests

Convert Experiences: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲7813.32 ▼1.094.78 ▲3.0643.79 ▼5.79
Dashboard /wp-admin2,216 ▲285.86 ▲0.98112.43 ▼3.2944.66 ▼2.37
Posts /wp-admin/edit.php2,101 ▲151.97 ▼0.0133.89 ▼2.6935.41 ▼2.60
Add New Post /wp-admin/post-new.php1,554 ▲3518.58 ▼4.39584.65 ▼83.9548.27 ▼18.19
Media Library /wp-admin/upload.php1,398 ▲134.29 ▲0.0699.33 ▼2.8042.88 ▲0.78
Convert Experiments Configuration /wp-admin/options-general.php?page=convert-experiences8392.0525.7833.32

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • convert_experiments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/convert-experiments/convert-experiments.php:123

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed: Please take inspiration from this readme.txt

convert-experiments/convert-experiments.php Passed 13 tests

"Convert Experiences" version 3.1.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
70 characters long description:
Convert Experiences provides A/B and Multivariate Testing for Experts.

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
There were no executable files found in this plugin250 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP598153240
CSS11010

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.34
Average class complexity6.80
▷ Minimum class complexity3.00
▷ Maximum class complexity17.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods24
▷ Static methods312.50%
▷ Public methods1979.17%
▷ Protected methods00.00%
▷ Private methods520.83%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.48MB with 0.32MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png311.17KB111.38KB▼ 64.21%
assets/images/convert-project-id.png177.31KB54.12KB▼ 69.48%