77% same-day-delivery

Code Review | XpressRun Local Delivery

WordPress plugin XpressRun Local Delivery scored77%from 54 tests.

About plugin

  • Plugin page: same-day-delivery
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6.40+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.18-6.1.1
  • WordPress version: 6.3.1
  • First release: Apr 13, 2023
  • Latest release: Apr 14, 2023
  • Number of updates: 6
  • Update frequency: every 3.5 days
  • Top authors: xpressrun (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /113 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.41ms] Passed 4 tests

Server-side resources used by XpressRun Local Delivery
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0146.17 ▲2.24
Dashboard /wp-admin3.31 ▲0.0145.38 ▼3.48
Posts /wp-admin/edit.php3.36 ▲0.0046.69 ▼2.56
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.63 ▼5.78
Media Library /wp-admin/upload.php3.23 ▲0.0035.10 ▲2.20

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

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

Browser metrics Passed 4 tests

Checking browser requirements for XpressRun Local Delivery
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.14 ▼1.451.58 ▼0.1640.96 ▼1.24
Dashboard /wp-admin2,203 ▲125.83 ▲0.9296.70 ▼15.7739.04 ▼3.65
Posts /wp-admin/edit.php2,089 ▼32.03 ▲0.0438.71 ▼3.1134.59 ▼1.72
Add New Post /wp-admin/post-new.php1,542 ▲2318.33 ▼4.84609.16 ▼43.6955.40 ▲6.96
Media Library /wp-admin/upload.php1,382 ▼64.22 ▲0.0193.39 ▼5.8739.76 ▼2.86

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/same-day-delivery/xpressrun.php
  • 29× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\VarDumper\\Dumper\\AbstractDumper' not found in wp-content/plugins/same-day-delivery/vendor/symfony/var-dumper/Dumper/CliDumper.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\VarDumper\\Caster\\EnumStub' not found in wp-content/plugins/same-day-delivery/vendor/symfony/var-dumper/Caster/ArgsStub.php:21
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\VarDumper\\Cloner\\ClonerInterface' not found in wp-content/plugins/same-day-delivery/vendor/symfony/var-dumper/Cloner/AbstractCloner.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\VarDumper\\Cloner\\AbstractCloner' not found in wp-content/plugins/same-day-delivery/vendor/symfony/var-dumper/Cloner/VarCloner.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\Console\\Command\\Command' not found in wp-content/plugins/same-day-delivery/vendor/symfony/var-dumper/Command/ServerDumpCommand.php:37
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\VarDumper\\Caster\\EnumStub' not found in wp-content/plugins/same-day-delivery/vendor/symfony/var-dumper/Caster/FrameStub.php:19
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\VarDumper\\Command\\Descriptor\\DumpDescriptorInterface' not found in wp-content/plugins/same-day-delivery/vendor/symfony/var-dumper/Command/Descriptor/HtmlDescriptor.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\VarDumper\\Dumper\\CliDumper' not found in wp-content/plugins/same-day-delivery/vendor/symfony/var-dumper/Dumper/HtmlDumper.php:22
    • > PHP Fatal error
      Uncaught Error: Interface 'Stringable' not found in wp-content/plugins/same-day-delivery/vendor/symfony/polyfill-php80/PhpToken.php:19
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\VarDumper\\Dumper\\DataDumperInterface' not found in wp-content/plugins/same-day-delivery/vendor/symfony/var-dumper/Dumper/AbstractDumper.php:22

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 86% from 29 tests

readme.txt 81% 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: Please add descriptions for these screenshots #1, #2, #3 in same-day-delivery/assets to your readme.txt
  • Tags: Too many tags (20 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Contributors: The plugin contributors field is missing
You can take inspiration from this readme.txt

same-day-delivery/xpressrun.php 92% from 13 tests

The main PHP file in "XpressRun Local Delivery" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("same-day-delivery.php" instead of "xpressrun.php")

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
No dangerous file extensions were detected12,154 lines of code in 112 files:
LanguageFilesBlank linesComment linesLines of code
PHP991,7081,80411,466
JSON500411
CSS100130
Markdown432092
JavaScript36255

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity17.05
▷ Minimum class complexity1.00
▷ Maximum class complexity166.00
Average method complexity4.01
▷ Minimum method complexity1.00
▷ Maximum method complexity73.00
Code structure
Namespaces18
Interfaces6
Traits1
Classes76
▷ Abstract classes33.95%
▷ Concrete classes7396.05%
▷ Final classes1013.70%
Methods422
▷ Static methods21450.71%
▷ Public methods35082.94%
▷ Protected methods266.16%
▷ Private methods4610.90%
Functions103
▷ Named functions9289.32%
▷ Anonymous functions1110.68%
Constants68
▷ Global constants710.29%
▷ Class constants6189.71%
▷ Public constants4167.21%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected