84% bigmart-elements

Code Review | Bigmart Elements

WordPress plugin Bigmart Elements scored84%from 54 tests.

About plugin

  • Plugin page: bigmart-elements
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: May 26, 2022
  • Latest release: Jun 1, 2022
  • Number of updates: 4
  • Update frequency: every 1.8 days
  • Top authors: wpcirqle (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,223 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.08MB] [CPU: ▼2.98ms] Passed 4 tests

A check of server-side resources used by Bigmart Elements
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0851.49 ▲5.28
Dashboard /wp-admin3.38 ▲0.0851.59 ▲0.67
Posts /wp-admin/edit.php3.50 ▲0.1450.01 ▼0.13
Add New Post /wp-admin/post-new.php5.96 ▲0.0890.21 ▼11.98
Media Library /wp-admin/upload.php3.31 ▲0.0836.60 ▼0.48

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Bigmart Elements: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,857 ▲7114.47 ▲0.102.26 ▼0.3046.11 ▼0.81
Dashboard /wp-admin2,238 ▲355.84 ▼0.0196.58 ▼12.0739.88 ▼3.50
Posts /wp-admin/edit.php2,117 ▲172.07 ▲0.0438.69 ▲2.5238.14 ▲2.37
Add New Post /wp-admin/post-new.php1,538 ▼317.66 ▼5.83671.15 ▼9.5353.96 ▼7.29
Media Library /wp-admin/upload.php1,414 ▲144.18 ▼0.0397.33 ▼14.0744.32 ▼4.04

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

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

Smoke tests 75% 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 14× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/bigmart-elements/widgets/vertical-menu.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/bigmart-elements/widgets/countdown.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/bigmart-elements/widgets/cta.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/bigmart-elements/widgets/product-category-grid.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/bigmart-elements/widgets/blog-grid2.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/bigmart-elements/widgets/testimonial-slider.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/bigmart-elements/widgets/product-category-tab.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/bigmart-elements/widgets/product-category-block2.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/bigmart-elements/widgets/product-tabs-grid.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/bigmart-elements/widgets/product-category-block1.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: elementor, editor

bigmart-elements/bigmart-elements.php Passed 13 tests

The entry point to "Bigmart Elements" version 1.0.3 is a PHP file that has certain tags in its header comment area
39 characters long description:
Elementor blocks for Ecommerce Websites

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected17,844 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code
PHP231,0793067,398
JavaScript109901,9185,211
CSS63551033,403
SVG1001,832

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity12.64
▷ Minimum class complexity1.00
▷ Maximum class complexity28.00
Average method complexity2.79
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes22
▷ Abstract classes00.00%
▷ Concrete classes22100.00%
▷ Final classes14.55%
Methods143
▷ Static methods85.59%
▷ Public methods8257.34%
▷ Protected methods5941.26%
▷ Private methods21.40%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants457.14%
▷ Class constants342.86%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected