77% onix-helper-cpt-cmb-taxonomies

Code Review | Onix Helper

WordPress plugin Onix Helper scored77%from 54 tests.

About plugin

  • Plugin page: onix-helper-cpt-c...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.2
  • WordPress version: 6.3.1
  • First release: Apr 3, 2023
  • Latest release: May 5, 2023
  • Number of updates: 12
  • Update frequency: every 2.9 days
  • Top authors: wponixdev (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /205 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.30MB] [CPU: ▼2.57ms] Passed 4 tests

A check of server-side resources used by Onix Helper
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.80 ▲0.3351.03 ▲4.74
Dashboard /wp-admin3.65 ▲0.3057.19 ▼9.67
Posts /wp-admin/edit.php3.70 ▲0.3455.65 ▲5.99
Add New Post /wp-admin/post-new.php6.18 ▲0.3088.81 ▼11.34
Media Library /wp-admin/upload.php3.51 ▲0.2843.19 ▲7.70

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 66 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Onix Helper
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7014.28 ▼0.071.77 ▼0.0645.63 ▲1.74
Dashboard /wp-admin2,222 ▲455.71 ▲0.1389.01 ▼2.1581.66 ▲38.38
Posts /wp-admin/edit.php2,124 ▲242.03 ▲0.0434.18 ▼2.9638.36 ▲1.04
Add New Post /wp-admin/post-new.php1,551 ▲2523.07 ▼0.46711.77 ▲22.9937.78 ▼19.81
Media Library /wp-admin/upload.php1,424 ▲244.24 ▲0.06104.32 ▲1.1977.26 ▲25.36

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
  • 4× PHP files output text when accessed directly:
    • > /wp-content/plugins/onix-helper-cpt-cmb-taxonomies/templates/template-parts/holidays-decor/christmas-lights.php
    • > /wp-content/plugins/onix-helper-cpt-cmb-taxonomies/onix-helper.php
    • > /wp-content/plugins/onix-helper-cpt-cmb-taxonomies/templates/template-parts/sections/footer-main.php
    • > /wp-content/plugins/onix-helper-cpt-cmb-taxonomies/templates/template-parts/functional-parts/plugin-title.php
  • 20× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Parse error
      syntax error, unexpected '|', expecting ';' or '{' in wp-content/plugins/onix-helper-cpt-cmb-taxonomies/inc/Interfaces/Callbacks/OhelperTaxCallbacksOhelper.php on line 155
    • > PHP Fatal error
      Uncaught Error: Class 'Onixhelper\\System\\OhelperBaseController' not found in wp-content/plugins/onix-helper-cpt-cmb-taxonomies/templates/cpt_manager.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Onixhelper\\System\\OhelperBaseController' not found in wp-content/plugins/onix-helper-cpt-cmb-taxonomies/inc/System/OhelperFieldsControllerOhelper.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Onixhelper\\System\\OhelperBaseController' not found in wp-content/plugins/onix-helper-cpt-cmb-taxonomies/inc/System/OhelperTaxControllerOhelper.php:12
    • > PHP Parse error
      syntax error, unexpected '|', expecting variable (T_VARIABLE) in wp-content/plugins/onix-helper-cpt-cmb-taxonomies/inc/System/FieldsClasses/OhelperConfigurableMetabox.php on line 15
    • > PHP Fatal error
      Uncaught Error: Class 'Onixhelper\\System\\OhelperBaseController' not found in wp-content/plugins/onix-helper-cpt-cmb-taxonomies/inc/System/OhelperSettingsLinks.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Onixhelper\\System\\OhelperBaseController' not found in wp-content/plugins/onix-helper-cpt-cmb-taxonomies/templates/template-parts/sections/header-main.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Onixhelper\\System\\OhelperBaseController' not found in wp-content/plugins/onix-helper-cpt-cmb-taxonomies/inc/Interfaces/OhelperAdminPagesCreator.php:14
    • > PHP Parse error
      syntax error, unexpected '|', expecting variable (T_VARIABLE) in wp-content/plugins/onix-helper-cpt-cmb-taxonomies/inc/Interfaces/Callbacks/OhelperBaseCallbacks.php on line 48
    • > PHP Fatal error
      Uncaught Error: Class 'Onixhelper\\System\\OhelperBaseController' not found in wp-content/plugins/onix-helper-cpt-cmb-taxonomies/inc/System/OhelperCPTControllerOhelper.php:13

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

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: taxonomy, custom post type, cpt

onix-helper-cpt-cmb-taxonomies/onix-helper.php 54% from 13 tests

The primary PHP file in "Onix Helper" version 1.0.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("6.0" instead of "6.1")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("onix-helper-cpt-cmb-taxonomies.php" instead of "onix-helper.php")
  • Domain Path: The domain path must begin with a forward slash character ("//")
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("/")
  • Description: The description should be shorter than 140 characters (currently 178 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin4,263 lines of code in 57 files:
LanguageFilesBlank linesComment linesLines of code
PHP417779103,498
Sass5746415
JavaScript79079291
CSS21136
JSON20023

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity13.74
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces8
Interfaces0
Traits0
Classes23
▷ Abstract classes00.00%
▷ Concrete classes23100.00%
▷ Final classes14.35%
Methods165
▷ Static methods2515.15%
▷ Public methods13581.82%
▷ Protected methods116.67%
▷ Private methods1911.52%
Functions6
▷ Named functions350.00%
▷ Anonymous functions350.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
4 PNG files occupy 0.09MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/mono-logo.png0.58KB0.74KB0.00%
assets/img/onix-bot.png13.31KB6.06KB▼ 54.46%
assets/img/mascot.png76.09KB19.84KB▼ 73.93%
assets/img/no-image.png3.98KB4.27KB0.00%