84% spendeonline

Code Review | SpendeOnline.org

WordPress plugin SpendeOnline.org scored84%from 54 tests.

About plugin

  • Plugin page: spendeonline
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.0
  • WordPress version: 6.3.1
  • First release: Nov 13, 2015
  • Latest release: Jul 12, 2022
  • Number of updates: 26
  • Update frequency: every 93.7 days
  • Top authors: Dr. Thomas Fuessl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,830 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.84ms] Passed 4 tests

Analyzing server-side resources used by SpendeOnline.org
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.40 ▲1.05
Dashboard /wp-admin3.32 ▲0.0143.84 ▼3.23
Posts /wp-admin/edit.php3.37 ▲0.0147.12 ▼1.72
Add New Post /wp-admin/post-new.php5.90 ▲0.0178.11 ▼4.45
Media Library /wp-admin/upload.php3.24 ▲0.0134.93 ▼1.97

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

SpendeOnline.org: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.80 ▲0.452.03 ▲0.3743.42 ▼2.98
Dashboard /wp-admin2,192 ▲125.49 ▼0.1182.56 ▼17.4038.79 ▼2.82
Posts /wp-admin/edit.php2,103 ▲32.01 ▼0.1135.36 ▼2.7831.23 ▼5.25
Add New Post /wp-admin/post-new.php1,526 ▼023.08 ▲0.05647.04 ▼34.2962.29 ▲9.94
Media Library /wp-admin/upload.php1,400 ▼04.19 ▼0.0397.04 ▼0.2944.33 ▼0.06

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/spendeonline/spendeonline.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: Add an image for screenshot #5 (In der Verwaltungsseite können Sie nun den Zahlungseingang verfolgen. Bei Zahlungseingang erhält der Spender eine Spendenquittung. Sie können die Spenden nach verschiedenen Methoden auswerten und daraus neue Verteiler für zukünftige Aktionen erstellen.)
The official readme.txt might help

spendeonline/spendeonline.php Passed 13 tests

"SpendeOnline.org" version 1.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
28 characters long description:
Spenden-Modul fuer WordPress

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
Success! There were no dangerous files found in this plugin55 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17955

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
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 Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin