10% kudos

Code Review | Kudos

WordPress plugin Kudos scored 10% from 54 tests.

About plugin

  • Plugin page: kudos
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.9
  • WordPress version: 6.3.1
  • First release: Apr 16, 2013
  • Latest release: Jan 29, 2014
  • Number of updates: 12
  • Update frequency: every 24.0 days
  • Top authors: a.hoereth (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

20+ active / 3,286 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/kudos/php/functions.php+37
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.69ms] Passed 4 tests

Server-side resources used by Kudos
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.44 ▼0.0239.95 ▼0.90
Dashboard /wp-admin3.34 ▲0.0446.66 ▼2.93
Posts /wp-admin/edit.php3.39 ▲0.0446.94 ▼3.29
Add New Post /wp-admin/post-new.php5.92 ▲0.0485.33 ▼19.63
Media Library /wp-admin/upload.php3.27 ▲0.0434.13 ▲0.40
Kudos /wp-admin/options-general.php?page=kudos3.1026.39

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
kudos

Browser metrics Passed 4 tests

Kudos: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,917 ▲18213.64 ▼0.7410.27 ▲8.5837.31 ▼6.32
Dashboard /wp-admin2,207 ▲195.81 ▲0.9598.67 ▼6.6439.05 ▼2.34
Posts /wp-admin/edit.php2,093 ▲42.02 ▼0.0239.25 ▼1.4135.68 ▲0.87
Add New Post /wp-admin/post-new.php1,536 ▲223.17 ▼0.09691.59 ▲42.8451.76 ▼4.03
Media Library /wp-admin/upload.php1,395 ▲74.20 ▼0.0998.70 ▼1.5743.77 ▼3.86
Kudos /wp-admin/options-general.php?page=kudos1,3011.7324.7049.71

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • 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 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=kudos
    • > Warning in wp-content/plugins/kudos/php/settings.php+50
    Use of undefined constant FVP_VERSION - assumed 'FVP_VERSION' (this will throw an Error in a future version of PHP)
    • > GET request to /wp-admin/options-general.php?page=kudos
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=kudos
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=kudos
    • > Notice in wp-content/plugins/kudos/php/settings.php+199
    Undefined offset: 1

SRP 50% 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/kudos/kudos.php:33

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 Passed 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
9 plugin tags: star, plus, svbtlecom, ajax, like...

kudos/kudos.php Passed 13 tests

The primary PHP file in "Kudos" version 1.1.1 is used by WordPress to initiate all plugin functionality
37 characters long description:
Svbtle.com style kudos for your blog.

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
Everything looks great! No dangerous files found in this plugin1,185 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP9138282640
JavaScript36348287
CSS2100258

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity14.60
▷ Minimum class complexity7.00
▷ Maximum class complexity28.00
Average method complexity3.43
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods28
▷ Static methods00.00%
▷ Public methods28100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/heart_60x60.png2.14KB0.78KB▼ 63.51%