74% the-courier-guy-shipping-for-sovtech

Code Review | Shesha by The Courier Guy

WordPress plugin Shesha by The Courier Guy scored74%from 54 tests.

About plugin

  • Plugin page: the-courier-guy-s...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.0
  • WordPress version: 6.3.1
  • First release: Jul 12, 2022
  • Latest release: Jul 12, 2022
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: talenttcg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /211 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▼5.14ms] Passed 4 tests

An overview of server-side resources used by Shesha by The Courier Guy
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0836.71 ▼6.93
Dashboard /wp-admin3.39 ▲0.0848.53 ▼3.57
Posts /wp-admin/edit.php3.44 ▲0.0851.25 ▲0.17
Add New Post /wp-admin/post-new.php5.97 ▲0.0886.65 ▼10.21
Media Library /wp-admin/upload.php3.31 ▲0.0840.53 ▲3.96

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 1,733 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Shesha by The Courier Guy
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▲0.021.80 ▲0.0139.18 ▼5.05
Dashboard /wp-admin2,195 ▲155.63 ▲0.0885.33 ▼10.6040.13 ▼4.33
Posts /wp-admin/edit.php2,100 ▼31.96 ▼0.0835.61 ▼5.2834.54 ▼4.13
Add New Post /wp-admin/post-new.php1,538 ▲1223.09 ▲0.13679.60 ▲44.4356.11 ▲6.68
Media Library /wp-admin/upload.php1,400 ▼34.14 ▼0.0399.73 ▼1.4042.12 ▼4.46

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% 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)
Even though everything seems fine, this is not an exhaustive test

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
  • 737× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/the-courier-guy-shipping-for-sovtech/vendor/aws/aws-sdk-php/src/DAX/DAXClient.php:51
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\AbstractConfigurationProvider' not found in wp-content/plugins/the-courier-guy-shipping-for-sovtech/vendor/aws/aws-sdk-php/src/S3/RegionalEndpoint/ConfigurationProvider.php:44
    • > PHP Fatal error
      Uncaught Error: Interface 'Aws\\AwsClientInterface' not found in wp-content/plugins/the-courier-guy-shipping-for-sovtech/vendor/aws/aws-sdk-php/src/S3/S3ClientInterface.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\Api\\ErrorParser\\AbstractErrorParser' not found in wp-content/plugins/the-courier-guy-shipping-for-sovtech/vendor/aws/aws-sdk-php/src/Api/ErrorParser/RestJsonErrorParser.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/the-courier-guy-shipping-for-sovtech/vendor/aws/aws-sdk-php/src/GreengrassV2/Exception/GreengrassV2Exception.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'Aws\\MonitoringEventsInterface' not found in wp-content/plugins/the-courier-guy-shipping-for-sovtech/vendor/aws/aws-sdk-php/src/S3/RegionalEndpoint/Exception/ConfigurationException.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/the-courier-guy-shipping-for-sovtech/vendor/aws/aws-sdk-php/src/FIS/Exception/FISException.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'Aws\\MonitoringEventsInterface' not found in wp-content/plugins/the-courier-guy-shipping-for-sovtech/vendor/aws/aws-sdk-php/src/Exception/MultipartUploadException.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/the-courier-guy-shipping-for-sovtech/vendor/aws/aws-sdk-php/src/Amplify/AmplifyClient.php:83
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/the-courier-guy-shipping-for-sovtech/vendor/aws/aws-sdk-php/src/ACMPCA/Exception/ACMPCAException.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (Description of the second screenshot.) image missing
You can take inspiration from this readme.txt

the-courier-guy-shipping-for-sovtech/class-the-courier-guy-shipping-for-sovtech.php 92% from 13 tests

"Shesha by The Courier Guy" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("the-courier-guy-shipping-for-sovtech.php" instead of "class-the-courier-guy-shipping-for-sovtech.php")

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Please make sure to remedy the following
  • Do not distribute dangerous files with your plugin
    • .bat - Batch File in Windows
      • wp-content/plugins/the-courier-guy-shipping-for-sovtech/vendor/aws/aws-crt-php/run_tests.bat
40,323 lines of code in 1,715 files:
LanguageFilesBlank linesComment linesLines of code
PHP1,6666,41735,95037,518
C1025089882
JavaScript13510514
C/C++ Header210538441
JSON700240
Markdown141070228
YAML43057191
Bourne Shell3194176
GLSL117055
XML10024
m414422
Pascal151514
Bourne Again Shell15013
INI2003
DOS Batch1202

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity4.80
▷ Minimum class complexity1.00
▷ Maximum class complexity188.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity100.00
Code structure
Namespaces604
Interfaces42
Traits22
Classes823
▷ Abstract classes172.07%
▷ Concrete classes80697.93%
▷ Final classes222.73%
Methods2,164
▷ Static methods36516.87%
▷ Public methods1,55371.77%
▷ Protected methods1376.33%
▷ Private methods47421.90%
Functions451
▷ Named functions15434.15%
▷ Anonymous functions29765.85%
Constants156
▷ Global constants63.85%
▷ Class constants15096.15%
▷ Public constants150100.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