79% speedy-econt-shipping

Code Review | Speedy And Econt Shipping

WordPress plugin Speedy And Econt Shipping scored 79% from 54 tests.

About plugin

  • Plugin page: speedy-econt-ship...
  • Plugin version: 0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.8
  • WordPress version: 5.9.2
  • First release: Dec 28, 2021
  • Latest release: Jan 14, 2022
  • Number of updates: 9
  • Update frequency: every 5.7 days
  • Top authors: winter2007d (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 213 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Speedy And Econt Shipping
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▼0.0359.51 ▼3.42
Dashboard /wp-admin3.45 ▲0.0537.02 ▼1.74
Posts /wp-admin/edit.php3.68 ▲0.0448.37 ▲8.72
Add New Post /wp-admin/post-new.php6.92 ▼0.04101.53 ▼1,181.99
Media Library /wp-admin/upload.php3.33 ▲0.0324.27 ▼10.81
Speedy & Econt shipping /wp-admin/options-general.php?page=speedy-econt-shipping3.3034.22

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 12 new files
Database: 4 new tables, 1 new option
New tables
wp_speedy_sites
wp_econt_sites
wp_speedy_offices
wp_econt_offices
New WordPress options
jal_db_version

Browser metrics Passed 4 tests

This is an overview of browser requirements for Speedy And Econt Shipping
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,294 ▼46015.96 ▼0.014.96 ▼1.2831.40 ▲28.34
Dashboard /wp-admin2,897 ▲436.13 ▼0.02115.80 ▼17.95163.29 ▼2.39
Posts /wp-admin/edit.php2,696 ▲113.24 ▲0.0166.26 ▼0.33140.91 ▼1.73
Add New Post /wp-admin/post-new.php1,664 ▲316.58 ▲0.37431.75 ▲11.31153.47 ▼1.78
Media Library /wp-admin/upload.php1,697 ▲25.51 ▲0.01164.80 ▲18.48213.94 ▲0.83
Speedy & Econt shipping /wp-admin/options-general.php?page=speedy-econt-shipping1,1122.3863.96148.06

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure failed, leaving 4 tables in the database
    • wp_speedy_offices
    • wp_econt_sites
    • wp_econt_offices
    • wp_speedy_sites
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • jal_db_version

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: shipping, econt, bulgaria couriers, bulgaria, speedy

speedy-econt-shipping/speedy_econt_shipping.php 85% from 13 tests

The main file in "Speedy And Econt Shipping" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("speedy-econt-shipping.php" instead of "speedy_econt_shipping.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,215 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP7152651,096
PO File1385493
Markdown14026

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.21
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods1894.74%
▷ Protected methods00.00%
▷ Private methods15.26%
Functions53
▷ Named functions5094.34%
▷ Anonymous functions35.66%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin