78% wp-categories-metabox-extended

Code Review | WP Categories Metabox Extended

WordPress plugin WP Categories Metabox Extended scored78%from 54 tests.

About plugin

  • Plugin page: wp-categories-met...
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.3.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.1.1
  • WordPress version: 6.3.1
  • First release: Jan 15, 2018
  • Latest release: Apr 18, 2019
  • Number of updates: 14
  • Update frequency: every 32.7 days
  • Top authors: mariadanieldeepak (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /866 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.07MB] [CPU: ▼14.18ms] Passed 4 tests

An overview of server-side resources used by WP Categories Metabox Extended
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0836.33 ▼1.87
Dashboard /wp-admin3.38 ▲0.0446.52 ▼16.84
Posts /wp-admin/edit.php3.49 ▲0.1448.20 ▲0.40
Add New Post /wp-admin/post-new.php5.96 ▲0.0889.31 ▼37.31
Media Library /wp-admin/upload.php3.30 ▲0.0734.19 ▼0.70

Server storage [IO: ▲0.03MB] [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: 11 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by WP Categories Metabox Extended
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.55 ▼0.831.72 ▲0.0441.69 ▼0.82
Dashboard /wp-admin2,203 ▲154.85 ▼0.03110.14 ▼1.0440.46 ▼2.49
Posts /wp-admin/edit.php2,092 ▲31.97 ▼0.0339.02 ▲5.7034.35 ▼2.17
Add New Post /wp-admin/post-new.php1,411 ▼10317.94 ▲0.30598.62 ▼96.4644.21 ▼12.29
Media Library /wp-admin/upload.php1,388 ▼04.24 ▲0.0695.82 ▼9.4442.54 ▼5.05

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wp-categories-metabox-extended/load-wp-categories-metabox-extended.php
    • > /wp-content/plugins/wp-categories-metabox-extended/wp-categories-metabox-extended.php
    • > /wp-content/plugins/wp-categories-metabox-extended/include/Core/WPCategoriesMetaboxExtended.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Interface 'WPCategoriesMetaboxExtended\\Core\\Loadie' not found in wp-content/plugins/wp-categories-metabox-extended/include/Core/Request/WPCategoriesMetaboxExtendedAction.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'WPCategoriesMetaboxExtended\\Core\\Loadie' not found in wp-content/plugins/wp-categories-metabox-extended/include/UI/UIManager.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: search, editor, admin, category

wp-categories-metabox-extended/wp-categories-metabox-extended.php 92% from 13 tests

This is the main PHP file of "WP Categories Metabox Extended" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected487 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP8125393329
JavaScript13224126
CSS15032

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity5.17
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.93
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces5
Interfaces1
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods28
▷ Static methods00.00%
▷ Public methods2692.86%
▷ Protected methods27.14%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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 images were found in this plugin