78% genoo

Code Review | Genoo

WordPress plugin Genoo scored78%from 54 tests.

About plugin

  • Plugin page: genoo
  • Plugin version: 6.0.10
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2
  • WordPress version: 6.3.1
  • First release: Mar 8, 2014
  • Latest release: Apr 21, 2023
  • Number of updates: 220
  • Update frequency: every 15.1 days
  • Top authors: Genoo (70.91%)latorante (29.55%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /6,864 total downloads

Benchmarks

Plugin footprint 82% 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: ▲1.43MB] [CPU: ▲401.20ms] 75% from 4 tests

An overview of server-side resources used by Genoo
The following require your attention
  • Extra CPU: The extra CPU usage must be under 200.00ms (currently 401.20ms on /wp-admin/upload.php)
PageMemory (MB)CPU Time (ms)
Home /4.75 ▲1.2955.26 ▲10.07
Dashboard /wp-admin4.79 ▲1.48605.42 ▲550.88
Posts /wp-admin/edit.php4.83 ▲1.47589.58 ▲536.59
Add New Post /wp-admin/post-new.php7.39 ▲1.50622.65 ▲525.83
Media Library /wp-admin/upload.php4.70 ▲1.47570.55 ▲532.29

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 226 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
genooCTA
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
genooApiSettings
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Genoo
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,872 ▲11113.60 ▼0.935.12 ▲2.8636.66 ▼11.62
Dashboard /wp-admin2,231 ▲545.75 ▲0.0989.88 ▼0.2682.77 ▲42.57
Posts /wp-admin/edit.php2,167 ▲672.36 ▲0.3935.80 ▼3.0664.96 ▲28.61
Add New Post /wp-admin/post-new.php1,732 ▲20422.62 ▼0.47758.91 ▲73.5237.48 ▼22.88
Media Library /wp-admin/upload.php1,458 ▲584.32 ▲0.12100.54 ▼3.5598.47 ▲55.55

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
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • genooCTA
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/genoo/assets/GenooTineMCE.php
    • > /wp-content/plugins/genoo/assets/GenooTinyMCE.php
  • 61× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/genoo/libs/WPME/Extensions/GuttenbergShortcodes/form/index.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'WPME\\WPApi\\Base' not found in wp-content/plugins/genoo/libs/WPME/WPApi/CTAs.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'WPME\\RepositoryFactory' not found in wp-content/plugins/genoo/libs/WPME/Extensions/RepositorySurveys.php:32
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHWPINC/class-wp-customize-setting.php' (include_path='.:/usr/share/php') in wp-content/plugins/genoo/libs/WPME/Customizer/CustomizerSetting.php on line 26
    • > PHP Fatal error
      Uncaught Error: Class 'WPMKTENGINE\\Wordpress\otice' not found in wp-content/plugins/genoo/libs/WPME/Nag/Notice.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/genoo/GenooInit.php:58
    • > PHP Fatal error
      Uncaught Error: Class 'WPME\\ApiFactory' not found in wp-content/plugins/genoo/libs/WPME/ApiExtension/Surveys.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'WPMKTENGINE\\Repository' not found in wp-content/plugins/genoo/libs/WPME/RepositoryFactory.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/genoo/libs/WPMKTENGINE/WidgetCTA.php:34
    • > PHP Fatal error
      Uncaught Error: Class 'Genoo\\Api' not found in wp-content/plugins/genoo/libs/WPME/ApiFactory.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: marketing automation, email marketing, lead capture forms, centralized lead database

genoo/Genoo.php 92% from 13 tests

The primary PHP file in "Genoo" version 6.0.10 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("genoo.php" instead of "Genoo.php")

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 plugin29,631 lines of code in 186 files:
LanguageFilesBlank linesComment linesLines of code
PHP1663,45811,62522,481
JavaScript137371,3695,287
CSS61261461,862
SVG1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity24.98
▷ Minimum class complexity1.00
▷ Maximum class complexity249.00
Average method complexity3.39
▷ Minimum method complexity1.00
▷ Maximum method complexity87.00
Code structure
Namespaces22
Interfaces1
Traits0
Classes132
▷ Abstract classes75.30%
▷ Concrete classes12594.70%
▷ Final classes00.00%
Methods1,242
▷ Static methods35828.82%
▷ Public methods1,18795.57%
▷ Protected methods191.53%
▷ Private methods362.90%
Functions93
▷ Named functions1111.83%
▷ Anonymous functions8288.17%
Constants128
▷ Global constants3124.22%
▷ Class constants9775.78%
▷ Public constants97100.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
15 PNG files occupy 0.39MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png26.36KB14.79KB▼ 43.91%
assets/templates/horizontal-style/special-offer.png66.55KB22.41KB▼ 66.33%
screenshot-4.png64.12KB32.20KB▼ 49.78%
assets/bgShortcode.png1.02KB1.11KB0.00%
assets/bgTinyMCE.png0.58KB0.68KB0.00%