84% infusionsoft-exit-optin

Code Review | Infusionsoft Exit Optin

WordPress plugin Infusionsoft Exit Optin scored84%from 54 tests.

About plugin

  • Plugin page: infusionsoft-exit...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.1
  • WordPress version: 6.3.1
  • First release: Feb 10, 2014
  • Latest release: Dec 18, 2014
  • Number of updates: 12
  • Update frequency: every 26.1 days
  • Top authors: zulugrid (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,836 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
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼3.53ms] Passed 4 tests

A check of server-side resources used by Infusionsoft Exit Optin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.63 ▲1.21
Dashboard /wp-admin3.37 ▲0.0645.41 ▼3.75
Posts /wp-admin/edit.php3.48 ▲0.1245.39 ▼0.16
Add New Post /wp-admin/post-new.php5.94 ▲0.0679.67 ▼11.40
Media Library /wp-admin/upload.php3.29 ▲0.0636.27 ▲3.30

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Infusionsoft Exit Optin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,913 ▲17813.66 ▼0.959.35 ▲7.6542.49 ▼6.73
Dashboard /wp-admin2,232 ▲475.80 ▼0.1095.10 ▼14.3845.46 ▲1.39
Posts /wp-admin/edit.php2,120 ▲312.00 ▲0.0139.67 ▼2.0040.12 ▲1.88
Add New Post /wp-admin/post-new.php1,568 ▲3518.45 ▼4.98644.27 ▼28.2858.38 ▲5.31
Media Library /wp-admin/upload.php1,417 ▲324.22 ▼0.0497.67 ▼16.4244.87 ▼2.45

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 2× 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/infusionsoft-exit-optin/infusionsoft-exit-optin.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/infusionsoft-exit-optin/admin_init.php:20

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 Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: intent, javascript, exit, optin, infusionsoft

infusionsoft-exit-optin/infusionsoft-exit-optin.php Passed 13 tests

"Infusionsoft Exit Optin" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
64 characters long description:
Trigger a web form pop-up when the user's mouse leaves the page.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin618 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS1356327
PHP26881290
JavaScript1021

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin