84% genesis-simple-customizations

Code Review | Easy Genesis (formerly Genesis Simple Customizations)

WordPress plugin Easy Genesis (formerly Genesis Simple Customizations) scored84%from 54 tests.

About plugin

  • Plugin page: genesis-simple-cu...
  • Plugin version: 2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.4.2
  • WordPress version: 6.3.1
  • First release: Dec 4, 2013
  • Latest release: Apr 7, 2016
  • Number of updates: 28
  • Update frequency: every 31.0 days
  • Top authors: Doug Yuen (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

600+ active /17,503 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

Server-side resources used by Easy Genesis (formerly Genesis Simple Customizations)
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.77 ▼4.16
Dashboard /wp-admin3.31 ▲0.0046.15 ▼2.42
Posts /wp-admin/edit.php3.36 ▲0.0045.48 ▼3.80
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.50 ▼6.04
Media Library /wp-admin/upload.php3.23 ▲0.0035.52 ▲2.91

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Easy Genesis (formerly Genesis Simple Customizations): an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.24 ▼1.341.73 ▲0.0638.98 ▼7.60
Dashboard /wp-admin2,203 ▲155.80 ▲0.9196.83 ▼10.8837.87 ▼5.39
Posts /wp-admin/edit.php2,092 ▲32.06 ▲0.0738.89 ▼2.5035.44 ▼1.12
Add New Post /wp-admin/post-new.php1,538 ▲1822.85 ▼0.10588.47 ▼34.1050.42 ▼5.16
Media Library /wp-admin/upload.php1,391 ▲34.24 ▲0.03101.73 ▲3.7441.79 ▼0.96

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • 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 everything seems fine, this is not 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 take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/genesis-simple-customizations/genesis-simple-customizations.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (25 tag instead of maximum 10)
You can take inspiration from this readme.txt

genesis-simple-customizations/genesis-simple-customizations.php 92% from 13 tests

The main PHP file in "Easy Genesis (formerly Genesis Simple Customizations)" ver. 2.3 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 146 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin1,286 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP119673909
JavaScript17934219
CSS1149158

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions44
▷ Named functions44100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/sidebar-top.png2.44KB1.14KB▼ 53.27%
assets/top-center.png2.46KB1.18KB▼ 51.77%
assets/sidebar-center.png2.47KB1.18KB▼ 52.17%
assets/default.png1.67KB0.37KB▼ 77.90%
assets/top-top.png2.42KB1.14KB▼ 53.00%