84% serbian-addons-for-woocommerce

Code Review | Serbian Addons for WooCommerce

WordPress plugin Serbian Addons for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: serbian-addons-fo...
  • Plugin version: 3.1.8
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 7.0-6.3
  • WordPress version: 6.3.1
  • First release: Dec 18, 2021
  • Latest release: Nov 12, 2023
  • Number of updates: 26
  • Update frequency: every 26.8 days
  • Top authors: seebeen (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /2,661 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼8.31ms] Passed 4 tests

A check of server-side resources used by Serbian Addons for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1439.95 ▼1.34
Dashboard /wp-admin3.45 ▲0.1045.90 ▼17.90
Posts /wp-admin/edit.php3.57 ▲0.2149.27 ▼0.69
Add New Post /wp-admin/post-new.php6.03 ▲0.1485.89 ▼13.31
Media Library /wp-admin/upload.php3.38 ▲0.1435.65 ▲0.22

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 167 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Serbian Addons for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲1814.44 ▲0.071.73 ▼0.0243.17 ▲3.37
Dashboard /wp-admin2,195 ▲145.62 ▼0.0689.47 ▼19.1240.88 ▼3.19
Posts /wp-admin/edit.php2,103 ▲31.95 ▼0.0140.46 ▼2.2836.22 ▼0.03
Add New Post /wp-admin/post-new.php1,528 ▼123.27 ▲0.06655.23 ▲32.0657.13 ▲2.18
Media Library /wp-admin/upload.php1,400 ▼34.24 ▼0.0397.20 ▼2.6838.99 ▼2.79

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 57× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_RecurringSchedule' not found in wp-content/plugins/serbian-addons-for-woocommerce/vendor/woocommerce/action-scheduler/classes/schedules/ActionScheduler_CronSchedule.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_Schedule' not found in wp-content/plugins/serbian-addons-for-woocommerce/vendor/woocommerce/action-scheduler/classes/schedules/ActionScheduler_SimpleSchedule.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_Schema' not found in wp-content/plugins/serbian-addons-for-woocommerce/vendor/woocommerce/action-scheduler/classes/schema/ActionScheduler_LoggerSchema.php:10
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/serbian-addons-for-woocommerce/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Abstract_ListTable.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_SimpleSchedule' not found in wp-content/plugins/serbian-addons-for-woocommerce/vendor/woocommerce/action-scheduler/classes/schedules/ActionScheduler_NullSchedule.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/serbian-addons-for-woocommerce/vendor/woocommerce/action-scheduler/lib/cron-expression/CronExpression_MinutesField.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Action' not found in wp-content/plugins/serbian-addons-for-woocommerce/vendor/woocommerce/action-scheduler/classes/actions/ActionScheduler_FinishedAction.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Schedule_Deprecated' not found in wp-content/plugins/serbian-addons-for-woocommerce/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Abstract_Schedule.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Oblak\\WP\\Base_Plugin_Installer' not found in wp-content/plugins/serbian-addons-for-woocommerce/lib/Core/Installer.php:16
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/serbian-addons-for-woocommerce/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Abstract_ListTable.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: woocommerce, woocommerce-serbia, serbia

serbian-addons-for-woocommerce/serbian-addons-for-woocommerce.php 92% from 13 tests

Analyzing the main PHP file in "Serbian Addons for WooCommerce" version 3.1.8
It is important to fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("6.0" instead of "7.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin11,777 lines of code in 158 files:
LanguageFilesBlank linesComment linesLines of code
PHP1452,9569,94211,013
PO File2139160353
JSON300351
Markdown217034
XML10021
JavaScript3003
CSS2002

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity11.31
▷ Minimum class complexity1.00
▷ Maximum class complexity97.00
Average method complexity2.45
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces20
Interfaces9
Traits3
Classes104
▷ Abstract classes2221.15%
▷ Concrete classes8278.85%
▷ Final classes11.22%
Methods1,150
▷ Static methods1059.13%
▷ Public methods91179.22%
▷ Protected methods18816.35%
▷ Private methods514.43%
Functions59
▷ Named functions3864.41%
▷ Anonymous functions2135.59%
Constants39
▷ Global constants615.38%
▷ Class constants3384.62%
▷ Public constants33100.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