10% raisedonors

Code Review | RaiseDonors

WordPress plugin RaiseDonors scored 10% from 54 tests.

About plugin

  • Plugin page: raisedonors
  • Plugin version: 1.0.7
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.9
  • WordPress version: 5.9.2
  • First release: Dec 22, 2020
  • Latest release: Feb 23, 2022
  • Number of updates: 17
  • Update frequency: every 25.4 days
  • Top authors: raisedonors (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 323 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/raisedonors/includes/class-raise-donors.php+185
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼2.53MB] [CPU: ▼341.49ms] Passed 4 tests

This is a short check of server-side resources used by RaiseDonors
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /1.84 ▼1.685.05 ▼46.26
Dashboard /wp-admin1.86 ▼1.554.29 ▼29.00
Posts /wp-admin/edit.php1.86 ▼1.784.48 ▼31.46
Add New Post /wp-admin/post-new.php1.86 ▼5.113.83 ▼1,259.22
Media Library /wp-admin/upload.php1.86 ▼1.444.57 ▼19.59
RaiseDonors /wp-admin/options-general.php?page=raise-donors-settings1.865.42

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 99 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

RaiseDonors: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,943 ▲18916.98 ▲1.319.49 ▲3.202.42 ▼0.09
Dashboard /wp-admin2,941 ▲907.12 ▲0.87132.73 ▼2.94165.07 ▲3.88
Posts /wp-admin/edit.php2,743 ▲493.30 ▲0.0566.74 ▲3.63162.79 ▲21.51
Add New Post /wp-admin/post-new.php1,793 ▲13221.34 ▲4.72475.40 ▲80.42168.45 ▲2.71
Media Library /wp-admin/upload.php1,750 ▲526.04 ▲0.56125.63 ▼18.28181.81 ▼2.95
RaiseDonors /wp-admin/options-general.php?page=raise-donors-settings1,0623.1253.32121.57

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
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/raisedonors/includes/class-raise-donors.php+185
    Trying to access array offset on value of type bool

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=raise-donors-settings
    • > Notice in wp-content/plugins/raisedonors/includes/class-raise-donors.php+195
    Trying to access array offset on value of type bool

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 trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/raisedonors/includes/class-raise-donors-elementor-widget.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: online fundraising, donation pages, raisedonors, donate

raisedonors/raise-donors.php 85% from 13 tests

The main file in "RaiseDonors" v. 1.0.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("raisedonors.php" instead of "raise-donors.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
No dangerous file extensions were detected10,996 lines of code in 91 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript682,5998059,884
PHP16211624671
CSS7574441

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity3.27
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity1.47
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods55
▷ Static methods814.55%
▷ Public methods4785.45%
▷ Protected methods23.64%
▷ Private methods610.91%
Functions10
▷ Named functions550.00%
▷ Anonymous functions550.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/img/favicon-32x32.png0.58KB0.49KB▼ 16.56%