90% genesis-featured-page-advanced

Code Review | Genesis Featured Page Advanced

WordPress plugin Genesis Featured Page Advanced scored90%from 54 tests.

About plugin

  • Plugin page: genesis-featured-...
  • Plugin version: 1.9.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.1
  • WordPress version: 6.3.1
  • First release: Jan 23, 2014
  • Latest release: Jan 18, 2023
  • Number of updates: 61
  • Update frequency: every 53.8 days
  • Top authors: ndiego (100%)

Code review

54 tests

User reviews

29 reviews

Install metrics

10,000+ active /156,095 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼2.65ms] Passed 4 tests

An overview of server-side resources used by Genesis Featured Page Advanced
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.06 ▲1.57
Dashboard /wp-admin3.31 ▼0.0445.42 ▼12.28
Posts /wp-admin/edit.php3.36 ▲0.0045.91 ▲1.12
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.63 ▲2.19
Media Library /wp-admin/upload.php3.23 ▲0.0032.46 ▼1.02

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Genesis Featured Page Advanced
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.44 ▲0.071.62 ▲0.0438.81 ▼3.12
Dashboard /wp-admin2,203 ▲115.84 ▲0.86106.85 ▼2.3642.51 ▲1.19
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0539.22 ▼2.1135.26 ▼0.05
Add New Post /wp-admin/post-new.php1,528 ▼022.76 ▼0.29637.44 ▼46.3753.13 ▼1.76
Media Library /wp-admin/upload.php1,388 ▼04.27 ▼0.0197.51 ▼3.8641.77 ▼5.94

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 did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: featured content, widget-only, widget, featured page, genesiswp...

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

The primary PHP file in "Genesis Featured Page Advanced" version 1.9.9 is used by WordPress to initiate all plugin functionality
103 characters long description:
Adds an enhanced version of the Genesis - Featured Page widget. The Genesis Framework 2.0+ is required.

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
Success! There were no dangerous files found in this plugin596 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2117110466
JavaScript1291999
CSS10031

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity93.00
▷ Minimum class complexity93.00
▷ Maximum class complexity93.00
Average method complexity19.40
▷ Minimum method complexity1.00
▷ Maximum method complexity69.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin