84% convertize

Code Review | Convertize A/B Testing for Wordpress

WordPress plugin Convertize A/B Testing for Wordpress scored84%from 54 tests.

About plugin

  • Plugin page: convertize
  • Plugin version: 1.0.6
  • PHP compatiblity: 5.3.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.6.0
  • WordPress version: 6.3.1
  • First release: May 10, 2017
  • Latest release: Jan 6, 2021
  • Number of updates: 37
  • Update frequency: every 36.2 days
  • Top authors: stygis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /2,038 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.03ms] Passed 4 tests

Analyzing server-side resources used by Convertize A/B Testing for Wordpress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0144.50 ▲3.63
Dashboard /wp-admin3.37 ▲0.0248.96 ▼5.15
Posts /wp-admin/edit.php3.48 ▲0.0856.07 ▲5.07
Add New Post /wp-admin/post-new.php5.95 ▲0.0294.26 ▲1.22
Media Library /wp-admin/upload.php3.29 ▲0.0234.55 ▼3.82

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Convertize A/B Testing for Wordpress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲6814.28 ▼0.111.81 ▲0.1843.28 ▼0.22
Dashboard /wp-admin2,213 ▲395.56 ▼0.2981.86 ▼10.7577.44 ▲39.16
Posts /wp-admin/edit.php2,115 ▲121.97 ▲0.0338.82 ▲4.3138.20 ▲3.15
Add New Post /wp-admin/post-new.php1,539 ▼023.76 ▲5.48603.51 ▼39.64157.68 ▲96.94
Media Library /wp-admin/upload.php1,412 ▲124.15 ▼0.08100.36 ▼7.2576.55 ▲30.47

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/convertize/inc/options.php
    • > /wp-content/plugins/convertize/convertize.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% 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
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
The official readme.txt is a good inspiration

convertize/convertize.php 92% from 13 tests

The main PHP file in "Convertize A/B Testing for Wordpress" ver. 1.0.6 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 160 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin215 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP22615120
JavaScript116057
CSS13138

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.56
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods777.78%
▷ Protected methods00.00%
▷ Private methods222.22%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
icon.png17.79KB0.73KB▼ 95.88%