79% tip-jar-wp

Code Review | Tip Jar WP

WordPress plugin Tip Jar WP scored 79% from 54 tests.

About plugin

  • Plugin page: tip-jar-wp
  • Plugin version: 2.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.3
  • WordPress version: 6.3.1
  • First release: Aug 2, 2019
  • Latest release: Aug 15, 2023
  • Number of updates: 21
  • Update frequency: every 70.3 days
  • Top authors: tipjarwp (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

300+ active / 5,976 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Tip Jar WP
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.3155.46 ▲14.51
Dashboard /wp-admin3.49 ▲0.1959.80 ▲13.16
Posts /wp-admin/edit.php3.54 ▲0.1960.81 ▲12.36
Add New Post /wp-admin/post-new.php6.03 ▲0.15104.26 ▲12.67
Media Library /wp-admin/upload.php3.35 ▲0.1255.43 ▲24.14

Server storage [IO: ▲3.39MB] [DB: ▲0.01MB] 67% from 3 tests

Filesystem and database footprint
Please fix the following
  • The plugin illegally modified 1 file (8.90KB) outside of "wp-content/plugins/tip-jar-wp/" and "wp-content/uploads/"
    • (new file) .well-known/apple-developer-merchantid-domain-association
Filesystem: 202 new files
Database: 6 new tables, 12 new options
New tables
wp_tip_jar_wp_forms
wp_tip_jar_wp_logs
wp_tip_jar_wp_notes
wp_tip_jar_wp_arrangements
wp_tip_jar_wp_download_logs
wp_tip_jar_wp_transactions
New WordPress options
db_upgraded
theysaidso_admin_options
wp_tip_jar_wp_transactions_db_version
widget_recent-comments
wp_tip_jar_wp_notes_db_version
wp_tip_jar_wp_forms_db_version
widget_recent-posts
can_compress_scripts
wp_tip_jar_wp_logs_db_version
wp_tip_jar_wp_arrangements_db_version
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Tip Jar WP
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,964 ▲20719.63 ▲5.2624.79 ▲22.6737.90 ▼5.05
Dashboard /wp-admin2,320 ▲1347.75 ▲2.80162.02 ▲51.2936.44 ▼8.19
Posts /wp-admin/edit.php2,201 ▲1155.22 ▲3.1777.94 ▲38.9331.19 ▼3.33
Add New Post /wp-admin/post-new.php6,550 ▲5,03628.01 ▲10.46995.38 ▲307.7054.06 ▼5.86
Media Library /wp-admin/upload.php1,504 ▲1136.76 ▲2.54162.06 ▲56.9646.86 ▲3.71

Uninstaller [IO: ▲0.01MB] [DB: ▲0.01MB] 50% 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 tables detected upon uninstall: 6 tables
    • wp_tip_jar_wp_forms
    • wp_tip_jar_wp_download_logs
    • wp_tip_jar_wp_logs
    • wp_tip_jar_wp_transactions
    • wp_tip_jar_wp_notes
    • wp_tip_jar_wp_arrangements
  • This plugin does not fully uninstall, leaving 12 options in the database
    • db_upgraded
    • wp_tip_jar_wp_forms_db_version
    • widget_recent-posts
    • can_compress_scripts
    • wp_tip_jar_wp_notes_db_version
    • wp_tip_jar_wp_arrangements_db_version
    • wp_tip_jar_wp_transactions_db_version
    • widget_recent-comments
    • wp_tip_jar_wp_logs_db_version
    • wp_tip_jar_wp_download_logs_db_version
    • ...

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 86% 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 your attention:
  • Screenshots: Please a description for screenshot #15 in tip-jar-wp/assets to your readme.txt
You can look at the official readme.txt

tip-jar-wp/tip-jar-wp.php 77% from 13 tests

This is the main PHP file of "Tip Jar WP" version 2.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")
  • Description: Keep the plugin description shorter than 140 characters (currently 144 characters long)
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")

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
Everything looks great! No dangerous files found in this plugin28,731 lines of code in 185 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript773,5641,16713,680
PHP963,4795,84513,124
CSS687391,845
Markdown16045
SVG50037

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity17.68
▷ Minimum class complexity3.00
▷ Maximum class complexity67.00
Average method complexity2.91
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes19
▷ Abstract classes15.26%
▷ Concrete classes1894.74%
▷ Final classes15.56%
Methods166
▷ Static methods10.60%
▷ Public methods14084.34%
▷ Protected methods137.83%
▷ Private methods137.83%
Functions210
▷ Named functions210100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.21MB with 0.15MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/closebtn.png4.90KB1.03KB▼ 79.05%
assets/images/flags/flags.png209.85KB77.62KB▼ 63.01%