72% donate-me

Code Review | Donate Me

WordPress plugin Donate Me scored72%from 54 tests.

About plugin

  • Plugin page: donate-me
  • Plugin version: 1.2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7.0-6.2
  • WordPress version: 6.3.1
  • First release: Mar 24, 2023
  • Latest release: May 9, 2023
  • Number of updates: 26
  • Update frequency: every 1.8 days
  • Top authors: raphaelheide (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /267 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.02MB] [CPU: ▼8.86ms] Passed 4 tests

Analyzing server-side resources used by Donate Me
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.48 ▼4.92
Dashboard /wp-admin3.34 ▼0.0141.86 ▼20.02
Posts /wp-admin/edit.php3.39 ▲0.0346.73 ▲1.05
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.64 ▼10.27
Media Library /wp-admin/upload.php3.26 ▲0.0333.57 ▼0.23
🐷 Donate Me /wp-admin/options-general.php?page=donateme3.2328.54

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Donate Me
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8314.48 ▼0.201.81 ▲0.1138.48 ▼0.84
Dashboard /wp-admin2,210 ▲254.84 ▼1.02110.24 ▲8.8244.74 ▼1.77
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0538.65 ▲3.7239.06 ▲7.44
Add New Post /wp-admin/post-new.php1,539 ▲2023.16 ▼0.11658.46 ▲21.9149.69 ▼5.54
Media Library /wp-admin/upload.php1,392 ▲14.26 ▲0.07101.58 ▼0.4344.23 ▲1.12
🐷 Donate Me /wp-admin/options-general.php?page=donateme1,0702.1125.1155.18

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 25% 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 0% 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
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/donate-me/donate-me.php
  • 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/donate-me/vendor/autoload.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/donate-me/includes/index.php:7

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=donateme
    • > Rendering (warning) in unknown
    /wp-admin/options-general.php?page=donateme 202 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/options-general.php?page=donateme
    • > Rendering (warning) in unknown
    /wp-admin/options-general.php?page=donateme 207 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Contributors: Contributors not specified
  • Screenshots: These screenshots lack descriptions #1, #2, #3, #4 in donate-me/assets to your readme.txt
The official readme.txt might help

donate-me/donate-me.php 92% from 13 tests

This is the main PHP file of "Donate Me" version 1.2.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
No dangerous file extensions were detected145 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP33230145

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin