84% genesis-whats-new-info

Code Review | Genesis What's New Info

WordPress plugin Genesis What's New Info scored84%from 54 tests.

About plugin

  • Plugin page: genesis-whats-new...
  • Plugin version: 1.3.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 16, 2013
  • Latest release: Nov 13, 2019
  • Number of updates: 26
  • Update frequency: every 88.9 days
  • Top authors: daveshine (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /7,986 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
Install script ran successfully

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

Analyzing server-side resources used by Genesis What's New Info
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.71 ▼2.41
Dashboard /wp-admin3.31 ▲0.0051.80 ▼2.75
Posts /wp-admin/edit.php3.36 ▲0.0055.23 ▼0.84
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.96 ▼16.21
Media Library /wp-admin/upload.php3.23 ▲0.0036.09 ▼0.38

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Genesis What's New Info
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.161.88 ▲0.3143.99 ▼3.13
Dashboard /wp-admin2,192 ▲185.51 ▼0.2184.94 ▼34.2740.59 ▼7.31
Posts /wp-admin/edit.php2,100 ▼32.03 ▲0.0438.00 ▼7.3335.36 ▲0.29
Add New Post /wp-admin/post-new.php1,528 ▲223.18 ▲0.27671.93 ▲44.9153.21 ▲0.26
Media Library /wp-admin/upload.php1,400 ▲34.20 ▼0.0097.43 ▼6.1941.94 ▼7.09

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | 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
Please fix the following items
  • 6× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/genesis-whats-new-info/genesis-whats-new-info.php
    • > /wp-content/plugins/genesis-whats-new-info/includes/gnewi-deprecated.php
    • > /wp-content/plugins/genesis-whats-new-info/includes/gnewi-genesis-metabox.php
    • > /wp-content/plugins/genesis-whats-new-info/includes/gnewi-functions-global.php
    • > /wp-content/plugins/genesis-whats-new-info/includes/gnewi-admin-extras.php
    • > /wp-content/plugins/genesis-whats-new-info/includes/ddwlib-plir/ddwlib-plugin-installer-recommendations.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Requires at least: The plugin version is formatted incorrectly
  • Tags: You are using too many tags: 11 tag instead of maximum 10
Please take inspiration from this readme.txt

genesis-whats-new-info/genesis-whats-new-info.php Passed 13 tests

The main PHP file in "Genesis What's New Info" ver. 1.3.4 adds more information about the plugin and also serves as the entry point for this plugin
115 characters long description:
Easy access of the Genesis What's New Admin overview page - not only on updates but everytime. Makes sense, heh? :)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,571 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP8368655910
PO File292120274
Markdown31340237
CSS13611128
JSON10022

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity36.00
▷ Minimum class complexity36.00
▷ Maximum class complexity36.00
Average method complexity3.06
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods1694.12%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions27
▷ Named functions27100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/ddwlib-plir/deckerweb-plugins-logo.png15.80KB6.20KB▼ 60.78%