84% remove-posts-in-category-from-homepage

Code Review | Remove Posts in Category From Homepage

WordPress plugin Remove Posts in Category From Homepage scored84%from 54 tests.

About plugin

  • Plugin page: remove-posts-in-c...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4.2
  • WordPress version: 6.3.1
  • First release: Sep 19, 2012
  • Latest release: Feb 23, 2016
  • Number of updates: 11
  • Update frequency: every 113.8 days
  • Top authors: davidwalsh83 (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

300+ active /9,959 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.66ms] Passed 4 tests

An overview of server-side resources used by Remove Posts in Category From Homepage
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.26 ▼2.33
Dashboard /wp-admin3.33 ▲0.0243.48 ▼7.61
Posts /wp-admin/edit.php3.38 ▲0.0248.29 ▲0.53
Add New Post /wp-admin/post-new.php5.91 ▲0.0281.21 ▼19.66
Media Library /wp-admin/upload.php3.25 ▲0.0235.16 ▼1.05

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Remove Posts in Category From Homepage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▲0.191.55 ▼0.1737.95 ▼10.90
Dashboard /wp-admin2,206 ▲184.84 ▼1.03113.75 ▼2.6843.92 ▼3.89
Posts /wp-admin/edit.php2,089 ▼02.04 ▼0.0036.55 ▼3.5132.30 ▼4.51
Add New Post /wp-admin/post-new.php1,519 ▼1423.21 ▲0.15673.69 ▲7.3852.29 ▼3.18
Media Library /wp-admin/upload.php1,385 ▼64.24 ▲0.06100.09 ▼16.6042.97 ▼6.16

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • 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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/remove-posts-in-category-from-homepage/remove-category-from-loop.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === remove-posts-in-category-from-homepage === )
The official readme.txt is a good inspiration

remove-posts-in-category-from-homepage/remove-category-from-loop.php 92% from 13 tests

The main file in "Remove Posts in Category From Homepage" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("remove-posts-in-category-from-homepage.php" instead of "remove-category-from-loop.php")

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
Success! There were no dangerous files found in this plugin100 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11618100

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin