68% kolakube-email-forms

Code Review | Kolakube Email Forms

WordPress plugin Kolakube Email Forms scored68%from 54 tests.

About plugin

  • Plugin page: kolakube-email-forms
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.8
  • WordPress version: 6.3.1
  • First release: Oct 14, 2014
  • Latest release: Jul 22, 2016
  • Number of updates: 74
  • Update frequency: every 13.2 days
  • Top authors: alexmangini (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /3,598 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.56MB] [CPU: ▼50.48ms] Passed 4 tests

This is a short check of server-side resources used by Kolakube Email Forms
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.43 ▼1.0310.50 ▼34.38
Dashboard /wp-admin2.45 ▼0.8513.38 ▼39.14
Posts /wp-admin/edit.php2.45 ▼0.9014.92 ▼39.86
Add New Post /wp-admin/post-new.php2.45 ▼3.4311.60 ▼88.53
Media Library /wp-admin/upload.php2.45 ▼0.7813.49 ▼25.18
Email Forms /wp-admin/tools.php?page=kol-email-forms2.4611.69

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 40 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_kol_email
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Kolakube Email Forms
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.40 ▲0.011.64 ▼0.5240.57 ▼7.72
Dashboard /wp-admin2,210 ▲194.86 ▼0.02111.83 ▲4.0346.61 ▲3.53
Posts /wp-admin/edit.php2,093 ▲12.00 ▼0.0439.10 ▲2.7936.41 ▲3.06
Add New Post /wp-admin/post-new.php1,545 ▲1218.06 ▼5.17593.61 ▼73.9449.20 ▲0.50
Media Library /wp-admin/upload.php1,392 ▲14.16 ▼0.0798.36 ▼6.6842.91 ▼1.64
Email Forms /wp-admin/tools.php?page=kol-email-forms9062.0727.3729.47

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/kolakube-email-forms/widget.php+70
    Trying to access array offset on value of type bool
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_kol_email

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=kol-email-forms
    • > Notice in wp-content/plugins/kolakube-email-forms/admin/admin-page.php+133
    Trying to access array offset on value of type bool

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
  • 23× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'AWeberResponse' not found in wp-content/plugins/kolakube-email-forms/api/services/aweber/aweber_entry.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/kolakube-email-forms/api/services/activecampaign/Deal.class.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/kolakube-email-forms/api/services/activecampaign/Tracking.class.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/kolakube-email-forms/templates/email-form.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/kolakube-email-forms/api/services/activecampaign/Form.class.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/kolakube-email-forms/api/services/activecampaign/Automation.class.php:3
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/kolakube-email-forms/templates/email-form.php on line 12
    • > PHP Fatal error
      Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/kolakube-email-forms/api/services/activecampaign/Campaign.class.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/kolakube-email-forms/api/services/activecampaign/Contact.class.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/kolakube-email-forms/api/services/activecampaign/Group.class.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === kolakube-email-forms === )
You can take inspiration from this readme.txt

kolakube-email-forms/kolakube-email-forms.php 92% from 13 tests

"Kolakube Email Forms" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Everything looks great! No dangerous files found in this plugin3,413 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
PHP369391,2523,290
PO File14343123

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity8.58
▷ Minimum class complexity1.00
▷ Maximum class complexity52.00
Average method complexity2.13
▷ Minimum method complexity1.00
▷ Maximum method complexity41.00
Code structure
Namespaces0
Interfaces2
Traits0
Classes41
▷ Abstract classes00.00%
▷ Concrete classes41100.00%
▷ Final classes00.00%
Methods296
▷ Static methods20.68%
▷ Public methods27392.23%
▷ Protected methods217.09%
▷ Private methods20.68%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin