84% genesis-design-palette-pro-enews-widget

Code Review | Genesis Design Palette Pro - eNews Widget

WordPress plugin Genesis Design Palette Pro - eNews Widget scored84%from 54 tests.

About plugin

  • Plugin page: genesis-design-pa...
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.6
  • WordPress version: 6.3.1
  • First release: Mar 23, 2014
  • Latest release: Dec 23, 2020
  • Number of updates: 19
  • Update frequency: every 130.2 days
  • Top authors: Nick_theGeek (47.37%)norcross (47.37%)jjeaton (15.79%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /7,956 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 successfully, without throwing any errors or notices

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

Server-side resources used by Genesis Design Palette Pro - eNews Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.32 ▼5.45
Dashboard /wp-admin3.31 ▼0.0449.72 ▼17.77
Posts /wp-admin/edit.php3.36 ▲0.0046.78 ▼2.63
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.45 ▼16.27
Media Library /wp-admin/upload.php3.23 ▲0.0035.33 ▼3.93

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Genesis Design Palette Pro - eNews Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲6114.29 ▼0.062.03 ▲0.3945.39 ▲2.49
Dashboard /wp-admin2,195 ▲185.63 ▲0.0585.76 ▼16.4141.14 ▼1.73
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0534.01 ▼0.2235.67 ▲0.63
Add New Post /wp-admin/post-new.php1,526 ▼323.16 ▼0.04644.32 ▼40.8565.24 ▲10.86
Media Library /wp-admin/upload.php1,394 ▼64.20 ▲0.0999.09 ▼12.7343.29 ▼4.18

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/genesis-design-palette-pro-enews-widget/gppro-widget-enews.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
No tags were found

genesis-design-palette-pro-enews-widget/gppro-widget-enews.php 92% from 13 tests

The main file in "Genesis Design Palette Pro - eNews Widget" v. 1.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("genesis-design-palette-pro-enews-widget.php" instead of "gppro-widget-enews.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin749 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1106180749

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity45.00
▷ Minimum class complexity45.00
▷ Maximum class complexity45.00
Average method complexity4.14
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods17.14%
▷ Public methods1392.86%
▷ Protected methods00.00%
▷ Private methods17.14%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected