83% conversion-tool-by-convkit

Code Review | Stunning popups to increase conversion or capture subscribers

WordPress plugin Stunning popups to increase conversion or capture subscribers scored83%from 54 tests.

About plugin

  • Plugin page: conversion-tool-b...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.9
  • WordPress version: 6.3.1
  • First release: Oct 19, 2021
  • Latest release: Jan 28, 2022
  • Number of updates: 6
  • Update frequency: every 16.8 days
  • Top authors: szijartot (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /962 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
This plugin's installer ran successfully

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

An overview of server-side resources used by Stunning popups to increase conversion or capture subscribers
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0236.02 ▼4.66
Dashboard /wp-admin3.35 ▲0.0448.04 ▼0.59
Posts /wp-admin/edit.php3.46 ▲0.1147.47 ▼2.01
Add New Post /wp-admin/post-new.php5.95 ▲0.0689.80 ▼10.90
Media Library /wp-admin/upload.php3.27 ▲0.0435.11 ▲0.37
ConvKit /wp-admin/themes.php?page=convkit3.3930.70

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Stunning popups to increase conversion or capture subscribers
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.34 ▼1.031.54 ▼0.2442.15 ▼2.52
Dashboard /wp-admin2,211 ▲204.87 ▼1.02105.78 ▼11.5339.33 ▼7.18
Posts /wp-admin/edit.php2,097 ▲82.03 ▲0.0235.74 ▼1.5232.44 ▼2.17
Add New Post /wp-admin/post-new.php1,521 ▲223.26 ▲0.12608.90 ▼55.4057.83 ▲9.16
Media Library /wp-admin/upload.php1,396 ▲114.30 ▲0.0394.86 ▼5.5042.54 ▲0.16
ConvKit /wp-admin/themes.php?page=convkit8611.7325.9832.74

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/conversion-tool-by-convkit/templates/ConvKitAdminSettingsPage.tpl.php:7

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 87% from 29 tests

readme.txt 88% from 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
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (Campaign list), #2 (Where to display my campaign?), #3 (Widget editor), #4 (Widget statistics)
  • Tags: You are using too many tags: 14 tag instead of maximum 10
The official readme.txt is a good inspiration

conversion-tool-by-convkit/convkit.php 85% from 13 tests

The main file in "Stunning popups to increase conversion or capture subscribers" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("conversion-tool-by-convkit.php" instead of "convkit.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin391 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP77446234
Markdown125061
JavaScript17052
PO File1131741
CSS1003

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity2.40
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.35
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods20
▷ Static methods315.00%
▷ Public methods1995.00%
▷ Protected methods00.00%
▷ Private methods15.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants214.29%
▷ Class constants1285.71%
▷ Public constants12100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/convkit-logo-web.png7.81KB3.57KB▼ 54.21%