99% sendbyshare-shipping

Code Review | SendByShare Shipping

WordPress plugin SendByShare Shipping scored 99% from 54 tests.

About plugin

  • Plugin page: sendbyshare-shipping
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.0-5.4.0
  • WordPress version: 5.8.1
  • First release: Apr 28, 2020
  • Latest release: Apr 28, 2020
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: sendbyshare (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 186 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼136.15ms] Passed 4 tests

A check of server-side resources used by SendByShare Shipping
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.83 ▲0.1229.55 ▲6.12
Dashboard /wp-admin3.06 ▲0.0042.22 ▼1.81
Posts /wp-admin/edit.php3.11 ▼0.0143.79 ▼0.57
Add New Post /wp-admin/post-new.php5.42 ▼0.0292.71 ▼543.89
Media Library /wp-admin/upload.php3.00 ▲0.0033.69 ▲1.69

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for SendByShare Shipping
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲6615.76 ▲0.208.45 ▲0.5347.61 ▼3.51
Dashboard /wp-admin2,973 ▲395.94 ▲0.02144.77 ▲6.32112.97 ▼12.18
Posts /wp-admin/edit.php2,739 ▼02.68 ▼0.0068.47 ▲0.5390.68 ▼2.68
Add New Post /wp-admin/post-new.php1,872 ▲20019.12 ▲0.20381.49 ▲9.00115.14 ▲10.90
Media Library /wp-admin/upload.php1,807 ▼35.03 ▼0.00154.05 ▲11.67112.93 ▼14.06

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #2 (Auto sync your order to SendByShare system), #3 (Easily to setup)
The official readme.txt might help

sendbyshare-shipping/sendbyshare-shipping.php 92% from 13 tests

"SendByShare Shipping" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin659 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP1011135651
CSS1108

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity12.00
▷ Minimum class complexity8.00
▷ Maximum class complexity19.00
Average method complexity3.36
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods964.29%
▷ Protected methods00.00%
▷ Private methods535.71%
Functions18
▷ Named functions1794.44%
▷ Anonymous functions15.56%
Constants7
▷ Global constants685.71%
▷ Class constants114.29%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin