73% wowholic-core

Code Review | Wowholic CORE

WordPress plugin Wowholic CORE scored73%from 54 tests.

About plugin

  • Plugin page: wowholic-core
  • Plugin version: 1.0.8
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.2.2
  • WordPress version: 6.3.1
  • First release: Dec 16, 2021
  • Latest release: Aug 3, 2023
  • Number of updates: 13
  • Update frequency: every 45.8 days
  • Top authors: wowholic (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /887 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲1.66MB] [CPU: ▲13.59ms] Passed 4 tests

An overview of server-side resources used by Wowholic CORE
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /5.10 ▲1.6460.87 ▲24.44
Dashboard /wp-admin5.03 ▲1.6972.28 ▲15.19
Posts /wp-admin/edit.php5.08 ▲1.7368.69 ▲20.65
Add New Post /wp-admin/post-new.php7.56 ▲1.6896.39 ▼5.30
Media Library /wp-admin/upload.php4.87 ▲1.6455.52 ▲23.82
All Comments /wp-admin/edit-comments.php4.7739.55

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 471 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Wowholic CORE
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,909 ▲16318.47 ▲4.121.54 ▼0.0941.59 ▼3.24
Dashboard /wp-admin2,336 ▲1569.77 ▲4.17199.69 ▲109.8038.70 ▼3.79
Posts /wp-admin/edit.php2,140 ▲406.24 ▲4.2680.12 ▲41.4631.15 ▼2.30
Add New Post /wp-admin/post-new.php1,536 ▼120.54 ▲2.35636.11 ▼16.7632.47 ▼31.15
Media Library /wp-admin/upload.php1,407 ▲76.70 ▲2.56118.59 ▲21.1742.49 ▼4.36
CORE /wp-admin/crb_carbon_fields_container_core.php260.420.0714.47
All Comments /wp-admin/edit-comments.php2,3589.02107.6940.03

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

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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 fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wowholic-core/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
  • 122× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Datastore\\Key_Value_Datastore' not found in wp-content/plugins/wowholic-core/vendor/htmlburger/carbon-fields/core/Datastore/Theme_Options_Datastore.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/wowholic-core/vendor/htmlburger/carbon-fields/core/Container/User_Meta_Container.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Term_Condition' not found in wp-content/plugins/wowholic-core/vendor/htmlburger/carbon-fields/core/Container/Condition/Post_Term_Condition.php:30
    • > PHP Fatal error
      Uncaught Error: Interface 'Carbon_Fields\\Datastore\\Datastore_Holder_Interface' not found in wp-content/plugins/wowholic-core/vendor/htmlburger/carbon-fields/core/Container/Container.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Select_Field' not found in wp-content/plugins/wowholic-core/vendor/htmlburger/carbon-fields/core/Field/Radio_Field.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Comparer\\Comparer' not found in wp-content/plugins/wowholic-core/vendor/htmlburger/carbon-fields/core/Container/Condition/Comparer/Any_Equality_Comparer.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function carbon_get_theme_option() in wp-content/plugins/wowholic-core/includes/actions/acf.php:6
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wowholic-core/vendor/htmlburger/carbon-fields/templates/Container/term_meta.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Theme_Options_Container' not found in wp-content/plugins/wowholic-core/vendor/htmlburger/carbon-fields/core/Container/Network_Container.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Datastore\\Datastore' not found in wp-content/plugins/wowholic-core/vendor/htmlburger/carbon-fields/core/Datastore/Key_Value_Datastore.php:13

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
    • > GET request to /wp-admin/crb_carbon_fields_container_core.php
    • > Network (severe)
    wp-admin/crb_carbon_fields_container_core.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit-comments.php
    • > Console-api (warning) in wp-content/plugins/wowholic-core/vendor/htmlburger/carbon-fields//build/classic/vendor.min.js?ver=3.6.0+48:54975
    wp.compose.withState is deprecated since version 5.8. Please use wp.element.useState instead.
    • > GET request to /wp-admin/edit-comments.php
    • > Javascript (severe) in unknown
    /wp-content/plugins/wowholic-core/assets/js/main.js?ver=6.3.1 3:15 Uncaught TypeError: Cannot read properties of null (reading 'addEventListener')

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: utility, development, custom themes, productivity, efficiency...

wowholic-core/wowholic-core.php Passed 13 tests

The principal PHP file in "Wowholic CORE" v. 1.0.8 is loaded by WordPress automatically on each request
60 characters long description:
Utility functions and options for common tasks in WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin32,729 lines of code in 420 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1737,10110,92416,199
PHP1582,6906,9739,796
CSS82421,1572,233
PO File268191,0202,202
Sass4836311,857
JSON400374
Markdown324068

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity8.82
▷ Minimum class complexity1.00
▷ Maximum class complexity50.00
Average method complexity2.09
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces23
Interfaces5
Traits0
Classes122
▷ Abstract classes119.02%
▷ Concrete classes11190.98%
▷ Final classes10.90%
Methods919
▷ Static methods10611.53%
▷ Public methods74981.50%
▷ Protected methods16517.95%
▷ Private methods50.54%
Functions143
▷ Named functions3927.27%
▷ Anonymous functions10472.73%
Constants34
▷ Global constants926.47%
▷ Class constants2573.53%
▷ Public constants25100.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 images were found in this plugin