83% send-a-wow-dogecoin-donation

Code Review | Send a Wow!

WordPress plugin Send a Wow! scored83%from 54 tests.

About plugin

  • Plugin page: send-a-wow-dogeco...
  • Plugin version: 0.2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.3-3.9
  • WordPress version: 6.3.1
  • First release: Apr 24, 2014
  • Latest release: Apr 28, 2014
  • Number of updates: 16
  • Update frequency: every 0.6 days
  • Top authors: shibyville (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,837 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.29MB] [CPU: ▼20.09ms] Passed 4 tests

This is a short check of server-side resources used by Send a Wow!
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0728.62 ▼11.32
Dashboard /wp-admin3.38 ▲0.0749.16 ▼3.58
Posts /wp-admin/edit.php3.49 ▲0.1349.36 ▲0.37
Add New Post /wp-admin/post-new.php4.67 ▼1.2243.55 ▼65.82
Media Library /wp-admin/upload.php3.30 ▲0.0736.30 ▲3.74

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Send a Wow!
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,920 ▲15913.49 ▼0.889.10 ▲7.5742.38 ▼0.07
Dashboard /wp-admin2,211 ▲315.61 ▲0.0589.55 ▼5.2940.77 ▼1.97
Posts /wp-admin/edit.php2,116 ▲192.03 ▲0.0133.58 ▼3.7834.81 ▼0.95
Add New Post /wp-admin/post-new.php1,539 ▲323.22 ▲0.25677.70 ▼11.3752.07 ▲0.32
Media Library /wp-admin/upload.php1,416 ▲194.22 ▼0.0197.80 ▼10.1447.60 ▼3.16

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% 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
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/send-a-wow-dogecoin-donation/options.php:435
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/send-a-wow-dogecoin-donation/sendawow.php:71

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

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 require attention:
  • Screenshots: Add an image for screenshot #1 (Configuration Overview)
The official readme.txt is a good inspiration

send-a-wow-dogecoin-donation/sendawow.php 85% from 13 tests

This is the main PHP file of "Send a Wow!" version 0.2.4, 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:
  • Description: Keep the plugin description shorter than 140 characters (currently 254 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("send-a-wow-dogecoin-donation.php" instead of "sendawow.php")

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
Success! There were no dangerous files found in this plugin383 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP350109361
JavaScript401321
CSS1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity36.00
▷ Minimum class complexity36.00
▷ Maximum class complexity36.00
Average method complexity2.84
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.02MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png24.93KB24.75KB▼ 0.72%