10% 4-author-cheer-up-donate

Code Review | 4 author cheer up donate

WordPress plugin 4 author cheer up donate scored10%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: 6.3.1
  • 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,367 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Warning in wp-content/plugins/4-author-cheer-up-donate/4-author-cheer-up-donate.php+127
    mkdir(): File exists

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.54ms] Passed 4 tests

This is a short check of server-side resources used by 4 author cheer up donate
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.79 ▲0.0649.56 ▲0.08
Dashboard /wp-admin3.62 ▼0.0159.65 ▼10.09
Posts /wp-admin/edit.php3.73 ▲0.0560.77 ▲9.59
Add New Post /wp-admin/post-new.php6.20 ▲0.0587.40 ▼11.87
Media Library /wp-admin/upload.php3.54 ▲0.0538.31 ▼0.26
4-author-cheer-up-donate /wp-admin/options-general.php?page=AcuD_options3.6343.42

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 21 new files
Database: 1 new table, 36 new options
New tables
wp_acud_thank_names
New WordPress options
Acud_is_rules
AcuD_popUp_price_level_1
AcuD_popUp_img_level_3
Acud_mrh_pass1
AcuD_popUp_text_level_1
can_compress_scripts
Acud_mrh_pass2
widget_recent-posts
AcuD_popUp_img_level_2
AcuD_popUp_text_level_3
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for 4 author cheer up donate
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.37 ▲0.142.02 ▲0.2647.00 ▲4.17
Dashboard /wp-admin2,202 ▲225.52 ▼0.1599.46 ▼1.5242.80 ▲0.39
Posts /wp-admin/edit.php2,104 ▲42.04 ▲0.0640.00 ▲2.5936.57 ▲2.53
Add New Post /wp-admin/post-new.php1,548 ▲1723.19 ▲0.11609.23 ▼8.9951.52 ▲0.92
Media Library /wp-admin/upload.php2,061 ▲6585.47 ▲1.23125.03 ▲17.6949.12 ▲3.04
4-author-cheer-up-donate /wp-admin/options-general.php?page=AcuD_options1,4873.5057.8080.91

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 10 options
    • theysaidso_admin_options
    • widget_recent-posts
    • AcuD_popUp_price_level_2
    • can_compress_scripts
    • db_upgraded
    • AcuD_popUp_price_level_1
    • AcuD_unnamed_text
    • widget_recent-comments
    • widget_theysaidso_widget
    • AcuD_popUp_price_level_3

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
  • 9× PHP files output text when accessed directly:
    • > /wp-content/plugins/4-author-cheer-up-donate/admin/table_thank.php
    • > /wp-content/plugins/4-author-cheer-up-donate/4-author-cheer-up-donate.php
    • > /wp-content/plugins/4-author-cheer-up-donate/admin/admin_options.php
    • > /wp-content/plugins/4-author-cheer-up-donate/result.php
    • > /wp-content/plugins/4-author-cheer-up-donate/admin/logo_options.php
    • > /wp-content/plugins/4-author-cheer-up-donate/thank_you_content.php
    • > /wp-content/plugins/4-author-cheer-up-donate/logo_content.php
    • > /wp-content/plugins/4-author-cheer-up-donate/popUp.php
    • > /wp-content/plugins/4-author-cheer-up-donate/admin/payment_options.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > 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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
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: The official readme.txt is a good inspiration

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

The entry point to "4 author cheer up donate" version 1.3 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 144 characters long)
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin2,409 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
CSS438501,317
PHP1110253875
PO File18275196
JavaScript25621

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.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected