68% skytake

Code Review | Skytake - WordPress Email Marketing Plugin

WordPress plugin Skytake - WordPress Email Marketing Plugin scored68%from 54 tests.

About plugin

  • Plugin page: skytake
  • Plugin version: 0.34.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.3
  • WordPress version: 6.3.1
  • First release: Nov 21, 2019
  • Latest release: Nov 22, 2019
  • Number of updates: 4
  • Update frequency: every 9.0 days
  • Top authors: delabon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /457 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.61MB] [CPU: ▲1.38ms] Passed 4 tests

An overview of server-side resources used by Skytake - WordPress Email Marketing Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.01 ▲0.5545.03 ▲2.98
Dashboard /wp-admin3.93 ▲0.6352.12 ▼1.00
Posts /wp-admin/edit.php3.99 ▲0.6352.54 ▲4.11
Add New Post /wp-admin/post-new.php6.51 ▲0.6399.17 ▼0.32
Media Library /wp-admin/upload.php3.86 ▲0.6340.31 ▲3.87
Campaigns /wp-admin/admin.php?page=skytake_campaigns3.9843.17
Subscribers /wp-admin/admin.php?page=skytake_subscribers3.9848.31
Documentation /wp-admin/admin.php?page=skytake_documentation3.8841.89
Skytake Leads & Sales /wp-admin/admin.php?page=skytake3.9842.78
Get Support /wp-admin/admin.php?page=skytake_support3.8840.82

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 193 new files
Database: 2 new tables, 8 new options
New tables
wp_skytake_emails
wp_skytake_campaigns
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_skytake_widget_output
widget_recent-comments
skytake_first_notice_hide
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Skytake - WordPress Email Marketing Plugin: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲8914.74 ▲0.121.74 ▼0.1539.61 ▼8.05
Dashboard /wp-admin2,241 ▲495.86 ▲0.9295.16 ▼22.8043.43 ▼2.35
Posts /wp-admin/edit.php2,124 ▲352.02 ▼0.0140.58 ▲5.8534.67 ▲2.16
Add New Post /wp-admin/post-new.php6,378 ▲4,86427.90 ▲10.36817.63 ▲121.1654.20 ▲3.61
Media Library /wp-admin/upload.php1,423 ▲354.24 ▲0.0897.30 ▼11.8041.56 ▼4.12
Campaigns /wp-admin/admin.php?page=skytake_campaigns1,2883.5557.2861.98
Subscribers /wp-admin/admin.php?page=skytake_subscribers1,2343.3844.6975.99
Documentation /wp-admin/admin.php?page=skytake_documentation1,1962.8623.9580.66
Skytake Leads & Sales /wp-admin/admin.php?page=skytake1,2913.3647.9279.20
Get Support /wp-admin/admin.php?page=skytake_support1,25216.08143.0356.83

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • The uninstall procedure failed, leaving 2 tables in the database
    • wp_skytake_campaigns
    • wp_skytake_emails
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_recent-posts
    • db_upgraded
    • skytake_first_notice_hide
    • widget_skytake_widget_output
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/skytake/index.php
  • 109× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/skytake/inc/config.php:21
    • > PHP Notice
      Undefined variable: panel in wp-content/plugins/skytake/inc/views/editor/panel-settings/social-media.php on line 8
    • > PHP Fatal error
      require(): Failed opening required 'SKYTAKE_PATH/inc/campaigns/popup/views/frontend/form.php' (include_path='.:/usr/share/php') in wp-content/plugins/skytake/inc/campaigns/scroll-box/views/frontend/form.php on line 1
    • > PHP Notice
      Undefined variable: campaign in wp-content/plugins/skytake/inc/campaigns/panels-variables.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/skytake/inc/views/admin/buttons.php:1
    • > PHP Notice
      Undefined variable: is_editor_mode in wp-content/plugins/skytake/inc/campaigns/floating-bar/views/frontend/form.php on line 1
    • > PHP Notice
      Undefined variable: campaign in wp-content/plugins/skytake/inc/campaigns/panels-variables.php on line 7
    • > PHP Fatal error
      Uncaught Error: Class 'SKYT\\Campaign_UI' not found in wp-content/plugins/skytake/inc/campaigns/widget-form/class-widget-form.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Delabon\\WP\\List_Table' not found in wp-content/plugins/skytake/inc/class-subscriber-list-table.php:8
    • > PHP Fatal error
      Uncaught Error: Call to a member function setting() on null in wp-content/plugins/skytake/inc/campaigns/panels-variables.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

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
8 plugin tags: coupon, marketing, email marketing, lead, lead generation...

skytake/index.php 92% from 13 tests

The principal PHP file in "Skytake - WordPress Email Marketing Plugin" v. 0.34.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("skytake.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin13,201 lines of code in 127 files:
LanguageFilesBlank linesComment linesLines of code
PHP861,9921,6787,267
CSS205581623,053
JavaScript167633882,010
SVG316805
Markdown234066

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity10.82
▷ Minimum class complexity1.00
▷ Maximum class complexity67.00
Average method complexity2.59
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces9
Interfaces0
Traits0
Classes33
▷ Abstract classes13.03%
▷ Concrete classes3296.97%
▷ Final classes00.00%
Methods205
▷ Static methods4923.90%
▷ Public methods18690.73%
▷ Protected methods104.88%
▷ Private methods94.39%
Functions36
▷ Named functions2980.56%
▷ Anonymous functions719.44%
Constants11
▷ Global constants1090.91%
▷ Class constants19.09%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
41 PNG files occupy 0.48MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/templates/floating_bar/classic.png6.43KB2.98KB▼ 53.62%
inc/skins/classic/img/fb-bg.png3.65KB2.24KB▼ 38.57%
lib/delabon/wp/assets/img/ui-bg_glass_95_fef1ec_1x400.png0.11KB0.14KB0.00%
lib/delabon/wp/assets/img/ui-bg_glass_65_ffffff_1x400.png0.08KB0.10KB0.00%
lib/delabon/wp/assets/img/ui-icons_454545_256x240.png3.69KB4.18KB0.00%