84% genesis-connect-for-woothemes-sensei

Code Review | Genesis Connect for Woothemes Sensei

WordPress plugin Genesis Connect for Woothemes Sensei scored84%from 54 tests.

About plugin

  • Plugin page: genesis-connect-f...
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.1
  • WordPress version: 6.3.1
  • First release: Oct 13, 2015
  • Latest release: Feb 22, 2019
  • Number of updates: 45
  • Update frequency: every 27.3 days
  • Top authors: christophherr (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

80+ active /3,873 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼10.13ms] Passed 4 tests

Server-side resources used by Genesis Connect for Woothemes Sensei
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.31 ▼0.50
Dashboard /wp-admin3.31 ▼0.0444.66 ▼13.42
Posts /wp-admin/edit.php3.36 ▲0.0046.61 ▼2.07
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.75 ▼23.80
Media Library /wp-admin/upload.php3.23 ▲0.0032.60 ▼1.23

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Genesis Connect for Woothemes Sensei
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.28 ▼1.091.93 ▲0.1643.48 ▼2.17
Dashboard /wp-admin2,203 ▲155.77 ▲0.8696.28 ▼9.0839.31 ▼2.81
Posts /wp-admin/edit.php2,092 ▲31.99 ▼0.0339.35 ▼2.1834.16 ▼2.79
Add New Post /wp-admin/post-new.php1,536 ▲1723.45 ▲0.11651.62 ▲52.2454.00 ▲0.33
Media Library /wp-admin/upload.php1,385 ▼34.23 ▲0.0397.96 ▼0.3744.38 ▲2.82

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/genesis-connect-for-woothemes-sensei/genesis-connect-for-woothemes-sensei.php:35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/genesis-connect-for-woothemes-sensei/src/site-layout/site-layout.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/genesis-connect-for-woothemes-sensei/src/sensei-integration/sensei-integration.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: woocommerce sensei, automattic sensei, genesis connect, genesis, sensei...

genesis-connect-for-woothemes-sensei/genesis-connect-for-woothemes-sensei.php 92% from 13 tests

The main PHP script in "Genesis Connect for Woothemes Sensei" version 1.2.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 167 characters long)

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
Everything looks great! No dangerous files found in this plugin164 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
Markdown154085
PHP41913579

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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