89% wp-tithely

Code Review | Tithe.ly Giving Button

WordPress plugin Tithe.ly Giving Button scored89%from 54 tests.

About plugin

  • Plugin page: wp-tithely
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.3
  • WordPress version: 6.3.1
  • First release: Jul 29, 2015
  • Latest release: Nov 12, 2019
  • Number of updates: 15
  • Update frequency: every 104.5 days
  • Top authors: jordesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

700+ active /4,724 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
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.31ms] Passed 4 tests

Analyzing server-side resources used by Tithe.ly Giving Button
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0166.59 ▼1.36
Dashboard /wp-admin3.33 ▲0.0276.45 ▼18.55
Posts /wp-admin/edit.php3.38 ▲0.0274.13 ▼12.10
Add New Post /wp-admin/post-new.php5.91 ▲0.02161.60 ▲15.82
Media Library /wp-admin/upload.php3.25 ▲0.0268.67 ▲2.79
Tithe.ly Giving Options /wp-admin/options-general.php?page=tithely-options3.2155.05

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_wp_tithely_widget
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Tithe.ly Giving Button
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3314.26 ▲0.233.29 ▼1.4376.00 ▲1.71
Dashboard /wp-admin2,210 ▲285.91 ▲1.02178.09 ▼5.7387.73 ▲4.69
Posts /wp-admin/edit.php2,093 ▲12.01 ▲0.0261.76 ▼11.2967.91 ▼18.11
Add New Post /wp-admin/post-new.php1,428 ▲2917.40 ▼0.44905.53 ▼38.6981.55 ▲2.18
Media Library /wp-admin/upload.php1,395 ▲134.18 ▼0.21177.22 ▼10.9791.06 ▼7.76
Tithe.ly Giving Options /wp-admin/options-general.php?page=tithely-options8752.0541.1486.54

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_wp_tithely_widget
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === wp-tithely === )
You can take inspiration from this readme.txt

wp-tithely/wp-tithely.php 92% from 13 tests

Analyzing the main PHP file in "Tithe.ly Giving Button" version 1.1
The following require your attention:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin270 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP26654270

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity10.00
▷ Minimum class complexity7.00
▷ Maximum class complexity13.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin