84% instant-contact

Code Review | Instant Contact - Generate leads and convert them into Customers

WordPress plugin Instant Contact - Generate leads and convert them into Customers scored84%from 54 tests.

About plugin

  • Plugin page: instant-contact
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.6.1
  • WordPress version: 6.3.1
  • First release: Oct 15, 2016
  • Latest release: Oct 19, 2016
  • Number of updates: 6
  • Update frequency: every 0.8 days
  • Top authors: faisaliefr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /724 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.18ms] Passed 4 tests

This is a short check of server-side resources used by Instant Contact - Generate leads and convert them into Customers
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.55 ▼4.31
Dashboard /wp-admin3.33 ▲0.0346.69 ▼4.27
Posts /wp-admin/edit.php3.38 ▲0.0248.86 ▼3.31
Add New Post /wp-admin/post-new.php5.93 ▲0.0488.60 ▼12.84
Media Library /wp-admin/upload.php3.25 ▲0.0238.77 ▲5.48

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Instant Contact - Generate leads and convert them into Customers: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,947 ▲20113.76 ▼0.555.45 ▲3.3232.86 ▼10.08
Dashboard /wp-admin2,243 ▲555.15 ▼0.72105.57 ▲1.8041.44 ▲1.65
Posts /wp-admin/edit.php2,131 ▲422.33 ▲0.1738.50 ▼0.2833.75 ▼0.80
Add New Post /wp-admin/post-new.php1,545 ▲1717.63 ▼0.67712.73 ▲66.4837.05 ▼12.45
Media Library /wp-admin/upload.php1,419 ▲284.44 ▲0.2497.64 ▼2.9440.24 ▼4.52

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
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/instant-contact/instant-contact.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function instantContact_getOption() in wp-content/plugins/instant-contact/inc/dynamic.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/instant-contact/views/output.php:2
    • > PHP Warning
      Use of undefined constant INSTANT_CONTACT_VER - assumed 'INSTANT_CONTACT_VER' (this will throw an Error in a future version of PHP) in wp-content/plugins/instant-contact/views/options.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function instantContact_checked() in wp-content/plugins/instant-contact/views/options.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: chat box, third party embedments, quick chat, cf7, gravity forms

instant-contact/instant-contact.php Passed 13 tests

This is the main PHP file of "Instant Contact - Generate leads and convert them into Customers" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
75 characters long description:
instant contact widget - supports all cf7, gravity forms, and embedments...

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected636 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS281387
PHP62620227
JavaScript11022

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png44.15KB19.98KB▼ 54.74%