84% wc-booster-search-order-by-custom-number-fix

Code Review | Woocommerce Booster - Search order by custom number (FIX)

WordPress plugin Woocommerce Booster - Search order by custom number (FIX) scored84%from 54 tests.

About plugin

  • Plugin page: wc-booster-search...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Nov 14, 2016
  • Latest release: Nov 17, 2016
  • Number of updates: 8
  • Update frequency: every 0.6 days
  • Top authors: Karzin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /788 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.01MB] [CPU: ▼5.90ms] Passed 4 tests

Analyzing server-side resources used by Woocommerce Booster - Search order by custom number (FIX)
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0142.47 ▼1.09
Dashboard /wp-admin3.32 ▲0.0251.40 ▼3.25
Posts /wp-admin/edit.php3.37 ▲0.0147.49 ▼2.08
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.57 ▼17.11
Media Library /wp-admin/upload.php3.24 ▲0.0136.73 ▼1.15

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Woocommerce Booster - Search order by custom number (FIX)
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.42 ▼0.111.98 ▼0.4942.69 ▼6.29
Dashboard /wp-admin2,198 ▲185.64 ▼0.0284.14 ▼9.6339.95 ▼3.41
Posts /wp-admin/edit.php2,103 ▲32.09 ▲0.1437.39 ▲0.1733.26 ▼2.59
Add New Post /wp-admin/post-new.php1,534 ▲718.64 ▼4.45625.32 ▼71.9477.59 ▲18.24
Media Library /wp-admin/upload.php1,397 ▼04.16 ▼0.00102.73 ▼0.5446.63 ▲1.33

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WCSON\\Design_Pattern\\Autoload' not found in wp-content/plugins/wc-booster-search-order-by-custom-number-fix/Order.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WCSON\\plugin_dir_path() in wp-content/plugins/wc-booster-search-order-by-custom-number-fix/plugin.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: fix, woocommerce jetpack, order, search, booster for woocommerce...

wc-booster-search-order-by-custom-number-fix/plugin.php 85% from 13 tests

The entry point to "Woocommerce Booster - Search order by custom number (FIX)" version 1.0.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wc-booster-search-order-by-custom-number-fix.php" instead of "plugin.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin82 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3121665
Markdown17017

PHP code Passed 2 tests

This is a short overview 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.42
Average class complexity4.50
▷ Minimum class complexity2.00
▷ Maximum class complexity7.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods4
▷ Static methods125.00%
▷ Public methods250.00%
▷ Protected methods250.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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