10% wp-exclude-from-homepage

Code Review | Name: WP Exclude From Homepage

WordPress plugin Name: WP Exclude From Homepage scored10%from 54 tests.

About plugin

  • Plugin page: wp-exclude-from-h...
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8.1
  • WordPress version: 6.3.1
  • First release: Mar 20, 2013
  • Latest release: Feb 16, 2014
  • Number of updates: 7
  • Update frequency: every 47.6 days
  • Top authors: iziwebavenir (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

800+ active /14,676 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/wp-exclude-from-homepage/wp-exclude-from-homepage.php+41
    Methods with the same name as their class will not be constructors in a future version of PHP; EFHomepage has a deprecated constructor

Server metrics [RAM: ▼1.89MB] [CPU: ▼60.55ms] Passed 4 tests

This is a short check of server-side resources used by Name: WP Exclude From Homepage
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.15 ▼1.365.22 ▼40.81
Dashboard /wp-admin2.17 ▼1.226.94 ▼62.12
Posts /wp-admin/edit.php2.17 ▼1.235.75 ▼43.88
Add New Post /wp-admin/post-new.php2.17 ▼3.765.22 ▼95.40
Media Library /wp-admin/upload.php2.17 ▼1.106.73 ▼30.17
Exclude From Homepage /wp-admin/options-general.php?page=wp-exclude-from-homepage-settings2.175.66

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Name: WP Exclude From Homepage: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲5114.26 ▲0.051.69 ▼0.0444.76 ▼0.26
Dashboard /wp-admin2,203 ▲235.66 ▲0.0495.44 ▼4.4042.63 ▼1.94
Posts /wp-admin/edit.php2,108 ▲52.02 ▲0.0036.95 ▼7.7535.54 ▼0.73
Add New Post /wp-admin/post-new.php1,542 ▲1623.14 ▲0.11667.28 ▼29.9562.45 ▲4.89
Media Library /wp-admin/upload.php1,408 ▲84.27 ▲0.06110.07 ▲9.2649.09 ▲2.26
Exclude From Homepage /wp-admin/options-general.php?page=wp-exclude-from-homepage-settings9241.6925.4128.85

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/wp-exclude-from-homepage/wp-exclude-from-homepage.php+41
    Methods with the same name as their class will not be constructors in a future version of PHP; EFHomepage has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=wp-exclude-from-homepage-settings
    • > Deprecated in wp-content/plugins/wp-exclude-from-homepage/wp-exclude-from-homepage.php+41
    Methods with the same name as their class will not be constructors in a future version of PHP; EFHomepage has a deprecated constructor
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp-exclude-from-homepage-settings
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
    • > GET request to /wp-admin/options-general.php?page=wp-exclude-from-homepage-settings
    • > Warning in wp-content/plugins/wp-exclude-from-homepage/wp-exclude-from-homepage.php+180
    Use of undefined constant   - assumed ' ' (this will throw an Error in a future version of PHP)
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp-exclude-from-homepage-settings
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp-exclude-from-homepage-settings
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known

SRP 0% 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 perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wp-exclude-from-homepage/wp-exclude-from-homepage.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-exclude-from-homepage/inc/wp-exclude-from-homepage-settings.php:2

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 90% from 29 tests

readme.txt 81% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Donate link: Invalid URI found ("")
  • Screenshots: Add a description for screenshot #0 in wp-exclude-from-homepage/assets to your readme.txt
  • Plugin Name: Please specify the plugin name on the first line ( === Name: WP Exclude From Homepage === )
Please take inspiration from this readme.txt

wp-exclude-from-homepage/wp-exclude-from-homepage.php Passed 13 tests

The principal PHP file in "Name: WP Exclude From Homepage" v. 1.1.3 is loaded by WordPress automatically on each request
89 characters long description:
Exclude categories, tags, posts or pages from your homepage (without breaking pagination)

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
Everything looks great! No dangerous files found in this plugin612 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP222326268
PO File36981183
CSS1134143
JavaScript15218

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity63.00
▷ Minimum class complexity63.00
▷ Maximum class complexity63.00
Average method complexity5.13
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected