78% wask-marketing

Code Review | Wask Marketing

WordPress plugin Wask Marketing scored78%from 54 tests.

About plugin

  • Plugin page: wask-marketing
  • Plugin version: 1.23
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.5
  • WordPress version: 6.3.1
  • First release: Dec 15, 2020
  • Latest release: Oct 7, 2022
  • Number of updates: 11
  • Update frequency: every 60.1 days
  • Top authors: waskdeveloper (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /695 total downloads

Benchmarks

Plugin footprint 83% 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.07MB] [CPU: ▼3.83ms] Passed 4 tests

Server-side resources used by Wask Marketing
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0747.80 ▼1.85
Dashboard /wp-admin3.38 ▲0.0750.48 ▼2.63
Posts /wp-admin/edit.php3.43 ▲0.0753.35 ▲4.31
Add New Post /wp-admin/post-new.php5.98 ▲0.0986.81 ▼5.41
Media Library /wp-admin/upload.php3.31 ▲0.0734.61 ▼5.41
Audience List /wp-admin/admin.php?page=audience_list3.3035.41
Create Audience /wp-admin/admin.php?page=wask3.2832.43
Facebook Pixel /wp-admin/admin.php?page=facebook_pixel3.2931.58

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Wask Marketing
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲6814.80 ▲0.261.73 ▼0.2043.37 ▲0.18
Dashboard /wp-admin2,235 ▲615.73 ▲0.1698.43 ▼2.4442.97 ▼3.14
Posts /wp-admin/edit.php2,140 ▲432.23 ▲0.2640.41 ▲1.1037.19 ▲0.87
Add New Post /wp-admin/post-new.php1,559 ▲3323.09 ▼0.52685.47 ▼13.7267.76 ▲4.63
Media Library /wp-admin/upload.php1,443 ▲434.33 ▲0.12100.51 ▼16.7742.73 ▼6.01
Audience List /wp-admin/admin.php?page=audience_list8551.9227.1129.63
Create Audience /wp-admin/admin.php?page=wask8871.9525.4731.24
Facebook Pixel /wp-admin/admin.php?page=facebook_pixel8551.9827.3330.99

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=facebook_pixel
    • > Notice in wp-content/plugins/wask-marketing/include/activation.php+2
    Undefined index: submit

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
  • 7× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wask-marketing/include/activation.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wask-marketing/views/audience_list.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/wask-marketing/views/activation.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wask-marketing/views/facebook_pixel.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wask-marketing/views/create_audience.php:2
    • > PHP Notice
      Undefined index: submit in wp-content/plugins/wask-marketing/include/activation.php on line 2
    • > PHP Notice
      Undefined variable: activation in wp-content/plugins/wask-marketing/include/user.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Requires php: Invalid version format
Please take inspiration from this readme.txt

wask-marketing/wask-marketing.php Passed 13 tests

This is the main PHP file of "Wask Marketing" version 1.23, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
115 characters long description:
This plugin is designed to create a lookalike audience and adds Facebook pixel - Google analytic code your website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected3,457 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
CSS25701,479
PHP715927991
JavaScript200987

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity48.00
▷ Minimum class complexity48.00
▷ Maximum class complexity48.00
Average method complexity4.13
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods1493.33%
▷ Protected methods00.00%
▷ Private methods16.67%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There are no PNG files in this plugin