84% gppro-entry-content

Code Review | Genesis Design Palette Pro - Entry Content Style

WordPress plugin Genesis Design Palette Pro - Entry Content Style scored 84% from 54 tests.

About plugin

  • Plugin page: gppro-entry-content
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5
  • WordPress version: 6.3.1
  • First release: Mar 23, 2014
  • Latest release: Sep 8, 2020
  • Number of updates: 20
  • Update frequency: every 118.1 days
  • Top authors: norcross (55%)Nick_theGeek (45%)jjeaton (10%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active / 11,004 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.25MB] [CPU: ▼5.98ms] Passed 4 tests

This is a short check of server-side resources used by Genesis Design Palette Pro - Entry Content Style
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2639.90 ▼3.47
Dashboard /wp-admin3.56 ▲0.2545.42 ▼7.53
Posts /wp-admin/edit.php3.61 ▲0.2548.25 ▼2.47
Add New Post /wp-admin/post-new.php6.14 ▲0.2591.47 ▼10.43
Media Library /wp-admin/upload.php3.48 ▲0.2538.04 ▲5.42

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Genesis Design Palette Pro - Entry Content Style
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲9713.15 ▼1.411.96 ▼0.0842.70 ▼11.11
Dashboard /wp-admin2,216 ▲284.85 ▼1.05108.27 ▼1.5544.15 ▼4.44
Posts /wp-admin/edit.php2,095 ▲32.05 ▼0.0839.32 ▲1.7033.28 ▼0.73
Add New Post /wp-admin/post-new.php1,521 ▼1217.39 ▼5.90738.13 ▲38.9657.30 ▲0.50
Media Library /wp-admin/upload.php1,389 ▲44.21 ▼0.01104.14 ▲1.4143.15 ▲0.18

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/gppro-entry-content/gppro-entry-content.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes: Please take inspiration from this readme.txt

gppro-entry-content/gppro-entry-content.php Passed 13 tests

The main PHP script in "Genesis Design Palette Pro - Entry Content Style" version 1.0.5 is automatically included on every request by WordPress
86 characters long description:
Fine tune the look of the content inside posts and pages in Genesis Design Palette Pro

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,977 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11351461,885
PO File13412692

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity38.00
▷ Minimum class complexity38.00
▷ Maximum class complexity38.00
Average method complexity4.36
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods218.18%
▷ Public methods1090.91%
▷ Protected methods00.00%
▷ Private methods19.09%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin