62% kama-wp-smile

Code Review | Kama WP Smiles

WordPress plugin Kama WP Smiles scored62%from 54 tests.

About plugin

  • Plugin page: kama-wp-smile
  • Plugin version: 1.9.12
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.6
  • WordPress version: 6.3.1
  • First release: Jan 26, 2014
  • Latest release: Mar 2, 2021
  • Number of updates: 99
  • Update frequency: every 26.2 days
  • Top authors: Tkama (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

500+ active /17,212 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▲1.45ms] Passed 4 tests

Analyzing server-side resources used by Kama WP Smiles
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0837.60 ▼0.49
Dashboard /wp-admin3.44 ▲0.1348.55 ▲1.41
Posts /wp-admin/edit.php3.54 ▲0.1948.25 ▲4.27
Add New Post /wp-admin/post-new.php6.01 ▲0.1293.82 ▲4.93
Media Library /wp-admin/upload.php3.35 ▲0.1233.76 ▲0.59
Kama WP Smiles /wp-admin/options-general.php?page=kama_wp_smiles_opt3.3629.47

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 148 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
kwsmile_opt
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Kama WP Smiles
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲6514.43 ▲0.071.81 ▲0.0944.92 ▲0.08
Dashboard /wp-admin2,229 ▲525.56 ▼0.0984.08 ▼3.7239.04 ▼0.03
Posts /wp-admin/edit.php2,112 ▲122.02 ▼0.0036.50 ▲0.0232.59 ▼6.19
Add New Post /wp-admin/post-new.php1,546 ▲1818.24 ▼5.04606.76 ▼74.7175.30 ▲17.37
Media Library /wp-admin/upload.php1,412 ▲124.25 ▼0.0495.48 ▼7.4242.34 ▼2.49
Kama WP Smiles /wp-admin/options-general.php?page=kama_wp_smiles_opt1,2382.3339.3846.28

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
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/kama-wp-smile/uninstall.php+30
    Non-static method Kama_WP_Smiles::get_dir_smile_names() should not be called statically
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: acute
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: aggressive
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: air_kiss
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: angel
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: bad
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: bb
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: beach
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: beee
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: big_boss
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: blum
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: blush
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: boast
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: bomb
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: boredom
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: bravo
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: buba
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: bye
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: cool
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: crazy
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: cry
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: curtsey
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: dance
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: dash
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: dash2
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: declare
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: diablo
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: don-t_mention
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: drinks
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: focus
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: fool
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: friends
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: gamer
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: gamer4
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: give_rose
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: good
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: heart
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: help
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: hi
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: kiss
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: laugh1
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: mail
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: mda
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: mosking
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: music
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: negative
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: no
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: ok
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: pardon
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: popcorm
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: punish
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: rofl
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: rtfm
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: sarcastic
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: search
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: secret
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: shock
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: shout
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: sorry
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: thank_you
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: unknw
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: vava
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: victory
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: wacko
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: wink
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: yes
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: yess
    • > GET request to /wp-admin/options-general.php?page=kama_wp_smiles_opt
    • > Notice in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php+269
    Undefined index: yu

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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/kama-wp-smile/admin/admin-page.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Kama_WP_Smiles' not found in wp-content/plugins/kama-wp-smile/class.Kama_WP_Smiles_Admin.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_file_data() in wp-content/plugins/kama-wp-smile/kama_wp_smiles.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: comments, optimization, smiles, posts

kama-wp-smile/kama_wp_smiles.php 85% from 13 tests

The main PHP script in "Kama WP Smiles" version 1.9.12 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("kama-wp-smile.php" instead of "kama_wp_smiles.php")
  • Domain Path: The domain path folder was not found ("/languages")

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 plugin686 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP6243235661
CSS18425

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.38
Average class complexity32.00
▷ Minimum class complexity26.00
▷ Maximum class complexity38.00
Average method complexity3.21
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods28
▷ Static methods310.71%
▷ Public methods2796.43%
▷ Protected methods13.57%
▷ Private methods00.00%
Functions10
▷ Named functions990.00%
▷ Anonymous functions110.00%
Constants5
▷ Global constants480.00%
▷ Class constants120.00%
▷ Public constants1100.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
No PNG images were found in this plugin