84% bc-quick-add-child-category

Code Review | WP Quick Add Child Category By binarycarpenter.com

WordPress plugin WP Quick Add Child Category By binarycarpenter.com scored84%from 54 tests.

About plugin

  • Plugin page: bc-quick-add-chil...
  • Plugin version: 1.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.9.8
  • WordPress version: 6.3.1
  • First release: Apr 30, 2019
  • Latest release: Apr 30, 2019
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: bc2018 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /687 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by WP Quick Add Child Category By binarycarpenter.com
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.57 ▲0.35
Dashboard /wp-admin3.32 ▼0.0345.69 ▼11.86
Posts /wp-admin/edit.php3.37 ▲0.0144.31 ▼10.15
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.81 ▼9.30
Media Library /wp-admin/upload.php3.24 ▲0.0140.34 ▲8.43

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Quick Add Child Category By binarycarpenter.com
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.17 ▼0.201.69 ▼0.1639.10 ▲1.40
Dashboard /wp-admin2,198 ▲185.58 ▼0.0593.26 ▲6.4937.89 ▼5.14
Posts /wp-admin/edit.php2,103 ▲32.00 ▲0.0138.95 ▲1.9338.68 ▲5.49
Add New Post /wp-admin/post-new.php1,526 ▼223.12 ▼0.02691.60 ▲7.8654.35 ▼12.29
Media Library /wp-admin/upload.php1,400 ▲34.20 ▲0.0099.19 ▲3.1640.75 ▼5.75

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

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
Even though no errors were found, this is by no means an exhaustive test

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 items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bc-quick-add-child-category/inc/BC_Quick_Add_Child_Category.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bc-quick-add-child-category/inc/BC_Quick_Add_Child_Category.php:14

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: category, wp category

bc-quick-add-child-category/index.php 92% from 13 tests

The principal PHP file in "WP Quick Add Child Category By binarycarpenter.com" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bc-quick-add-child-category.php" instead of "index.php")

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 plugin50 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4213050

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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 files were detected