84% genesis-printstyle-plus

Code Review | Genesis Printstyle Plus

WordPress plugin Genesis Printstyle Plus scored 84% from 54 tests.

About plugin

  • Plugin page: genesis-printstyl...
  • Plugin version: 1.9.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.1
  • WordPress version: 6.3.1
  • First release: Jul 1, 2011
  • Latest release: Feb 21, 2019
  • Number of updates: 57
  • Update frequency: every 49.0 days
  • Top authors: daveshine (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

800+ active / 23,434 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Genesis Printstyle Plus
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.26 ▼8.91
Dashboard /wp-admin3.31 ▲0.0042.09 ▼6.46
Posts /wp-admin/edit.php3.36 ▲0.0043.68 ▼8.93
Add New Post /wp-admin/post-new.php5.89 ▲0.0098.84 ▲0.99
Media Library /wp-admin/upload.php3.23 ▲0.0035.09 ▼0.00

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Genesis Printstyle Plus: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.64 ▼0.634.47 ▲2.1437.47 ▼14.55
Dashboard /wp-admin2,206 ▲205.89 ▲0.95112.46 ▼1.9542.51 ▼7.86
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0438.69 ▼4.5740.11 ▲4.99
Add New Post /wp-admin/post-new.php1,542 ▲2823.21 ▲5.65718.01 ▲9.8675.26 ▲15.33
Media Library /wp-admin/upload.php1,391 ▲34.22 ▼0.0199.65 ▼10.8747.22 ▲2.77

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • 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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/genesis-printstyle-plus/includes/gpsp-admin-extras.php
    • > /wp-content/plugins/genesis-printstyle-plus/genesis-printstyle-plus.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 Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: genesis framework, stylesheet, office, printstyle, deckerweb...

genesis-printstyle-plus/genesis-printstyle-plus.php Passed 13 tests

The principal PHP file in "Genesis Printstyle Plus" v. 1.9.3 is loaded by WordPress automatically on each request
117 characters long description:
This plugin is adding a printer-ready stylesheet file for the Genesis Framework and its currently active child theme.

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 plugin1,023 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
CSS4108113559
PO File3102112233
PHP5165280231

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.46
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%
Functions17
▷ Named functions17100.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
No PNG files were detected