84% hide-uncategorized-from-category-sidebar-widget

Code Review | Hide Uncategorized from Category Sidebar Widget

WordPress plugin Hide Uncategorized from Category Sidebar Widget scored84%from 54 tests.

About plugin

  • Plugin page: hide-uncategorize...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.2
  • WordPress version: 6.3.1
  • First release: Jul 15, 2020
  • Latest release: Jul 15, 2020
  • Number of updates: 3
  • Update frequency: every 1.7 days
  • Top authors: johnwwweissberg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /834 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.04ms] Passed 4 tests

A check of server-side resources used by Hide Uncategorized from Category Sidebar Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.28 ▲0.71
Dashboard /wp-admin3.31 ▲0.0142.70 ▼5.36
Posts /wp-admin/edit.php3.36 ▲0.0044.21 ▼3.55
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.37 ▼11.65
Media Library /wp-admin/upload.php3.24 ▲0.0032.26 ▼3.61

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Hide Uncategorized from Category Sidebar Widget
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.23 ▼1.121.71 ▼0.2550.16 ▲10.91
Dashboard /wp-admin2,203 ▲144.85 ▼1.24112.86 ▲2.1139.88 ▼3.32
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0940.30 ▼1.5135.66 ▲0.67
Add New Post /wp-admin/post-new.php1,533 ▼223.06 ▼0.23636.67 ▲37.5255.44 ▲1.81
Media Library /wp-admin/upload.php1,382 ▼04.12 ▼0.1494.52 ▼5.4745.00 ▲0.80

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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 fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/hide-uncategorized-from-category-sidebar-widget/hide-uncategorized-from-category-sidebar-widget.php:14

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

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
No plugin tags provided

hide-uncategorized-from-category-sidebar-widget/hide-uncategorized-from-category-sidebar-widget.php Passed 13 tests

The main file in "Hide Uncategorized from Category Sidebar Widget" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
58 characters long description:
Hide category Uncategorirized from category sidebar widget

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin7 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12117

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected