90% tip-button-from-inditip

Code Review | Tip button from IndiTip

WordPress plugin Tip button from IndiTip scored90%from 54 tests.

About plugin

  • Plugin page: tip-button-from-i...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Feb 22, 2017
  • Latest release: Jul 3, 2017
  • Number of updates: 22
  • Update frequency: every 5.9 days
  • Top authors: inditip (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /671 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▼1.49ms] Passed 4 tests

Server-side resources used by Tip button from IndiTip
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1735.36 ▼7.03
Dashboard /wp-admin3.48 ▲0.1847.00 ▼2.06
Posts /wp-admin/edit.php3.60 ▲0.2448.70 ▲1.42
Add New Post /wp-admin/post-new.php6.08 ▲0.2089.84 ▲1.72
Media Library /wp-admin/upload.php3.41 ▲0.1836.55 ▲3.31
Plugin Settings /wp-admin/options-general.php?page=tip_button_from_inditip_settings3.3731.88

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Tip button from IndiTip
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,905 ▲11913.81 ▼0.477.97 ▲5.8940.19 ▼3.86
Dashboard /wp-admin2,203 ▲235.65 ▲0.0092.85 ▲5.8442.66 ▲3.69
Posts /wp-admin/edit.php2,108 ▲82.02 ▼0.0040.20 ▲3.8234.80 ▼8.20
Add New Post /wp-admin/post-new.php1,545 ▲823.20 ▲4.93651.93 ▼2.5162.34 ▼22.68
Media Library /wp-admin/upload.php1,402 ▲24.18 ▲0.0196.14 ▼10.4341.98 ▼0.65
Plugin Settings /wp-admin/options-general.php?page=tip_button_from_inditip_settings8231.8033.4029.09

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • tip_button_from_inditip_version
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: plugin, inditip, wordpress

tip-button-from-inditip/tip-button-from-inditip.php 92% from 13 tests

The entry point to "Tip button from IndiTip" version 2.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Requires at least: Required version must match the one declared in readme.txt ("3.9" instead of "4.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin664 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP8221448649
JavaScript44015

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity21.60
▷ Minimum class complexity5.00
▷ Maximum class complexity61.00
Average method complexity3.40
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods43
▷ Static methods24.65%
▷ Public methods4093.02%
▷ Protected methods00.00%
▷ Private methods36.98%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin