84% dropp-pay-tipping

Code Review | Dropp Pay Tipping

WordPress plugin Dropp Pay Tipping scored84%from 54 tests.

About plugin

  • Plugin page: dropp-pay-tipping
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.1.1
  • WordPress version: 6.3.1
  • First release: Nov 23, 2022
  • Latest release: Dec 3, 2022
  • Number of updates: 7
  • Update frequency: every 2.3 days
  • Top authors: droppapp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /522 total downloads

Benchmarks

Plugin footprint 83% 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.15MB] [CPU: ▼4.70ms] Passed 4 tests

An overview of server-side resources used by Dropp Pay Tipping
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1445.51 ▼5.05
Dashboard /wp-admin3.45 ▲0.1551.98 ▼5.83
Posts /wp-admin/edit.php3.56 ▲0.2149.35 ▼4.21
Add New Post /wp-admin/post-new.php6.03 ▲0.1594.85 ▼3.69
Media Library /wp-admin/upload.php3.37 ▲0.1536.92 ▼1.70
Settings /wp-admin/admin.php?page=dropp-cc-settings3.4841.12
Profile /wp-admin/admin.php?page=dropp-cc3.4139.92
Logs /wp-admin/admin.php?page=dropp-cc-logs3.3740.77

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 30 new files
Database: 1 new table, 7 new options
New tables
wp_dropp_logs
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_droppcc_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Dropp Pay Tipping
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,548 ▲78717.52 ▲2.96840.31 ▲838.0142.01 ▼0.57
Dashboard /wp-admin2,211 ▲315.56 ▼0.1685.72 ▼5.7378.34 ▲38.46
Posts /wp-admin/edit.php2,128 ▲281.99 ▼0.0239.00 ▼0.3035.29 ▼0.60
Add New Post /wp-admin/post-new.php1,550 ▲2423.41 ▲0.26718.48 ▲90.2155.14 ▼3.06
Media Library /wp-admin/upload.php1,431 ▲344.14 ▲0.05107.24 ▲1.1467.22 ▲20.74
Settings /wp-admin/admin.php?page=dropp-cc-settings1,5233.1441.9473.02
Profile /wp-admin/admin.php?page=dropp-cc1,1733.1840.3473.22
Logs /wp-admin/admin.php?page=dropp-cc-logs1,0142.9741.3151.44

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 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 50% from 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
Please fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/dropp-pay-tipping/includes/widget/widget-like-button.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/dropp-pay-tipping/includes/widget/widget-tipping.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: like button, micropayment, donation, tipping, low fee tipping

dropp-pay-tipping/dropp-pay-tipping.php 92% from 13 tests

The main file in "Dropp Pay Tipping" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Domain Path: The domain path is invalid: folder "/i18n/languages/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,799 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP14292811,370
CSS2543275
JavaScript24411154

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity15.67
▷ Minimum class complexity1.00
▷ Maximum class complexity35.00
Average method complexity2.96
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods45
▷ Static methods1533.33%
▷ Public methods3782.22%
▷ Protected methods00.00%
▷ Private methods817.78%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
5 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/logo-dropp@2x.png6.57KB7.04KB0.00%
assets/images/like-icon.png7.56KB1.82KB▼ 75.89%
assets/images/dropp-icon.png1.12KB1.12KB0.00%
assets/images/dropp-menu-icon.png1.11KB0.80KB▼ 27.74%
assets/images/dropp_logo_white.png22.39KB7.14KB▼ 68.12%