89% simple-money-button

Code Review | Simple Money Button

WordPress plugin Simple Money Button scored 89% from 54 tests.

About plugin

  • Plugin page: simple-money-button
  • Plugin version: 0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 25, 2019
  • Latest release: Jan 28, 2023
  • Number of updates: 23
  • Update frequency: every 61.1 days
  • Top authors: kuopassa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server-side resources used by Simple Money Button
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.18 ▼11.26
Dashboard /wp-admin3.32 ▲0.0254.02 ▼0.18
Posts /wp-admin/edit.php3.37 ▲0.0249.77 ▼0.80
Add New Post /wp-admin/post-new.php5.90 ▲0.0296.89 ▲7.15
Media Library /wp-admin/upload.php3.24 ▲0.0236.78 ▼12.65

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Simple Money Button
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.23 ▼1.061.61 ▼0.5241.03 ▲1.27
Dashboard /wp-admin2,206 ▲155.88 ▲0.99108.85 ▼4.1442.23 ▼6.78
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0139.28 ▼1.8536.65 ▼0.27
Add New Post /wp-admin/post-new.php1,542 ▲2218.18 ▼4.91662.24 ▼9.3759.33 ▲2.34
Media Library /wp-admin/upload.php1,388 ▼34.19 ▲0.1294.15 ▼10.7342.18 ▲0.17

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: money button, bitcoin

simple-money-button/simple-money-button.php 77% from 13 tests

This is the main PHP file of "Simple Money Button" version 0.3, 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:
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("")
  • Domain Path: The domain path must begin with a forward slash character ("/")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin155 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15622155

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected