89% kliken-marketing-for-google

Code Review | AI Powered Marketing

WordPress plugin AI Powered Marketing scored89%from 54 tests.

About plugin

  • Plugin page: kliken-marketing-...
  • Plugin version: 1.4.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.3
  • WordPress version: 6.3.1
  • First release: Feb 19, 2020
  • Latest release: Oct 18, 2023
  • Number of updates: 31
  • Update frequency: every 43.2 days
  • Top authors: sitewit (100%)

Code review

54 tests

User reviews

27 reviews

Install metrics

100,000+ active /2,950,313 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.16MB] [CPU: ▲2.06ms] Passed 4 tests

A check of server-side resources used by AI Powered Marketing
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1746.50 ▲2.12
Dashboard /wp-admin3.45 ▲0.1556.75 ▲3.87
Posts /wp-admin/edit.php3.57 ▲0.2154.55 ▲7.49
Add New Post /wp-admin/post-new.php6.05 ▲0.17103.72 ▼5.08
Media Library /wp-admin/upload.php3.38 ▲0.1543.56 ▲7.31

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 53 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
woocommerce_kk_wcintegration_settings
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

AI Powered Marketing: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲6914.75 ▲0.401.91 ▲0.1545.90 ▲1.10
Dashboard /wp-admin2,211 ▲405.68 ▲0.11100.20 ▲12.0541.74 ▲1.43
Posts /wp-admin/edit.php2,116 ▲132.02 ▲0.0138.02 ▼0.1937.25 ▲1.74
Add New Post /wp-admin/post-new.php1,537 ▲223.30 ▲5.24669.11 ▲16.6359.42 ▼4.49
Media Library /wp-admin/upload.php1,416 ▲194.26 ▲0.10105.51 ▲0.4749.18 ▲4.83

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 18 tag instead of maximum 10
You can look at the official readme.txt

kliken-marketing-for-google/kliken-marketing-for-google.php 85% from 13 tests

The entry point to "AI Powered Marketing" version 1.4.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 190 characters long)
  • Requires at least: Required version does not match the one declared in readme.txt ("4.4" instead of "5.5")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,900 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP254468841,832
JavaScript210563
JSON1005

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity20.55
▷ Minimum class complexity1.00
▷ Maximum class complexity52.00
Average method complexity3.19
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods101
▷ Static methods4544.55%
▷ Public methods9493.07%
▷ Protected methods21.98%
▷ Private methods54.95%
Functions7
▷ Named functions228.57%
▷ Anonymous functions571.43%
Constants18
▷ Global constants1583.33%
▷ Class constants316.67%
▷ Public constants3100.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