84% genesis-featured-image

Code Review | Genesis Featured Image

WordPress plugin Genesis Featured Image scored84%from 54 tests.

About plugin

  • Plugin page: genesis-featured-...
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.9.8
  • WordPress version: 6.3.1
  • First release: Jun 5, 2015
  • Latest release: Oct 25, 2018
  • Number of updates: 9
  • Update frequency: every 138.4 days
  • Top authors: IbonAzkoitia (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

70+ active /4,233 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: ▼7.58ms] Passed 4 tests

Server-side resources used by Genesis Featured Image
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0043.59 ▼2.76
Dashboard /wp-admin3.31 ▲0.0054.47 ▲1.49
Posts /wp-admin/edit.php3.36 ▲0.0048.61 ▼2.86
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.52 ▼24.95
Media Library /wp-admin/upload.php3.23 ▲0.0036.77 ▲0.26

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Genesis Featured Image
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6914.74 ▲0.071.94 ▼0.1244.54 ▼8.33
Dashboard /wp-admin2,224 ▲244.81 ▼1.00104.86 ▼7.5038.27 ▼3.59
Posts /wp-admin/edit.php2,097 ▼32.05 ▲0.0638.29 ▼2.5133.33 ▼7.27
Add New Post /wp-admin/post-new.php1,545 ▲1223.23 ▼0.15653.17 ▼0.4048.29 ▼8.14
Media Library /wp-admin/upload.php1,394 ▼64.22 ▼0.0997.32 ▼12.9943.20 ▲0.43

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/genesis-featured-image/genesis-featured-image.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: studiopress, genesis framework, featured image, featured images, genesis

genesis-featured-image/genesis-featured-image.php Passed 13 tests

The primary PHP file in "Genesis Featured Image" version 1.2.0 is used by WordPress to initiate all plugin functionality
68 characters long description:
Allows you to add a Featured Image after header in Genesis Framework

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
There were no executable files found in this plugin808 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP6147262396
PO File390102362
JavaScript117448
CSS1002

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity7.50
▷ Minimum class complexity4.00
▷ Maximum class complexity10.00
Average method complexity1.87
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods32
▷ Static methods13.12%
▷ Public methods2784.38%
▷ Protected methods515.62%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin