83% theme-blvd-woocommerce-patch

Code Review | Theme Blvd WooCommerce Patch

WordPress plugin Theme Blvd WooCommerce Patch scored83%from 54 tests.

About plugin

  • Plugin page: theme-blvd-woocom...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 16, 2012
  • Latest release: Oct 16, 2013
  • Number of updates: 7
  • Update frequency: every 69.7 days
  • Top authors: themeblvd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /5,756 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.01MB] [CPU: ▼7.37ms] Passed 4 tests

This is a short check of server-side resources used by Theme Blvd WooCommerce Patch
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.55 ▼6.09
Dashboard /wp-admin3.31 ▼0.0449.35 ▼12.65
Posts /wp-admin/edit.php3.36 ▲0.0048.26 ▼6.85
Add New Post /wp-admin/post-new.php5.89 ▲0.0096.93 ▼3.89
Media Library /wp-admin/upload.php3.23 ▲0.0042.20 ▲6.67

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Theme Blvd WooCommerce Patch
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲5414.22 ▼0.071.68 ▼0.0340.83 ▼6.48
Dashboard /wp-admin2,195 ▲185.61 ▲0.0494.46 ▲3.7239.41 ▼1.06
Posts /wp-admin/edit.php2,100 ▼31.95 ▼0.0439.29 ▲3.2738.09 ▼0.42
Add New Post /wp-admin/post-new.php1,526 ▼023.48 ▲0.11694.85 ▲18.5666.06 ▼1.25
Media Library /wp-admin/upload.php1,403 ▲34.23 ▼0.02103.81 ▼1.5249.11 ▲2.15

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/theme-blvd-woocommerce-patch/theme-blvd-woocommerce-patch.php:30

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

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (Here's an example of some WooCommerce's sample content being displayed with the plugin and [Alyeska](http://themeforest.net/item/alyeska-responsive-wordpress-theme/164366?ref=themeblvd "Alyeska WordPress Theme").), #2 (After installing this plugin, you should see a new widget area added above all of your Theme Blvd widget areas called "WooCommerce Sidebar" -- Put all of your widgets here for WooCommerce-related pages.), #3 (When editing a standard static page, there will now be an option under your theme's standard "Page Options" that will allow you to "force" the current static page as a "WooCommerce page" -- This will allow the WooCommerce Sidebar to be applied. Note that you don't need to do this for pages you've already set in your WooCommerce settings (i.e. cart, checkout, and account pages).), #4 (This is the panel that gets added to your Theme Options page for determining the sidebar layout on various WooCommerce pages.)
  • Requires at least: Version not formatted correctly
The official readme.txt is a good inspiration

theme-blvd-woocommerce-patch/theme-blvd-woocommerce-patch.php Passed 13 tests

The entry point to "Theme Blvd WooCommerce Patch" version 1.1.1 is a PHP file that has certain tags in its header comment area
77 characters long description:
This plugins adds basic compatibility with Theme Blvd themes and WooCommerce.

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
Everything looks great! No dangerous files found in this plugin448 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1115156424
CSS10024

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.54MB with 0.36MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png266.90KB95.49KB▼ 64.22%
screenshot-4.png126.93KB39.76KB▼ 68.68%
screenshot-2.png69.55KB21.47KB▼ 69.13%
screenshot-3.png86.39KB29.75KB▼ 65.56%