78% businessx-extensions

Code Review | Businessx Extensions

WordPress plugin Businessx Extensions scored78%from 54 tests.

About plugin

  • Plugin page: businessx-extensions
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.0
  • WordPress version: 6.3.1
  • First release: Jul 19, 2016
  • Latest release: Sep 10, 2018
  • Number of updates: 37
  • Update frequency: every 21.4 days
  • Top authors: acosmin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

3,000+ active /70,347 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
Install script ran successfully

Server metrics [RAM: ▲0.73MB] [CPU: ▼0.75ms] Passed 4 tests

A check of server-side resources used by Businessx Extensions
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.24 ▲0.7845.87 ▲3.70
Dashboard /wp-admin4.07 ▲0.7353.39 ▼12.04
Posts /wp-admin/edit.php4.12 ▲0.7755.92 ▲3.96
Add New Post /wp-admin/post-new.php6.59 ▲0.7197.86 ▲1.39
Media Library /wp-admin/upload.php3.93 ▲0.7143.94 ▲8.00

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 113 new files
Database: no new tables, 15 new options
New WordPress options
widget_bx-item-features
widget_bx-item-slider
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_bx-item-about
theysaidso_admin_options
widget_bx-item-faq
widget_recent-posts
widget_bx-item-actions
...

Browser metrics Passed 4 tests

A check of browser resources used by Businessx Extensions
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.41 ▲0.231.86 ▲0.0643.40 ▼2.36
Dashboard /wp-admin2,206 ▲154.84 ▼0.03100.09 ▼8.6138.88 ▼2.75
Posts /wp-admin/edit.php2,089 ▼02.03 ▼0.0240.74 ▼0.1235.79 ▼2.25
Add New Post /wp-admin/post-new.php1,514 ▼517.61 ▼5.67647.20 ▼63.9554.41 ▼11.52
Media Library /wp-admin/upload.php1,379 ▼64.21 ▼0.00102.86 ▲0.6946.25 ▲0.22

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 15 options in the database
    • theysaidso_admin_options
    • widget_bx-item-slider
    • widget_bx-item-about
    • widget_bx-item-testimonials
    • widget_bx-item-actions
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_bx-item-clients
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/businessx-extensions/businessx-extensions.php
  • 82× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      require_once(): Failed opening required 'BUSINESSX_EXTS_PATHinc/customizer/helpers.php' (include_path='.:/usr/share/php') in wp-content/plugins/businessx-extensions/inc/customizer/customizer.php on line 15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/businessx-extensions/templates/sections-items/item-features.php:25
    • > PHP Fatal error
      Uncaught Error: Call to a member function add_section() on null in wp-content/plugins/businessx-extensions/inc/customizer/sections-mods/team.php:23
    • > PHP Warning
      Use of undefined constant BUSINESSX_EXTS_PATH - assumed 'BUSINESSX_EXTS_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/businessx-extensions/inc/partials/partials.php on line 11
    • > PHP Notice
      Undefined variable: wp_customize in wp-content/plugins/businessx-extensions/inc/customizer/sections-mods/team.php on line 23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/businessx-extensions/inc/functions/shortcodes.php:35
    • > PHP Warning
      require_once(BUSINESSX_EXTS_PATH/inc/partials/sections/maps.php): failed to open stream: No such file or directory in wp-content/plugins/businessx-extensions/inc/partials/partials.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bx_ext_show_section() in wp-content/plugins/businessx-extensions/templates/sections/section-contact.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/businessx-extensions/inc/functions/helpers.php:53
    • > PHP Notice
      Undefined variable: wp_customize in wp-content/plugins/businessx-extensions/inc/customizer/sections-mods/features.php on line 23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: No valid plugin tags found
You can look at the official readme.txt

businessx-extensions/businessx-extensions.php Passed 13 tests

The entry point to "Businessx Extensions" version 1.0.6 is a PHP file that has certain tags in its header comment area
75 characters long description:
Adds front page sections and other extensions to Businessx WordPress theme.

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
Good job! No executable or dangerous file extensions detected12,470 lines of code in 109 files:
LanguageFilesBlank linesComment linesLines of code
PHP922,4283,5779,252
JavaScript125535482,085
CSS573631,133

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity16.87
▷ Minimum class complexity1.00
▷ Maximum class complexity55.00
Average method complexity4.72
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods64
▷ Static methods11.56%
▷ Public methods5789.06%
▷ Protected methods34.69%
▷ Private methods46.25%
Functions354
▷ Named functions35399.72%
▷ Anonymous functions10.28%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/pattern-map.png0.12KB0.10KB▼ 21.26%