10% thank-money-post

Code Review | Thank Money Post

WordPress plugin Thank Money Post scored10%from 54 tests.

About plugin

  • Plugin page: thank-money-post
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 13, 2012
  • Latest release: Apr 8, 2014
  • Number of updates: 5
  • Update frequency: every 108.6 days
  • Top authors: maiboroda (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,468 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/thank-money-post/thank_money_post.php+42
    Undefined index: getupdate

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

A check of server-side resources used by Thank Money Post
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.405.72 ▼32.80
Dashboard /wp-admin2.08 ▼1.229.50 ▼37.09
Posts /wp-admin/edit.php2.08 ▼1.285.43 ▼38.33
Add New Post /wp-admin/post-new.php2.08 ▼3.815.45 ▼83.23
Media Library /wp-admin/upload.php2.08 ▼1.155.39 ▼31.05

Server storage [IO: ▲0.01MB] [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: 2 new files
Database: no new tables, 10 new options
New WordPress options
thank_project
thank_summ
thank_cel
db_upgraded
widget_recent-posts
thank_account
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Thank Money Post: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.37 ▲0.021.70 ▼0.3643.63 ▲8.25
Dashboard /wp-admin2,202 ▲225.62 ▲0.0381.10 ▼7.7338.00 ▼1.40
Posts /wp-admin/edit.php2,104 ▲42.00 ▲0.0132.93 ▼1.0435.73 ▲0.87
Add New Post /wp-admin/post-new.php1,531 ▲523.09 ▼0.43678.05 ▼13.8248.13 ▼10.41
Media Library /wp-admin/upload.php1,398 ▼54.21 ▲0.0293.23 ▼11.8244.44 ▼0.51
Кнопка пожертвовать /wp-admin/thank_money_post.php260.420.1014.52

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/thank-money-post/thank_money_post.php+42
    Undefined index: getupdate
  • Zombie WordPress options were found after uninstall: 10 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • thank_account
    • thank_cel
    • thank_summ
    • widget_recent-posts
    • thank_project
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/thank-money-post/thank_money_post.php:29

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
    • > GET request to /wp-admin/thank_money_post.php
    • > Network (severe)
    wp-admin/thank_money_post.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Requires at least: The plugin version is formatted incorrectly
The official readme.txt might help

thank-money-post/thank_money_post.php 92% from 13 tests

"Thank Money Post" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("thank-money-post.php" instead of "thank_money_post.php")

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
There were no executable files found in this plugin61 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1302161

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.06
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin