84% automizely-marketing

Code Review | Automizely Popup - Email Pop Up, Sales Pop Up, Exit Intent Pop Up, Upsell Pop Up, Cart Abandonment Pop Up

WordPress plugin Automizely Popup - Email Pop Up, Sales Pop Up, Exit Intent Pop Up, Upsell Pop Up, Cart Abandonment Pop Up scored84%from 54 tests.

About plugin

  • Plugin page: automizely-marketing
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-6.3
  • WordPress version: 6.3.1
  • First release: Jan 28, 2021
  • Latest release: Aug 15, 2023
  • Number of updates: 24
  • Update frequency: every 38.8 days
  • Top authors: aftership (100%)

Code review

54 tests

User reviews

28 reviews

Install metrics

200+ active /6,479 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.14MB] [CPU: ▼1.41ms] Passed 4 tests

Server-side resources used by Automizely Popup - Email Pop Up, Sales Pop Up, Exit Intent Pop Up, Upsell Pop Up, Cart Abandonment Pop Up
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1444.41 ▼2.72
Dashboard /wp-admin3.45 ▲0.1458.41 ▼2.45
Posts /wp-admin/edit.php3.56 ▲0.2062.00 ▼0.41
Add New Post /wp-admin/post-new.php6.03 ▲0.14119.63 ▲8.87
Media Library /wp-admin/upload.php3.37 ▲0.1443.01 ▼0.04

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Automizely Popup - Email Pop Up, Sales Pop Up, Exit Intent Pop Up, Upsell Pop Up, Cart Abandonment Pop Up
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲8414.82 ▲0.231.99 ▲0.0350.17 ▼0.38
Dashboard /wp-admin2,221 ▲335.82 ▲0.92124.97 ▼5.3975.53 ▲32.12
Posts /wp-admin/edit.php2,122 ▲332.16 ▲0.1439.33 ▼9.7638.61 ▼3.58
Add New Post /wp-admin/post-new.php1,547 ▲2721.08 ▼2.08834.64 ▲115.5372.64 ▲10.91
Media Library /wp-admin/upload.php1,415 ▲274.13 ▼0.12114.11 ▼7.3889.61 ▲27.97

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • automizely_script_tags
    • widget_theysaidso_widget
    • theysaidso_admin_options

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)
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'AM_REST_Controller' not found in wp-content/plugins/automizely-marketing/includes/api/marketing/v1/class-am-mt-rest-settings-controller.php:10
    • > PHP Warning
      include(AUTOMIZELY_MARKETING_PATH/includes/class-am-rest-controller.php): failed to open stream: No such file or directory in wp-content/plugins/automizely-marketing/includes/api/marketing/v1/class-am-mt-rest-settings-controller.php on line 5
    • > PHP Warning
      include(): Failed opening 'AUTOMIZELY_MARKETING_PATH/includes/class-am-rest-controller.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/automizely-marketing/includes/api/marketing/v1/class-am-mt-rest-settings-controller.php on line 5
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/automizely-marketing/includes/class-am-rest-controller.php:5
    • > PHP Warning
      Use of undefined constant AUTOMIZELY_MARKETING_PATH - assumed 'AUTOMIZELY_MARKETING_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/automizely-marketing/includes/api/marketing/v1/class-am-mt-rest-settings-controller.php on line 5
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/automizely-marketing/includes/class-am-rest-controller.php:5

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 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
9 plugin tags: pop up, pop up plugin, pop up maker, email pop ups, sales pop ups...

automizely-marketing/automizely-marketing.php 92% from 13 tests

The main PHP script in "Automizely Popup - Email Pop Up, Sales Pop Up, Exit Intent Pop Up, Upsell Pop Up, Cart Abandonment Pop Up" version 1.1.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Plugin Name: A shorter plugin name is better (currently 105 characters long instead of max. 70)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected1,008 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP5101199677
CSS276131242
SVG40060
JSON10029

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity19.00
▷ Minimum class complexity4.00
▷ Maximum class complexity28.00
Average method complexity3.06
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods35
▷ Static methods00.00%
▷ Public methods2880.00%
▷ Protected methods00.00%
▷ Private methods720.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants583.33%
▷ Class constants116.67%
▷ Public constants1100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 2.05MB with 1.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-1544X500.png1,464.24KB323.07KB▼ 77.94%
assets/icon-128x128.png2.61KB1.20KB▼ 54.00%
assets/banner-772X250.png479.97KB109.31KB▼ 77.23%
assets/icon-256x256.png4.88KB2.24KB▼ 54.07%
assets/images/star.png2.15KB1.81KB▼ 15.52%