83% philantro

Code Review | Philantro - Donations and Donor Management

WordPress plugin Philantro - Donations and Donor Management scored83%from 54 tests.

About plugin

  • Plugin page: philantro
  • Plugin version: 5.13
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.3.1
  • WordPress version: 6.3.1
  • First release: Feb 10, 2015
  • Latest release: Sep 12, 2023
  • Number of updates: 175
  • Update frequency: every 17.9 days
  • Top authors: Philantro (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

90+ active /4,253 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼10.66ms] Passed 4 tests

Server-side resources used by Philantro - Donations and Donor Management
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.87 ▼1.85
Dashboard /wp-admin3.35 ▲0.0147.29 ▼16.83
Posts /wp-admin/edit.php3.40 ▲0.0546.18 ▲2.00
Add New Post /wp-admin/post-new.php5.93 ▲0.0481.07 ▼24.85
Media Library /wp-admin/upload.php3.28 ▲0.0533.89 ▲0.88

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 47 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
db_upgraded
OID
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Philantro - Donations and Donor Management
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲8913.48 ▼0.898.99 ▲7.2042.39 ▼2.26
Dashboard /wp-admin2,215 ▲355.58 ▼0.0484.71 ▼5.4578.74 ▲37.17
Posts /wp-admin/edit.php2,120 ▲171.96 ▼0.0335.05 ▼4.1232.10 ▼7.37
Add New Post /wp-admin/post-new.php6,383 ▲4,84628.15 ▲9.91946.01 ▲327.8944.03 ▼25.55
Media Library /wp-admin/upload.php1,420 ▲174.16 ▼0.1395.80 ▼0.5975.79 ▲32.45

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • OID

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
Please fix the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/philantro/philantro.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/philantro/options.php:2

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

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 25 tag instead of maximum 10
Please take inspiration from this readme.txt

philantro/philantro.php 92% from 13 tests

The primary PHP file in "Philantro - Donations and Donor Management" version 5.13 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 253 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin5,340 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
SVG5003,086
HTML336301,473
PHP214127430
CSS220347
JavaScript4004

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.86MB with 0.53MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
asset/screen-4.png340.20KB127.97KB▼ 62.38%
asset/screen-3.png144.11KB43.81KB▼ 69.60%
asset/screen-5-mobile.png25.97KB10.17KB▼ 60.85%
asset/screen.png128.67KB40.75KB▼ 68.33%
asset/philantro-logo.png9.80KB5.37KB▼ 45.17%