10% 4-author-cheer-up-donate

Code Review | 4 author cheer up donate

WordPress plugin 4 author cheer up donate scored 10% from 54 tests.

About plugin

  • Plugin page: 4-author-cheer-up...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.4-4.8
  • WordPress version: 5.9.2
  • First release: Apr 28, 2017
  • Latest release: May 17, 2017
  • Number of updates: 52
  • Update frequency: every 6.6 days
  • Top authors: montashov (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,048 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/4-author-cheer-up-donate/4-author-cheer-up-donate.php+127
    mkdir(): File exists

Server metrics [RAM: ▲0.03MB] [CPU: ▼296.62ms] Passed 4 tests

Server-side resources used by 4 author cheer up donate
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.0955.12 ▲2.10
Dashboard /wp-admin3.47 ▲0.0635.06 ▲1.27
Posts /wp-admin/edit.php3.70 ▲0.0638.69 ▲0.36
Add New Post /wp-admin/post-new.php6.94 ▼0.0497.46 ▼1,185.51
Media Library /wp-admin/upload.php3.35 ▲0.0523.04 ▼2.60
4-author-cheer-up-donate /wp-admin/options-general.php?page=AcuD_options3.4530.08

Server storage [IO: ▲0.13MB] [DB: ▲0.03MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 21 new files
Database: 1 new table, 30 new options
New tables
wp_acud_thank_names
New WordPress options
Acud_is_gratitude
AcuD_logo_imgID
Acud_text_logo
AcuD_popUp_img_level_3
Acud_mrh_login
Acud_mrh_pass1
Acud_mrh_pass2
Acud_logo_befor_post_select
AcuD_popUp_price_level_2
Acud_is_gratitude_OnRules
...

Browser metrics Passed 4 tests

Checking browser requirements for 4 author cheer up donate
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,776 ▲2216.14 ▲0.536.00 ▲0.032.52 ▲0.27
Dashboard /wp-admin2,894 ▲336.01 ▼0.18119.44 ▼19.75155.05 ▼4.22
Posts /wp-admin/edit.php2,693 ▼13.23 ▼0.0161.81 ▼1.89138.54 ▼1.05
Add New Post /wp-admin/post-new.php1,664 ▼417.21 ▼1.84423.26 ▲19.42158.92 ▲5.36
Media Library /wp-admin/upload.php2,192 ▲4946.62 ▲1.12165.48 ▲17.42179.20 ▼14.75
4-author-cheer-up-donate /wp-admin/options-general.php?page=AcuD_options1,8855.0082.86179.54

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 4 options in the database
    • AcuD_unnamed_text
    • AcuD_popUp_price_level_3
    • AcuD_popUp_price_level_2
    • AcuD_popUp_price_level_1

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
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Please fix the following items
  • 9× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/4-author-cheer-up-donate/result.php
    • > /wp-content/plugins/4-author-cheer-up-donate/popUp.php
    • > /wp-content/plugins/4-author-cheer-up-donate/logo_content.php
    • > /wp-content/plugins/4-author-cheer-up-donate/admin/logo_options.php
    • > /wp-content/plugins/4-author-cheer-up-donate/admin/admin_options.php
    • > /wp-content/plugins/4-author-cheer-up-donate/thank_you_content.php
    • > /wp-content/plugins/4-author-cheer-up-donate/admin/table_thank.php
    • > /wp-content/plugins/4-author-cheer-up-donate/admin/payment_options.php
    • > /wp-content/plugins/4-author-cheer-up-donate/4-author-cheer-up-donate.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_verify_nonce() in wp-content/plugins/4-author-cheer-up-donate/send.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed: You can take inspiration from this readme.txt

4-author-cheer-up-donate/4-author-cheer-up-donate.php 85% from 13 tests

The principal PHP file in "4 author cheer up donate" v. 1.3 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 144 characters long)
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected2,409 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
CSS438501,317
PHP1110253875
PO File18275196
JavaScript25621

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.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
PNG images were not found in this plugin