78% edd-checkout-message

Code Review | EDD Checkout Message

WordPress plugin EDD Checkout Message scored78%from 54 tests.

About plugin

  • Plugin page: edd-checkout-message
  • Plugin version: 1.0.7
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.0
  • WordPress version: 6.3.1
  • First release: Sep 15, 2017
  • Latest release: Dec 11, 2018
  • Number of updates: 12
  • Update frequency: every 37.7 days
  • Top authors: markzahra (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,416 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.01MB] [CPU: ▼5.92ms] Passed 4 tests

Analyzing server-side resources used by EDD Checkout Message
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.06 ▼8.00
Dashboard /wp-admin3.31 ▼0.0442.97 ▼13.66
Posts /wp-admin/edit.php3.36 ▲0.0043.85 ▼1.59
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.54 ▼0.42
Media Library /wp-admin/upload.php3.23 ▲0.0034.83 ▲2.52

Server storage [IO: ▲1.20MB] [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: 104 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for EDD Checkout Message
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.37 ▲0.091.60 ▲0.0137.42 ▼1.42
Dashboard /wp-admin2,195 ▲205.62 ▼0.0091.78 ▼7.9742.00 ▲3.21
Posts /wp-admin/edit.php2,100 ▲31.94 ▼0.0240.29 ▲4.3635.29 ▲0.13
Add New Post /wp-admin/post-new.php1,539 ▲423.21 ▲5.03617.38 ▼12.6352.94 ▼11.02
Media Library /wp-admin/upload.php1,403 ▼04.24 ▲0.07100.39 ▲3.8940.79 ▼2.79

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/edd-checkout-message/includes/views/ResetSettingsView.php
    • > /wp-content/plugins/edd-checkout-message/includes/views/MessageView.php
    • > /wp-content/plugins/edd-checkout-message/includes/views/EddMessageStyleView.php
  • 36× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'EddCm\\Lib\\Base\\AbstractOperator' not found in wp-content/plugins/edd-checkout-message/includes/Lib/Operators/GreaterThanOperator.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'EddCm\\Lib\\Base\\Operator' not found in wp-content/plugins/edd-checkout-message/includes/Lib/Base/AbstractOperator.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'EddCm\\Lib\\Base\\Conditional' not found in wp-content/plugins/edd-checkout-message/includes/Lib/Base/AbstractConditionalObject.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'EddCm\\Exceptions\\GeneralException' not found in wp-content/plugins/edd-checkout-message/includes/Exceptions/SingletonReinstantiation.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function EddCm\\_e() in wp-content/plugins/edd-checkout-message/includes/views/EddDownloadSelectorView.php:3
    • > PHP Fatal error
      Uncaught Error: Interface 'EddCm\\Lib\\Base\\Conditional' not found in wp-content/plugins/edd-checkout-message/includes/Lib/Base/Action.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'EddCm\\Lib\\Conditions\\CartTotalPriceCondition' not found in wp-content/plugins/edd-checkout-message/includes/Lib/Conditions/CartTotalNumItemsCondition.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'EddCm\\Main' not found in wp-content/plugins/edd-checkout-message/includes/views/PriceCompareFieldsView.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'EddCm\\Controllers\\AbstractController' not found in wp-content/plugins/edd-checkout-message/includes/Controllers/MessagesController.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'EddCm\\Lib\\Base\\AbstractCondition' not found in wp-content/plugins/edd-checkout-message/includes/Lib/Conditions/ItemInCartCondition.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

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
4 plugin tags: checkout message, checkout notices, easy digital downloads, edd checkout message

edd-checkout-message/edd-checkout-message.php 77% from 13 tests

The principal PHP file in "EDD Checkout Message" v. 1.0.7 is loaded by WordPress automatically on each request
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Description: Please keep the plugin description shorter than 140 characters (currently 145 characters long)
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin9,488 lines of code in 79 files:
LanguageFilesBlank linesComment linesLines of code
HTML36403,167
JavaScript132732652,731
PHP504471,3661,541
CSS101071611,508
SVG100520
JSON20021

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity3.95
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity1.64
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces11
Interfaces4
Traits0
Classes35
▷ Abstract classes822.86%
▷ Concrete classes2777.14%
▷ Final classes00.00%
Methods188
▷ Static methods3820.21%
▷ Public methods16286.17%
▷ Protected methods2412.77%
▷ Private methods21.06%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants29
▷ Global constants1034.48%
▷ Class constants1965.52%
▷ Public constants19100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
17 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.27KB0.18KB▼ 35.00%
assets/css/images/ui-bg_glass_75_dadada_1x400.png0.26KB0.16KB▼ 38.93%
assets/css/images/ui-icons_454545_256x240.png6.83KB4.17KB▼ 38.86%
assets/js/jquery-chosen/docsupport/chosen.png3.39KB2.08KB▼ 38.62%
assets/css/images/ui-bg_glass_65_ffffff_1x400.png0.20KB0.09KB▼ 57.49%