84% genesis-club-lite

Code Review | Genesis Club Lite

WordPress plugin Genesis Club Lite scored84%from 54 tests.

About plugin

  • Plugin page: genesis-club-lite
  • Plugin version: 1.17
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.0-4.8
  • WordPress version: 6.3.1
  • First release: Jul 30, 2013
  • Latest release: Jun 18, 2017
  • Number of updates: 67
  • Update frequency: every 21.7 days
  • Top authors: powerblogservice (100%)

Code review

54 tests

User reviews

20 reviews

Install metrics

2,000+ active /38,976 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

Analyzing server-side resources used by Genesis Club Lite
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.76 ▼0.34
Dashboard /wp-admin3.31 ▲0.0050.06 ▼0.95
Posts /wp-admin/edit.php3.36 ▲0.0049.53 ▼6.67
Add New Post /wp-admin/post-new.php5.89 ▲0.00100.37 ▼6.85
Media Library /wp-admin/upload.php3.23 ▲0.0036.26 ▼5.64

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 74 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Genesis Club Lite
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.221.67 ▼0.2746.62 ▲0.17
Dashboard /wp-admin2,198 ▲185.62 ▼0.0290.75 ▼4.0941.47 ▼3.83
Posts /wp-admin/edit.php2,100 ▼02.02 ▼0.0140.32 ▼0.9839.92 ▲1.38
Add New Post /wp-admin/post-new.php1,525 ▼123.11 ▼0.10594.21 ▼89.4152.56 ▼9.45
Media Library /wp-admin/upload.php1,397 ▼64.19 ▲0.00100.91 ▲0.1146.91 ▲3.99

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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
Please fix the following
  • 33× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Genesis_Club_Widget' not found in wp-content/plugins/genesis-club-lite/classes/class-social-widgets.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Genesis_Club_Module' not found in wp-content/plugins/genesis-club-lite/classes/class-accordion.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Genesis_Club_Module' not found in wp-content/plugins/genesis-club-lite/classes/class-icons.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Genesis_Club_Admin' not found in wp-content/plugins/genesis-club-lite/classes/class-fonts-admin.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Genesis_Club_Admin' not found in wp-content/plugins/genesis-club-lite/classes/class-seo-admin.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Genesis_Club_Module' not found in wp-content/plugins/genesis-club-lite/classes/class-fonts.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Genesis_Club_Seo_Admin' not found in wp-content/plugins/genesis-club-lite/classes/class-seo-admin-thesis.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Genesis_Club_Module' not found in wp-content/plugins/genesis-club-lite/classes/class-display.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Genesis_Club_Module' not found in wp-content/plugins/genesis-club-lite/classes/class-signature.php:2
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/genesis-club-lite/classes/class-fonts-table.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes: You can take inspiration from this readme.txt

genesis-club-lite/main.php 92% from 13 tests

"Genesis Club Lite" version 1.17's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("genesis-club-lite.php" instead of "main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected7,914 lines of code in 63 files:
LanguageFilesBlank linesComment linesLines of code
PHP40986486,977
CSS15982670
JavaScript82119267

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity30.51
▷ Minimum class complexity3.00
▷ Maximum class complexity141.00
Average method complexity2.76
▷ Minimum method complexity1.00
▷ Maximum method complexity47.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes43
▷ Abstract classes49.30%
▷ Concrete classes3990.70%
▷ Final classes00.00%
Methods730
▷ Static methods20.27%
▷ Public methods65689.86%
▷ Protected methods10.14%
▷ Private methods7310.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants74
▷ Global constants1013.51%
▷ Class constants6486.49%
▷ Public constants64100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
styles/images/cross.png0.64KB0.72KB0.00%
styles/images/login-logo.png10.13KB4.71KB▼ 53.45%
styles/images/genesis-club.png4.18KB2.04KB▼ 51.26%
images/signature-example.png2.65KB2.57KB▼ 3.06%
styles/images/tick.png0.52KB0.52KB0.00%