84% wonderplugin-exclude-category

Code Review | Exclude Category from Blog

WordPress plugin Exclude Category from Blog scored84%from 54 tests.

About plugin

  • Plugin page: wonderplugin-excl...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.7.1
  • WordPress version: 6.3.1
  • First release: May 21, 2019
  • Latest release: May 2, 2021
  • Number of updates: 9
  • Update frequency: every 79.1 days
  • Top authors: wonderplugin (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

2,000+ active /7,469 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 gracefully, with no errors

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

This is a short check of server-side resources used by Exclude Category from Blog
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.02 ▼4.52
Dashboard /wp-admin3.31 ▲0.0144.43 ▼4.97
Posts /wp-admin/edit.php3.36 ▲0.0144.41 ▼4.67
Add New Post /wp-admin/post-new.php5.89 ▲0.0181.93 ▼6.38
Media Library /wp-admin/upload.php3.23 ▲0.0137.35 ▲4.26
Exclude Categories /wp-admin/options-general.php?page=wonderplugin_exclude_category3.2130.56

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Exclude Category from Blog
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.48 ▲0.111.90 ▲0.2041.80 ▲0.11
Dashboard /wp-admin2,210 ▲344.88 ▼0.04104.61 ▼6.1839.25 ▼4.21
Posts /wp-admin/edit.php2,090 ▼22.05 ▲0.0435.32 ▼0.8332.48 ▼0.32
Add New Post /wp-admin/post-new.php1,539 ▲623.25 ▲0.04599.50 ▼88.7954.24 ▼18.23
Media Library /wp-admin/upload.php1,392 ▲44.21 ▼0.0994.16 ▼3.0041.73 ▼1.78
Exclude Categories /wp-admin/options-general.php?page=wonderplugin_exclude_category8352.0324.2028.16

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wonderplugin-exclude-category/wonderplugin-exclude-category.php:20

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

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed: The official readme.txt might help

wonderplugin-exclude-category/wonderplugin-exclude-category.php Passed 13 tests

"Exclude Category from Blog" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
64 characters long description:
Exclude categories from WordPress blog page, home page or search

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 plugin133 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1388133

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.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