78% genesis-prose-extras

Code Review | Genesis Prose Extras

WordPress plugin Genesis Prose Extras scored78%from 54 tests.

About plugin

  • Plugin page: genesis-prose-extras
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.1
  • WordPress version: 6.3.1
  • First release: Jul 3, 2013
  • Latest release: Feb 21, 2019
  • Number of updates: 10
  • Update frequency: every 206.0 days
  • Top authors: daveshine (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /8,386 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Analyzing server-side resources used by Genesis Prose Extras
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.17 ▲5.09
Dashboard /wp-admin3.31 ▲0.0043.39 ▼5.80
Posts /wp-admin/edit.php3.36 ▲0.0048.09 ▲3.97
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.50 ▼15.32
Media Library /wp-admin/upload.php3.23 ▲0.0038.39 ▲1.81

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

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

Browser metrics Passed 4 tests

Genesis Prose Extras: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.25 ▼0.401.89 ▲0.1640.29 ▼1.98
Dashboard /wp-admin2,189 ▲125.60 ▼0.0787.57 ▲2.6937.17 ▼9.64
Posts /wp-admin/edit.php2,097 ▼32.01 ▲0.0536.93 ▼4.0534.97 ▲1.02
Add New Post /wp-admin/post-new.php1,526 ▼223.04 ▲0.08686.57 ▲9.1360.81 ▲3.25
Media Library /wp-admin/upload.php1,400 ▼04.23 ▼0.0295.27 ▼8.5241.61 ▼2.83

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
  • 14× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/genesis-prose-extras/includes/gpex-translations-loader.php
    • > /wp-content/plugins/genesis-prose-extras/includes/gpex-layout-extras.php
    • > /wp-content/plugins/genesis-prose-extras/includes/gpex-admin-settings.php
    • > /wp-content/plugins/genesis-prose-extras/includes/gpex-template-loader.php
    • > /wp-content/plugins/genesis-prose-extras/includes/gpex-frontend.php
    • > /wp-content/plugins/genesis-prose-extras/includes/gpex-multisite.php
    • > /wp-content/plugins/genesis-prose-extras/includes/gpex-admin-extras.php
    • > /wp-content/plugins/genesis-prose-extras/includes/gpex-admin-functions.php
    • > /wp-content/plugins/genesis-prose-extras/genesis-prose-extras.php
    • > /wp-content/plugins/genesis-prose-extras/includes/gpex-shortcodes.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/genesis-prose-extras/templates/prose-home.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
You can look at the official readme.txt

genesis-prose-extras/genesis-prose-extras.php 92% from 13 tests

The main PHP file in "Genesis Prose Extras" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 147 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected3,678 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
PHP219521,5421,737
PO File46241,1801,547
CSS67993213
JavaScript24158181

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.33
Average class complexity22.00
▷ Minimum class complexity22.00
▷ Maximum class complexity22.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions79
▷ Named functions79100.00%
▷ Anonymous functions00.00%
Constants24
▷ Global constants24100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin