83% everfund

Code Review | Everfund Donation Widget

WordPress plugin Everfund Donation Widget scored83%from 54 tests.

About plugin

  • Plugin page: everfund
  • Plugin version: 1.3.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.9.0
  • WordPress version: 6.3.1
  • First release: Oct 6, 2021
  • Latest release: May 25, 2022
  • Number of updates: 9
  • Update frequency: every 25.7 days
  • Top authors: burnedchris (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /387 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
This plugin's installer ran successfully

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

Analyzing server-side resources used by Everfund Donation Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.65 ▼3.82
Dashboard /wp-admin3.33 ▼0.0246.76 ▼18.01
Posts /wp-admin/edit.php3.38 ▲0.0252.35 ▼0.28
Add New Post /wp-admin/post-new.php5.91 ▲0.0299.03 ▼1.87
Media Library /wp-admin/upload.php3.25 ▲0.0235.03 ▼2.84

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Everfund Donation Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲7414.00 ▼0.7551.84 ▲50.0637.16 ▼4.85
Dashboard /wp-admin2,216 ▲365.60 ▼0.1193.93 ▲4.3445.24 ▲6.13
Posts /wp-admin/edit.php2,118 ▲182.04 ▲0.0440.36 ▲3.6044.73 ▲3.07
Add New Post /wp-admin/post-new.php1,541 ▲917.66 ▼5.59642.76 ▼51.4355.06 ▼3.99
Media Library /wp-admin/upload.php1,415 ▲154.25 ▼0.03106.27 ▲1.7746.97 ▲1.52

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/everfund/everfund.php:75

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 83% 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 require attention:
  • Tags: Please delete some tags, you are using 20 tag instead of maximum 10
You can look at the official readme.txt

everfund/everfund.php 69% from 13 tests

The primary PHP file in "Everfund Donation Widget" version 1.3.3 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 211 characters long)
  • Requires PHP: Required version must match the one declared in readme.txt ("5.3" instead of "7.0")
  • Requires at least: Required version must match the one declared in readme.txt ("4.5.0" instead of "5.3")
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

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
Everything looks great! No dangerous files found in this plugin185 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
TypeScript40762
CSS18061
PHP181359
JavaScript3033

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.03
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 2.67MB with 1.64MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png101.54KB29.46KB▼ 70.99%
assets/screenshot-1.png1,558.29KB631.04KB▼ 59.50%
assets/icon-128x128.png4.45KB2.13KB▼ 52.20%
assets/screenshot-2.png780.61KB335.93KB▼ 56.97%
assets/banner-1544x500.png284.96KB92.43KB▼ 67.56%