84% genesis-enews-extended

Code Review | Genesis eNews Extended

WordPress plugin Genesis eNews Extended scored84%from 54 tests.

About plugin

  • Plugin page: genesis-enews-ext...
  • Plugin version: 2.2.0
  • PHP compatiblity: 5.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.6-6.3
  • WordPress version: 6.3.1
  • First release: Apr 2, 2012
  • Latest release: Sep 9, 2023
  • Number of updates: 89
  • Update frequency: every 46.9 days
  • Top authors: kraftbj (100%)

Code review

54 tests

User reviews

28 reviews

Install metrics

80,000+ active /1,089,951 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.09MB] [CPU: ▼7.92ms] Passed 4 tests

Server-side resources used by Genesis eNews Extended
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0938.42 ▼13.83
Dashboard /wp-admin3.40 ▲0.0957.69 ▼4.36
Posts /wp-admin/edit.php3.45 ▲0.0951.84 ▲0.31
Add New Post /wp-admin/post-new.php5.98 ▲0.0987.96 ▼13.78
Media Library /wp-admin/upload.php3.32 ▲0.0939.74 ▲2.18

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 49 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_enews-ext
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Genesis eNews Extended
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.28 ▲0.111.75 ▼0.1138.91 ▼10.40
Dashboard /wp-admin2,195 ▲155.63 ▼0.0488.39 ▼9.8040.70 ▼5.22
Posts /wp-admin/edit.php2,100 ▲31.98 ▲0.0133.85 ▼2.6137.42 ▲1.85
Add New Post /wp-admin/post-new.php1,526 ▼123.40 ▲0.17700.94 ▲29.6848.87 ▼9.91
Media Library /wp-admin/upload.php1,400 ▼04.24 ▲0.08111.29 ▲3.3648.04 ▲4.90

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_enews-ext
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/genesis-enews-extended/plugin.php:36
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/genesis-enews-extended/class-bjgk-genesis-enews-extended.php:19

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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: genesiswp, mailchimp, studiopress, genesis, newsletter...

genesis-enews-extended/plugin.php 92% from 13 tests

The main file in "Genesis eNews Extended" v. 2.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("genesis-enews-extended.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin2,073 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PO File205626881,688
PHP451144362
JSON10016
XML1017

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity51.00
▷ Minimum class complexity51.00
▷ Maximum class complexity51.00
Average method complexity11.00
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods480.00%
▷ Protected methods120.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
No PNG files were detected