10% beek-widget-extention

Code Review | Beek Widget Extention

WordPress plugin Beek Widget Extention scored10%from 54 tests.

About plugin

  • Plugin page: beek-widget-exten...
  • Plugin version: 0.9.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.3
  • WordPress version: 6.3.1
  • First release: Aug 21, 2015
  • Latest release: Sep 20, 2015
  • Number of updates: 41
  • Update frequency: every 22.6 days
  • Top authors: beek.yoshida (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,162 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/beek-widget-extention/inc/menu.php+186
    Declaration of Bwe_Nav_Walker::start_el(&$output, $item, $depth, $args) should be compatible with Walker_Nav_Menu::start_el(&$output, $data_object, $depth = 0, $args = NULL, $current_object_id = 0)

Server metrics [RAM: ▼1.95MB] [CPU: ▼58.94ms] Passed 4 tests

This is a short check of server-side resources used by Beek Widget Extention
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.04 ▼1.424.81 ▼38.35
Dashboard /wp-admin2.06 ▼1.285.87 ▼58.71
Posts /wp-admin/edit.php2.06 ▼1.297.62 ▼46.10
Add New Post /wp-admin/post-new.php2.06 ▼3.826.39 ▼92.58
Media Library /wp-admin/upload.php2.06 ▼1.165.94 ▼30.64
BWE Settings /wp-admin/plugins.php?page=beek-widget-extention/beek-widget-extention.php2.075.61

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 59 new files
Database: no new tables, 14 new options
New WordPress options
widget_beekcalltoaction
db_upgraded
widget_beekcustompostlist
widget_beekcustompostcategory
widget_recent-posts
theysaidso_admin_options
widget_beekcover
widget_beekcustompostarchive
widget_beekmenu
widget_beekimage
...

Browser metrics Passed 4 tests

Checking browser requirements for Beek Widget Extention
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,057 ▲31115.14 ▲1.226.27 ▲4.4640.92 ▼0.12
Dashboard /wp-admin2,354 ▲1666.46 ▲1.56134.26 ▲19.9944.04 ▼0.40
Posts /wp-admin/edit.php2,257 ▲1653.44 ▲1.4662.42 ▲20.7236.79 ▼2.27
Add New Post /wp-admin/post-new.php1,537 ▲1823.36 ▼0.06626.71 ▼19.8136.35 ▼35.89
Media Library /wp-admin/upload.php1,390 ▲24.14 ▼0.0584.28 ▼13.8941.32 ▼3.45
BWE Settings /wp-admin/plugins.php?page=beek-widget-extention/beek-widget-extention.php2,0903.0443.8371.75

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin cannot be uninstalled
    • > Warning in wp-content/plugins/beek-widget-extention/inc/menu.php+186
    Declaration of Bwe_Nav_Walker::start_el(&$output, $item, $depth, $args) should be compatible with Walker_Nav_Menu::start_el(&$output, $data_object, $depth = 0, $args = NULL, $current_object_id = 0)
  • Zombie WordPress options detected upon uninstall: 14 options
    • widget_theysaidso_widget
    • widget_beekcustompostlist
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_beekcalltoaction
    • widget_recent-comments
    • widget_beekcover
    • widget_beekcustompostarchive
    • widget_beekcustompostcategory
    • widget_beekmenu
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/plugins.php?page=beek-widget-extention/beek-widget-extention.php
    • > Warning in wp-content/plugins/beek-widget-extention/inc/menu.php+186
    Declaration of Bwe_Nav_Walker::start_el(&$output, $item, $depth, $args) should be compatible with Walker_Nav_Menu::start_el(&$output, $data_object, $depth = 0, $args = NULL, $current_object_id = 0)
    • > GET request to /wp-admin/plugins.php?page=beek-widget-extention/beek-widget-extention.php
    • > Notice in wp-content/plugins/beek-widget-extention/beek-widget-extention.php+62
    Trying to access array offset on value of type bool

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
Please fix the following items
  • 10× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/beek-widget-extention/inc/bwe-hook.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/beek-widget-extention/inc/bwe-hook.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/beek-widget-extention/inc/bwe-hook.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/beek-widget-extention/inc/bwe-hook.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/beek-widget-extention/inc/bwe-hook.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/beek-widget-extention/inc/bwe-hook.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/beek-widget-extention/inc/bwe-hook.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/beek-widget-extention/inc/bwe-hook.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/beek-widget-extention/inc/bwe-hook.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/beek-widget-extention/inc/bwe-hook.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: post, heading, extend, widget, image...

beek-widget-extention/beek-widget-extention.php Passed 13 tests

The main PHP file in "Beek Widget Extention" ver. 0.9.5 adds more information about the plugin and also serves as the entry point for this plugin
60 characters long description:
Will extend the widget of WordPress. And add some shortcode.

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
Success! There were no dangerous files found in this plugin10,931 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code
CSS14171126,663
PHP10145362,220
LESS1371351,745
PO File186117191
JavaScript244112

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity43.50
▷ Minimum class complexity7.00
▷ Maximum class complexity133.00
Average method complexity10.66
▷ Minimum method complexity1.00
▷ Maximum method complexity76.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods44
▷ Static methods00.00%
▷ Public methods4397.73%
▷ Protected methods00.00%
▷ Private methods12.27%
Functions19
▷ Named functions1894.74%
▷ Anonymous functions15.26%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/bwe-no-thumbnail.png15.07KB5.47KB▼ 63.70%