78% churchtithewp

Code Review | Church Tithe WP

WordPress plugin Church Tithe WP scored78%from 54 tests.

About plugin

  • Plugin page: churchtithewp
  • Plugin version: 1.0.0.17
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.9
  • WordPress version: 6.3.1
  • First release: May 15, 2019
  • Latest release: Feb 16, 2022
  • Number of updates: 30
  • Update frequency: every 33.7 days
  • Top authors: churchtithewp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /3,704 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
Install script ran successfully

Server metrics [RAM: ▲1.73MB] [CPU: ▲14.00ms] Passed 4 tests

Server-side resources used by Church Tithe WP
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /5.30 ▲1.8358.61 ▲18.02
Dashboard /wp-admin5.03 ▲1.7266.89 ▲18.90
Posts /wp-admin/edit.php5.14 ▲1.7864.76 ▲16.45
Add New Post /wp-admin/post-new.php7.61 ▲1.7297.03 ▲2.61
Media Library /wp-admin/upload.php4.95 ▲1.7260.00 ▲26.17

Server storage [IO: ▲2.91MB] [DB: ▲0.00MB] 67% from 3 tests

Filesystem and database footprint
Please try to fix the following items
  • There were 1 file (8.90KB) illegally modified outside of "wp-content/plugins/churchtithewp/" and "wp-content/uploads/"
    • (new file) .well-known/apple-developer-merchantid-domain-association
Filesystem: 180 new files
Database: 2 new tables, 9 new options
New tables
wp_church_tithe_wp_arrangements
wp_church_tithe_wp_transactions
New WordPress options
wp_church_tithe_wp_arrangements_db_version
widget_recent-comments
wp_church_tithe_wp_transactions_db_version
ctwp_threshold_reset
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Church Tithe WP
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,921 ▲17516.53 ▲2.16177.94 ▲176.1841.67 ▼5.99
Dashboard /wp-admin2,239 ▲574.89 ▼0.93114.92 ▲10.1141.04 ▲2.44
Posts /wp-admin/edit.php2,126 ▲372.06 ▲0.0636.40 ▼1.8333.62 ▼2.00
Add New Post /wp-admin/post-new.php1,542 ▲2822.24 ▲4.68681.42 ▼34.5259.66 ▼3.40
Media Library /wp-admin/upload.php1,425 ▲344.15 ▼0.02111.76 ▲8.9947.67 ▲0.98

Uninstaller [IO: ▲0.01MB] [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
  • Zombie tables detected upon uninstall: 2 tables
    • wp_church_tithe_wp_transactions
    • wp_church_tithe_wp_arrangements
  • Zombie WordPress options detected upon uninstall: 9 options
    • widget_theysaidso_widget
    • wp_church_tithe_wp_arrangements_db_version
    • ctwp_threshold_reset
    • db_upgraded
    • theysaidso_admin_options
    • wp_church_tithe_wp_transactions_db_version
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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, but this is not an exhaustive test

Optimizations

Plugin configuration 83% 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
8 plugin tags: google pay, apple pay, recurring payments, church, giving...

churchtithewp/church-tithe-wp.php 62% from 13 tests

The primary PHP file in "Church Tithe WP" version 1.0.0.17 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 146 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("churchtithewp.php" instead of "church-tithe-wp.php")
  • Domain Path: Please prefix the domain path with a forward slash character ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin24,940 lines of code in 163 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript703,3151,02712,058
PHP812,6874,50411,152
CSS686381,680
Markdown16045
SVG5005

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity17.09
▷ Minimum class complexity3.00
▷ Maximum class complexity67.00
Average method complexity3.06
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes19.09%
▷ Concrete classes1090.91%
▷ Final classes110.00%
Methods86
▷ Static methods11.16%
▷ Public methods6879.07%
▷ Protected methods1315.12%
▷ Private methods55.81%
Functions184
▷ Named functions184100.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%