84% widgets-so-genesis

Code Review | Widgets for Genesis Framework

WordPress plugin Widgets for Genesis Framework scored84%from 54 tests.

About plugin

  • Plugin page: widgets-so-genesis
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.6
  • WordPress version: 6.3.1
  • First release: Feb 6, 2017
  • Latest release: Nov 30, 2020
  • Number of updates: 57
  • Update frequency: every 24.4 days
  • Top authors: closemarketing (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /2,843 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.23MB] [CPU: ▼0.70ms] Passed 4 tests

Server-side resources used by Widgets for Genesis Framework
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2542.84 ▼0.66
Dashboard /wp-admin3.53 ▲0.2252.66 ▲3.36
Posts /wp-admin/edit.php3.64 ▲0.2852.69 ▲3.76
Add New Post /wp-admin/post-new.php6.11 ▲0.2290.07 ▼1.79
Media Library /wp-admin/upload.php3.45 ▲0.2237.53 ▼3.72

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 14 new options
New WordPress options
theysaidso_admin_options
widget_childmenutext
widget_theysaidso_widget
widget_contact_widget
widget_widget_cmk_embed
widget_widget_bios
widget_socialtext
widget_widget_band
can_compress_scripts
widget_widget_latestimgposts
...

Browser metrics Passed 4 tests

Checking browser requirements for Widgets for Genesis Framework
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.22 ▼0.401.62 ▼0.2740.83 ▼0.18
Dashboard /wp-admin2,192 ▲125.60 ▼0.0293.51 ▲0.8640.24 ▲0.54
Posts /wp-admin/edit.php2,100 ▲31.94 ▼0.0439.05 ▼1.5836.77 ▼1.81
Add New Post /wp-admin/post-new.php1,526 ▼222.96 ▼0.14680.29 ▼8.8957.80 ▲4.39
Media Library /wp-admin/upload.php1,397 ▼34.22 ▼0.0797.15 ▼6.9140.73 ▼4.38

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 14 options in the database
    • theysaidso_admin_options
    • widget_widget_cmk_embed
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_widget_bios
    • widget_socialtext
    • widget_widget_latestimgposts
    • widget_childmenutext
    • widget_recent-comments
    • widget_contact_widget
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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
Please fix the following
  • 10× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/widgets-so-genesis/widgets/woocatimg.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/widgets-so-genesis/widgets/embed.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/widgets-so-genesis/widgets/woofeatured.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/widgets-so-genesis/widgets/latestimgposts.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/widgets-so-genesis/widgets/social-icons.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/widgets-so-genesis/widgets/buttios.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/widgets-so-genesis/widgets/childmenu.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/widgets-so-genesis/widgets/buttoncta.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/widgets-so-genesis/widgets/contactinfo.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/widgets-so-genesis/widgets/buttand.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: widgets, genesis

widgets-so-genesis/widgets-so-genesis.php 92% from 13 tests

The main PHP script in "Widgets for Genesis Framework" version 1.1 is automatically included on every request by WordPress
You should first fix the following items:
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin1,006 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP112122151,006

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity13.60
▷ Minimum class complexity2.00
▷ Maximum class complexity38.00
Average method complexity4.15
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods40
▷ Static methods00.00%
▷ Public methods40100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
4 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
widgets/images/appstore-es.png1.40KB1.46KB0.00%
widgets/images/playstore-en.png19.14KB2.61KB▼ 86.35%
widgets/images/playstore-es.png1.98KB2.03KB0.00%
widgets/images/appstore-en.png19.71KB3.18KB▼ 83.85%