10% dataclermont-bootstrap-widgets

Code Review | Dataclermont Bootstrap Widgets

WordPress plugin Dataclermont Bootstrap Widgets scored10%from 54 tests.

About plugin

  • Plugin page: dataclermont-boot...
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.8
  • WordPress version: 6.3.1
  • First release: Aug 25, 2018
  • Latest release: Aug 25, 2018
  • Number of updates: 6
  • Update frequency: every 8.3 days
  • Top authors: leoblanquez (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /559 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/dataclermont-bootstrap-widgets/index.php+11
    require_once(wp-content/plugins/dc-bootstrap-widgets/widgets/featured_boxes.php): failed to open stream: No such file or directory

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.15ms] Passed 4 tests

An overview of server-side resources used by Dataclermont Bootstrap Widgets
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.42 ▼0.53
Dashboard /wp-admin3.31 ▲0.0047.02 ▼3.41
Posts /wp-admin/edit.php3.36 ▲0.0051.81 ▲0.85
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.24 ▼4.10
Media Library /wp-admin/upload.php3.23 ▲0.0033.68 ▼4.57

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 60 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Dataclermont Bootstrap Widgets
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.20 ▼1.102.25 ▲0.6442.47 ▼2.59
Dashboard /wp-admin2,221 ▲184.78 ▼1.12101.75 ▼3.8141.11 ▼3.41
Posts /wp-admin/edit.php2,100 ▼32.05 ▲0.0641.05 ▲1.0236.00 ▼2.81
Add New Post /wp-admin/post-new.php1,545 ▲1918.38 ▲0.97624.33 ▼55.7564.30 ▲0.29
Media Library /wp-admin/upload.php1,403 ▲34.20 ▼0.0896.01 ▼12.3942.18 ▼6.34

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/dataclermont-bootstrap-widgets/widgets/navbar.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/dataclermont-bootstrap-widgets/widgets/parallax_titles.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/dataclermont-bootstrap-widgets/index.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/dataclermont-bootstrap-widgets/widgets/featured_section_inverted.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/dataclermont-bootstrap-widgets/widgets/featured_section.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/dataclermont-bootstrap-widgets/widgets/simple_slider.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/dataclermont-bootstrap-widgets/widgets/parallax_titles_pro.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/dataclermont-bootstrap-widgets/widgets/title_call_button.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/dataclermont-bootstrap-widgets/widgets/featured_boxes.php:2

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)
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes: The official readme.txt is a good inspiration

dataclermont-bootstrap-widgets/index.php 85% from 13 tests

The main PHP file in "Dataclermont Bootstrap Widgets" ver. 0.1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Domain Path: The domain path folder does not exist ("/languages")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("dataclermont-bootstrap-widgets.php" instead of "index.php")

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
Success! There were no dangerous files found in this plugin11,160 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
SVG50158,258
PHP9544781,544
JavaScript82141271,082
CSS115131276

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity21.25
▷ Minimum class complexity8.00
▷ Maximum class complexity48.00
Average method complexity5.88
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods34
▷ Static methods00.00%
▷ Public methods34100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.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
4 PNG files occupy 0.23MB with 0.08MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/avatar2.png26.64KB27.41KB0.00%
assets/img/bootstrap-stack.png50.94KB54.78KB0.00%
assets/img/bg_sky.png125.82KB64.70KB▼ 48.58%
assets/img/1920x500.png27.55KB4.24KB▼ 84.60%