83% audit-charitable-donations

Code Review | Audit Charitable Donations Plugin

WordPress plugin Audit Charitable Donations Plugin scored83%from 54 tests.

About plugin

  • Plugin page: audit-charitable-...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.2.1
  • WordPress version: 6.3.1
  • First release: Nov 3, 2018
  • Latest release: May 27, 2019
  • Number of updates: 11
  • Update frequency: every 19.1 days
  • Top authors: imani3011 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /934 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.33ms] Passed 4 tests

An overview of server-side resources used by Audit Charitable Donations Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.85 ▼0.15
Dashboard /wp-admin3.31 ▲0.0146.86 ▼3.76
Posts /wp-admin/edit.php3.43 ▲0.0747.81 ▲2.87
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.53 ▼6.23
Media Library /wp-admin/upload.php3.24 ▲0.0136.73 ▲0.82

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Audit Charitable Donations Plugin: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲9713.30 ▼1.281.86 ▼0.0342.41 ▼5.98
Dashboard /wp-admin2,213 ▲385.84 ▲0.88101.76 ▼22.7244.76 ▲2.20
Posts /wp-admin/edit.php2,095 ▲62.04 ▲0.0242.66 ▲5.8238.19 ▲3.95
Add New Post /wp-admin/post-new.php1,540 ▲723.03 ▼0.04624.64 ▼61.7454.47 ▲5.58
Media Library /wp-admin/upload.php1,398 ▲104.22 ▼0.0398.17 ▼6.7042.38 ▼5.21

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_admin_expenses() in wp-content/plugins/audit-charitable-donations/includes/admin/views/expenses/add-expense.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #4 (Detailed Donations Audit Report) image missing
Please take inspiration from this readme.txt

audit-charitable-donations/audit-charitable-donations.php 85% from 13 tests

"Audit Charitable Donations Plugin" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 145 characters long)
  • Requires at least: Required version does not match the one declared in readme.txt ("4.1" instead of "4.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin4,986 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript33973,5843,452
CSS31123813
PHP17231767721

PHP code Passed 2 tests

A short review of 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.22
Average class complexity4.89
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity1.71
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods49
▷ Static methods510.20%
▷ Public methods3877.55%
▷ Protected methods36.12%
▷ Private methods816.33%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin