74% tip-my-work-hostjane-payments

Code Review | Tip My Work - HostJane Payments

WordPress plugin Tip My Work - HostJane Payments scored74%from 54 tests.

About plugin

  • Plugin page: tip-my-work-hostj...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Apr 15, 2022
  • Latest release: Apr 9, 2023
  • Number of updates: 13
  • Update frequency: every 27.6 days
  • Top authors: hostjane (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /731 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼5.50ms] Passed 4 tests

Server-side resources used by Tip My Work - HostJane Payments
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0542.37 ▼0.57
Dashboard /wp-admin3.35 ▲0.0558.13 ▲0.13
Posts /wp-admin/edit.php3.40 ▲0.0548.21 ▼5.12
Add New Post /wp-admin/post-new.php5.93 ▲0.0583.66 ▼16.42
Media Library /wp-admin/upload.php3.27 ▲0.0437.26 ▲4.72

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: 1 new table, 6 new options
New tables
wp_hostjane
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Tip My Work - HostJane Payments
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲9113.25 ▼1.124.68 ▲2.6142.32 ▼1.57
Dashboard /wp-admin2,213 ▲255.90 ▼0.18111.29 ▼0.6076.86 ▲32.22
Posts /wp-admin/edit.php2,111 ▲222.00 ▼0.0634.20 ▼7.0731.06 ▼3.03
Add New Post /wp-admin/post-new.php1,685 ▲14322.55 ▲4.26782.13 ▲129.0352.39 ▼13.74
Media Library /wp-admin/upload.php1,410 ▲194.18 ▼0.04111.67 ▲11.4744.40 ▲2.30

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
It is recommended to fix the following
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_hostjane
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function hostjane_getConfig() in wp-content/plugins/tip-my-work-hostjane-payments/admin/index.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/tip-my-work-hostjane-payments/hostjane.php:250

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (12 tag instead of maximum 10)
The official readme.txt might help

tip-my-work-hostjane-payments/hostjane.php 92% from 13 tests

This is the main PHP file of "Tip My Work - HostJane Payments" version 1.0.2, 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:
  • Main file name: Name the main plugin file the same as the plugin slug ("tip-my-work-hostjane-payments.php" instead of "hostjane.php")

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
Success! There were no dangerous files found in this plugin828 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS1779402
PHP23552302
JavaScript180106
SVG10018

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.39
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
2 compressed PNG files occupy 0.05MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/hostjane.png52.37KB59.95KB0.00%
assets/icon.png0.89KB0.84KB▼ 4.63%