84% featured-post-exclude-category-for-genesis

Code Review | Featured Post Exclude Category for Genesis

WordPress plugin Featured Post Exclude Category for Genesis scored84%from 54 tests.

About plugin

  • Plugin page: featured-post-exc...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.8.1
  • WordPress version: 6.3.1
  • First release: Jul 18, 2017
  • Latest release: Oct 13, 2021
  • Number of updates: 19
  • Update frequency: every 81.5 days
  • Top authors: scott.deluzio (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /2,711 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▼7.77ms] Passed 4 tests

Server-side resources used by Featured Post Exclude Category for Genesis
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1043.11 ▲0.89
Dashboard /wp-admin3.41 ▲0.0649.21 ▼16.16
Posts /wp-admin/edit.php3.46 ▲0.1049.02 ▼1.88
Add New Post /wp-admin/post-new.php5.99 ▲0.1091.65 ▼13.94
Media Library /wp-admin/upload.php3.33 ▲0.1037.72 ▲1.30

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_featured-post-exclude
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Featured Post Exclude Category for Genesis
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.43 ▲0.091.78 ▼0.1143.45 ▲1.15
Dashboard /wp-admin2,203 ▲155.85 ▲0.9799.15 ▼4.6743.22 ▲2.15
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0537.72 ▼3.0035.73 ▼0.81
Add New Post /wp-admin/post-new.php1,533 ▲1423.40 ▲0.17675.57 ▼25.6252.57 ▼2.59
Media Library /wp-admin/upload.php1,388 ▼34.22 ▼0.1298.63 ▼5.9645.13 ▼0.99

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_featured-post-exclude
    • db_upgraded

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
Even though no errors were found, 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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/featured-post-exclude-category-for-genesis/genesis-featured-post-exclude-category.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: genesis, widget, studiopress, featured posts, genesis wp

featured-post-exclude-category-for-genesis/genesis-featured-post-exclude-category.php 92% from 13 tests

The primary PHP file in "Featured Post Exclude Category for Genesis" version 1.0.4 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("featured-post-exclude-category-for-genesis.php" instead of "genesis-featured-post-exclude-category.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected393 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1104121393

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity31.00
▷ Minimum class complexity31.00
▷ Maximum class complexity31.00
Average method complexity8.50
▷ Minimum method complexity1.00
▷ Maximum method complexity28.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%
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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin