78% swiss-knife-for-oxygen-buider

Code Review | Swiss Knife for Oxygen Builder

WordPress plugin Swiss Knife for Oxygen Builder scored78%from 54 tests.

About plugin

  • Plugin page: swiss-knife-for-o...
  • Plugin version: 1.3.6
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.3.0-6.3.2
  • WordPress version: 6.3.1
  • First release: Mar 14, 2020
  • Latest release: Oct 18, 2023
  • Number of updates: 43
  • Update frequency: every 30.6 days
  • Top authors: krstivoja (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /5,678 total downloads

Benchmarks

Plugin footprint 83% from 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.00MB] [CPU: ▼1.00ms] Passed 4 tests

Server-side resources used by Swiss Knife for Oxygen Builder
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0048.42 ▲5.97
Dashboard /wp-admin3.31 ▲0.0048.74 ▲0.06
Posts /wp-admin/edit.php3.36 ▲0.0045.91 ▼2.21
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.11 ▼0.34
Media Library /wp-admin/upload.php3.23 ▲0.0034.89 ▼1.49

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Swiss Knife for Oxygen Builder
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▲0.061.78 ▼0.0543.19 ▼1.94
Dashboard /wp-admin2,198 ▲185.62 ▼0.0296.18 ▲6.8741.53 ▲2.12
Posts /wp-admin/edit.php2,097 ▼32.01 ▲0.0234.34 ▼2.9734.64 ▲1.85
Add New Post /wp-admin/post-new.php1,526 ▼223.29 ▲0.15665.42 ▲1.6557.11 ▲4.25
Media Library /wp-admin/upload.php1,397 ▼64.24 ▲0.12103.28 ▼7.7946.39 ▼0.66

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% 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 0% 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
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/swiss-knife-for-oxygen-buider/swiss-knife.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/swiss-knife-for-oxygen-buider/features/clipboard.php:5

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, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: oxygen, ux, oxygen builder, theme, dplugins...

swiss-knife-for-oxygen-buider/swiss-knife.php 85% from 13 tests

The principal PHP file in "Swiss Knife for Oxygen Builder" v. 1.3.6 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("swiss-knife-for-oxygen-buider.php" instead of "swiss-knife.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin129 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
Markdown126063
PHP3201254
SVG10010
JavaScript2002

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
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
1 PNG file occupies 0.18MB with 0.14MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png183.97KB43.43KB▼ 76.39%