84% boxberry

Code Review | Интеграция со службой доставки Boxberry

WordPress plugin Интеграция со службой доставки Boxberry scored 84% from 54 tests.

About plugin

  • Plugin page: boxberry
  • Plugin version: 2.20
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.2.2
  • WordPress version: 6.3.1
  • First release: Oct 13, 2021
  • Latest release: Aug 3, 2023
  • Number of updates: 64
  • Update frequency: every 10.3 days
  • Top authors: akazanstev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active / 11,896 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.19MB] [CPU: ▼1.38ms] Passed 4 tests

Server-side resources used by Интеграция со службой доставки Boxberry
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1941.55 ▼0.71
Dashboard /wp-admin3.49 ▲0.1944.55 ▼6.10
Posts /wp-admin/edit.php3.61 ▲0.2547.93 ▲4.00
Add New Post /wp-admin/post-new.php6.08 ▲0.1989.08 ▼2.17
Media Library /wp-admin/upload.php3.42 ▲0.1937.44 ▲3.48

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 88 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Интеграция со службой доставки Boxberry
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.47 ▲0.092.01 ▼0.2944.19 ▼6.22
Dashboard /wp-admin2,206 ▲184.83 ▼0.09111.56 ▼8.2343.21 ▼1.22
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0240.42 ▲3.3634.99 ▲0.39
Add New Post /wp-admin/post-new.php1,539 ▲623.24 ▼0.09608.24 ▼31.5249.48 ▼2.07
Media Library /wp-admin/upload.php1,382 ▼04.39 ▲0.1597.33 ▲0.6341.51 ▲0.30

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 59× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Boxberry\\Requests\\Request' not found in wp-content/plugins/boxberry/Boxberry/src/Requests/PointsByPostcodeRequest.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'boxberry\\Requests\\Request' not found in wp-content/plugins/boxberry/Boxberry/src/Requests/DadataSuggestionsRequest.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'boxberry\\Collections\\Collection' not found in wp-content/plugins/boxberry/Boxberry/src/Collections/DadataSuggestionsCollection.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Boxberry\\Requests\\Request' not found in wp-content/plugins/boxberry/Boxberry/src/Requests/GetKeyIntegrationRequest.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'Boxberry\\Models\\AbstractModel' not found in wp-content/plugins/boxberry/Boxberry/src/Models/Status.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'Boxberry\\Collections\\Collection' not found in wp-content/plugins/boxberry/Boxberry/src/Collections/ImgIdsCollection.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/boxberry/boxberry-for-woocommerce.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'Boxberry\\Collections\\Collection' not found in wp-content/plugins/boxberry/Boxberry/src/Collections/ListServiceCollection.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'boxberry\\Collections\\Collection' not found in wp-content/plugins/boxberry/Boxberry/src/Collections/DeliveryCalculationCollection.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Boxberry\\Requests\\Request' not found in wp-content/plugins/boxberry/Boxberry/src/Requests/ZipCheckRequest.php:23

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

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: boxberry shipping, boxberry, woocommerce, wordpress

boxberry/boxberry-for-woocommerce.php 92% from 13 tests

The primary PHP file in "Интеграция со службой доставки Boxberry" version 2.20 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("boxberry.php" instead of "boxberry-for-woocommerce.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin5,165 lines of code in 82 files:
LanguageFilesBlank linesComment linesLines of code
PHP781,1663,8384,835
JavaScript2270195
PO File1402495
CSS10040

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity3.94
▷ Minimum class complexity1.00
▷ Maximum class complexity53.00
Average method complexity1.39
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces10
Interfaces0
Traits0
Classes81
▷ Abstract classes33.70%
▷ Concrete classes7896.30%
▷ Final classes00.00%
Methods605
▷ Static methods254.13%
▷ Public methods59898.84%
▷ Protected methods10.17%
▷ Private methods60.99%
Functions27
▷ Named functions2592.59%
▷ Anonymous functions27.41%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin