62% send24

Code Review | Send24

WordPress plugin Send24 scored 62% from 54 tests.

About plugin

  • Plugin page: send24
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5.1
  • WordPress version: 5.8.1
  • First release: Jan 8, 2016
  • Latest release: May 12, 2016
  • Number of updates: 10
  • Update frequency: every 13.6 days
  • Top authors: Send24 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 515 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼1.05MB] [CPU: ▼176.97ms] Passed 4 tests

Analyzing server-side resources used by Send24
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.54 ▼0.1715.32 ▼5.89
Dashboard /wp-admin2.59 ▼0.4620.13 ▼26.08
Posts /wp-admin/edit.php2.59 ▼0.5117.20 ▼26.86
Add New Post /wp-admin/post-new.php2.59 ▼2.8416.30 ▼630.28
Media Library /wp-admin/upload.php2.59 ▼0.4116.64 ▼24.65
Send24 /wp-admin/admin.php?page=wc-settings&tab=shipping§ion=wc_send24_shipping_method2.6014.89

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 1 new option
New WordPress options
woocommerce_status_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Send24
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,837 ▲24117.20 ▲1.1227.73 ▲16.0244.46 ▼2.02
Dashboard /wp-admin2,993 ▲625.96 ▼0.13144.15 ▼5.95105.21 ▼10.24
Posts /wp-admin/edit.php2,759 ▲202.74 ▲0.0473.52 ▼15.0782.15 ▲0.22
Add New Post /wp-admin/post-new.php1,629 ▼5421.88 ▲3.04282.25 ▼103.32103.04 ▼3.37
Media Library /wp-admin/upload.php1,827 ▲235.06 ▲0.04175.65 ▼16.98113.60 ▲0.45
Send24 /wp-admin/admin.php?page=wc-settings&tab=shipping§ion=wc_send24_shipping_method280.900.1011.25

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/send24/class/class.send24.php+24
    Trying to access array offset on value of type bool
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • woocommerce_status_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wc-settings&tab=shipping§ion=wc_send24_shipping_method
    • > Notice in wp-content/plugins/send24/class/class.send24.php+24
    Trying to access array offset on value of type bool

SRP 50% 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
Please take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/send24/class/class.shipping_method.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/send24/send24.php:14

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)
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=wc-settings&tab=shipping§ion=wc_send24_shipping_method
    • > Network (severe)
    wp-admin/admin.php?page=wc-settings&tab=shipping&section=wc_send24_shipping_method - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Donate link: Please fix this invalid URI: ""
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === send24 === )
The official readme.txt is a good inspiration

send24/send24.php 92% from 13 tests

Analyzing the main PHP file in "Send24" version 1.0.1
The following require your attention:
  • Description: Make the plugin description longer than 10 characters (currently 6 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,941 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP31111051,172
CSS2223442
JavaScript23512318
Markdown1409

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity83.00
▷ Minimum class complexity73.00
▷ Maximum class complexity93.00
Average method complexity6.55
▷ Minimum method complexity1.00
▷ Maximum method complexity49.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods31
▷ Static methods2064.52%
▷ Public methods3096.77%
▷ Protected methods00.00%
▷ Private methods13.23%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.14MB with 0.08MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png138.37KB56.49KB▼ 59.17%