84% genesis-widgetized-archive

Code Review | Genesis Widgetized Archive

WordPress plugin Genesis Widgetized Archive scored84%from 54 tests.

About plugin

  • Plugin page: genesis-widgetize...
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-5.1
  • WordPress version: 6.3.1
  • First release: Nov 19, 2012
  • Latest release: Feb 21, 2019
  • Number of updates: 17
  • Update frequency: every 134.4 days
  • Top authors: daveshine (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

200+ active /13,023 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Genesis Widgetized Archive
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.71 ▲2.30
Dashboard /wp-admin3.31 ▲0.0045.39 ▼1.17
Posts /wp-admin/edit.php3.36 ▲0.0045.36 ▲0.27
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.72 ▼12.16
Media Library /wp-admin/upload.php3.23 ▲0.0035.63 ▲0.18

Server storage [IO: ▲0.08MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Genesis Widgetized Archive
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.23 ▼1.401.73 ▲0.0544.73 ▲1.69
Dashboard /wp-admin2,203 ▲146.04 ▲1.0994.38 ▼23.2839.29 ▼4.01
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0136.40 ▼4.2634.05 ▲1.19
Add New Post /wp-admin/post-new.php1,514 ▼623.60 ▲0.42685.03 ▲0.7358.87 ▲3.70
Media Library /wp-admin/upload.php1,391 ▼04.25 ▲0.0296.55 ▼0.8743.35 ▼2.08

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

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 no errors were found, this is by no means 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
  • 4× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/genesis-widgetized-archive/includes/gwat-admin.php
    • > /wp-content/plugins/genesis-widgetized-archive/includes/gwat-widget-areas.php
    • > /wp-content/plugins/genesis-widgetized-archive/includes/gwat-frontend.php
    • > /wp-content/plugins/genesis-widgetized-archive/genesis-widgetized-archive.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were 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
These attributes need to be fixed:
  • Tags: There are too many tags (12 tag instead of maximum 10)
You can take inspiration from this readme.txt

genesis-widgetized-archive/genesis-widgetized-archive.php 92% from 13 tests

This is the main PHP file of "Genesis Widgetized Archive" version 1.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 148 characters long)

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 plugin687 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP7211386417
PO File270125218
CSS4325252

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.56
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%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants18
▷ Global constants18100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin