10% genesis-featured-page-extended

Code Review | Genesis Featured Page Extended

WordPress plugin Genesis Featured Page Extended scored10%from 54 tests.

About plugin

  • Plugin page: genesis-featured-...
  • Plugin version: 2.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.8
  • WordPress version: 6.3.1
  • First release: Dec 18, 2013
  • Latest release: Jan 24, 2014
  • Number of updates: 26
  • Update frequency: every 1.4 days
  • Top authors: jvandemerwe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,129 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/genesis-featured-page-extended/genesis-featured-page-extended.php+311
    Function create_function() is deprecated

Server metrics [RAM: ▼1.82MB] [CPU: ▼57.65ms] Passed 4 tests

A check of server-side resources used by Genesis Featured Page Extended
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.17 ▼1.306.41 ▼35.88
Dashboard /wp-admin2.19 ▼1.126.08 ▼43.43
Posts /wp-admin/edit.php2.19 ▼1.176.12 ▼43.92
Add New Post /wp-admin/post-new.php2.19 ▼3.705.66 ▼107.38
Media Library /wp-admin/upload.php2.19 ▼1.045.71 ▼28.89

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Genesis Featured Page Extended
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.441.78 ▼0.1344.29 ▲1.51
Dashboard /wp-admin2,195 ▲185.53 ▼0.1387.16 ▼4.1342.96 ▼1.18
Posts /wp-admin/edit.php2,097 ▼31.95 ▼0.0935.11 ▼5.0233.92 ▲0.19
Add New Post /wp-admin/post-new.php1,526 ▼923.54 ▲5.41695.59 ▲25.8869.43 ▼4.11
Media Library /wp-admin/upload.php1,397 ▼04.22 ▲0.0297.41 ▼30.7445.94 ▼4.87

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/genesis-featured-page-extended/genesis-featured-page-extended.php+311
    Function create_function() is deprecated
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_featuredpage-extended

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/genesis-featured-page-extended/genesis-featured-page-extended.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
1 plugin tags: genesis

genesis-featured-page-extended/genesis-featured-page-extended.php Passed 13 tests

The primary PHP file in "Genesis Featured Page Extended" version 2.2.1 is used by WordPress to initiate all plugin functionality
53 characters long description:
More options for the widget for Genesis Featured Page

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin337 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP16951191
PO File25050146

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity22.00
▷ Minimum class complexity22.00
▷ Maximum class complexity22.00
Average method complexity6.25
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected