46% splashmaker

Code Review | SplashMaker

WordPress plugin SplashMaker scored46%from 54 tests.

About plugin

  • Plugin page: splashmaker
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0.33+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Sep 13, 2021
  • Latest release: Apr 27, 2023
  • Number of updates: 20
  • Update frequency: every 29.7 days
  • Top authors: splashmetrics (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /475 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.23MB] [CPU: ▼4.66ms] Passed 4 tests

A check of server-side resources used by SplashMaker
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2239.25 ▲2.01
Dashboard /wp-admin3.54 ▲0.1949.51 ▼10.61
Posts /wp-admin/edit.php3.65 ▲0.2948.82 ▲4.84
Add New Post /wp-admin/post-new.php6.23 ▲0.3486.60 ▼12.85
Media Library /wp-admin/upload.php3.46 ▲0.2338.35 ▲2.80
Personalization Form /wp-admin/admin.php?page=splash_form_gate3.5734.77
Dynamic Content /wp-admin/edit.php?post_type=dynamic_content3.5036.92
Dashboard /wp-admin/admin.php?page=splash_activation_dashboard3.4331.08

Server storage [IO: ▲2.26MB] [DB: ▲0.01MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 61 new files
Database: 5 new tables, 10 new options
New tables
wp_splashmaker_settings
wp_splash_hubspot_logs
wp_wp_floating_menu_details
wp_wp_floating_menu_custom_templates
wp_splash_popup
New WordPress options
widget_recent-posts
widget_recent-comments
jal_db_version
splash_save_to_local
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
_flush
db_upgraded
wpfm-settings

Browser metrics Passed 4 tests

A check of browser resources used by SplashMaker
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,974 ▲22813.76 ▼0.656.02 ▲4.5443.87 ▲5.04
Dashboard /wp-admin2,279 ▲1026.03 ▲0.4691.75 ▲3.7779.36 ▲38.84
Posts /wp-admin/edit.php2,200 ▲1002.62 ▲0.6138.61 ▲1.6034.35 ▼5.12
Add New Post /wp-admin/post-new.php1,603 ▲7523.50 ▲0.51680.14 ▲3.4136.14 ▼18.76
Media Library /wp-admin/upload.php1,499 ▲994.64 ▲0.43112.84 ▲1.6084.64 ▲38.92
Personalization Form /wp-admin/admin.php?page=splash_form_gate2,0382.9162.6381.21
Dynamic Content /wp-admin/edit.php?post_type=dynamic_content1,2812.6036.7929.70
Dashboard /wp-admin/admin.php?page=splash_activation_dashboard1,4096.2557.3529.74

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The plugin did not uninstall gracefully
    • > User deprecated in wp-includes/functions.php+5453
    Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
  • This plugin does not fully uninstall, leaving 5 tables in the database
    • wp_splashmaker_settings
    • wp_splash_popup
    • wp_wp_floating_menu_details
    • wp_wp_floating_menu_custom_templates
    • wp_splash_hubspot_logs
  • This plugin does not fully uninstall, leaving 10 options in the database
    • splash_save_to_local
    • _flush
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • jal_db_version
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • wpfm-settings
    • can_compress_scripts

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/admin.php?page=splash_form_gate
    • > Notice in wp-content/plugins/splashmaker/admin/partials/splashmaker-formpop-up.php+148
    Undefined offset: 0
    • > GET request to /wp-admin/admin.php?page=splash_form_gate
    • > Notice in wp-content/plugins/splashmaker/admin/partials/splashmaker-formpop-up.php+148
    Trying to access array offset on value of type null
    • > GET request to /wp-admin/admin.php?page=splash_form_gate
    • > Notice in wp-content/plugins/splashmaker/admin/partials/splashmaker-formpop-up.php+324
    Undefined variable: dynamic_content_value
    • > GET request to /wp-admin/admin.php?page=splash_form_gate
    • > Notice in wp-content/plugins/splashmaker/admin/partials/splashmaker-formpop-up.php+362
    Undefined variable: label_submit_button
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=splash_form_gate
    • > Notice in wp-content/plugins/splashmaker/admin/partials/splashmaker-formpop-up.php+444
    Undefined variable: fields_used
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=splash_form_gate
    • > Warning in wp-content/plugins/splashmaker/admin/partials/splashmaker-formpop-up.php+444
    in_array() expects parameter 2 to be array, null given

SRP 0% 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
Please fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/splashmaker/public/partials/splashmaker-public-display.php
    • > /wp-content/plugins/splashmaker/admin/partials/splashmaker-admin-display.php
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/splashmaker/admin/partials/splashmaker-activation-dashboard.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/splashmaker/admin/template/sm_custom_template.php:1
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/splashmaker/admin/partials/splashmaker-form-entries.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/splashmaker/admin/partials/splashmaker-formpop-up.php:131
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/splashmaker/admin/partials/splashmaker-form-entries.php:5

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=splash_activation_dashboard
    • > Other (warning) in unknown
    /wp-admin/admin.php?page=splash_activation_dashboard 321 Allow attribute will take precedence over 'allowfullscreen'.

Optimizations

Plugin configuration 96% from 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
6 plugin tags: forms, smart content, automation, analytics, crm...

splashmaker/splashmaker.php 92% from 13 tests

The entry point to "SplashMaker" version 1.0.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 192 characters long)

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
No dangerous file extensions were detected3,531 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
PHP193958851,852
CSS42711461,392
JavaScript858100281
SVG6006

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity6.73
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods63
▷ Static methods23.17%
▷ Public methods5688.89%
▷ Protected methods00.00%
▷ Private methods711.11%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 0% from 2 tests

Image compression 0% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 PNG files occupy 1.78MB with 1.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) admin/img/pass.png177.41KB0.00KB▼ 100.00%
admin/img/version02.png751.94KB210.79KB▼ 71.97%
admin/img/drag-reorder.png0.23KB0.20KB▼ 13.81%
admin/img/hubspot_logo_new.png13.36KB7.15KB▼ 46.49%
(invalid) admin/img/fail.png36.62KB0.00KB▼ 100.00%