10% raise-the-money

Code Review | Raise The Money

WordPress plugin Raise The Money scored10%from 54 tests.

About plugin

  • Plugin page: raise-the-money
  • Plugin version: 5.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.0
  • WordPress version: 6.3.1
  • First release: Jul 15, 2014
  • Latest release: Jul 19, 2022
  • Number of updates: 19
  • Update frequency: every 154.2 days
  • Top authors: Raise The Money (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,348 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/raise-the-money/raise-the-money-widget.php+2
    Methods with the same name as their class will not be constructors in a future version of PHP; RaiseTheMoneyWidget has a deprecated constructor

Server metrics [RAM: ▼1.93MB] [CPU: ▼58.58ms] Passed 4 tests

An overview of server-side resources used by Raise The Money
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.394.81 ▼34.35
Dashboard /wp-admin2.10 ▼1.256.59 ▼57.91
Posts /wp-admin/edit.php2.10 ▼1.268.25 ▼44.06
Add New Post /wp-admin/post-new.php2.10 ▼3.795.63 ▼98.00
Media Library /wp-admin/upload.php2.10 ▼1.145.22 ▼29.85

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Raise The Money: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5413.30 ▼1.081.99 ▲0.0343.03 ▲7.02
Dashboard /wp-admin2,203 ▲154.86 ▼1.05108.53 ▲3.6942.33 ▼1.78
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0140.41 ▲5.8235.24 ▲3.09
Add New Post /wp-admin/post-new.php1,545 ▲2618.53 ▼4.71602.96 ▼76.2348.13 ▼13.40
Media Library /wp-admin/upload.php1,385 ▼34.20 ▼0.0494.30 ▼2.0242.81 ▼1.58

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/raise-the-money/raise-the-money-widget.php+2
    Methods with the same name as their class will not be constructors in a future version of PHP; RaiseTheMoneyWidget has a deprecated constructor
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/raise-the-money/raise-the-money.php:41
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/raise-the-money/raise-the-money-widget.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
4 plugin tags: fundraising, contributions, donate, political

raise-the-money/raise-the-money.php Passed 13 tests

"Raise The Money" version 5.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
87 characters long description:
A WordPress plugin for embedding the Raise The Money contribution form in your website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected73 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2214173

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity2.50
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin