84% hester-core

Code Review | Hester Core

WordPress plugin Hester Core scored84%from 54 tests.

About plugin

  • Plugin page: hester-core
  • Plugin version: 1.0.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Mar 25, 2022
  • Latest release: Nov 22, 2023
  • Number of updates: 28
  • Update frequency: every 21.8 days
  • Top authors: peregrinethemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /4,530 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
This plugin's installer ran successfully

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

Analyzing server-side resources used by Hester Core
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.11 ▼6.02
Dashboard /wp-admin3.32 ▼0.0350.07 ▼11.38
Posts /wp-admin/edit.php3.37 ▲0.0146.95 ▼4.16
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.14 ▼0.51
Media Library /wp-admin/upload.php3.24 ▲0.0133.09 ▲1.80

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 356 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Hester Core
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲5714.70 ▲0.441.69 ▼0.4138.29 ▼14.09
Dashboard /wp-admin2,198 ▲215.52 ▼0.0884.39 ▼16.0439.72 ▼2.07
Posts /wp-admin/edit.php2,103 ▼02.02 ▲0.0836.82 ▼2.3836.35 ▼1.47
Add New Post /wp-admin/post-new.php1,529 ▲323.51 ▲0.27591.94 ▼49.0559.02 ▼3.94
Media Library /wp-admin/upload.php1,403 ▼04.19 ▲0.0593.18 ▼5.6542.61 ▲0.79

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
Almost there! Just fix the following items
  • 21× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Warning
      Use of undefined constant HESTER_CORE_PLUGIN_DIR - assumed 'HESTER_CORE_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/hester-core/themes/hester/hester.php on line 3
    • > PHP Warning
      Use of undefined constant HESTER_CORE_PLUGIN_DIR - assumed 'HESTER_CORE_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/hester-core/themes/hester/customizer/settings/index.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/hester-core/themes/hester/sections/section-slider.php:205
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/hester-core/themes/hester/customizer/settings/settings-services.php:2
    • > PHP Warning
      require_once(HESTER_CORE_PLUGIN_DIRthemes/hester/sections/section-slider.php): failed to open stream: No such file or directory in wp-content/plugins/hester-core/themes/hester/sections/index.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/hester-core/themes/hester/customizer/settings/settings-products.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/hester-core/core/widgets/class-hester-core-social-links-widget.php:9
    • > PHP Warning
      require_once(HESTER_CORE_PLUGIN_DIRthemes/hester/customizer/settings/settings-slider.php): failed to open stream: No such file or directory in wp-content/plugins/hester-core/themes/hester/customizer/settings/index.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/hester-core/themes/hester/customizer/settings/settings-features.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/hester-core/themes/hester/customizer/settings/settings-slider.php:3

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 93% from 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
8 plugin tags: hester, demos, demo website, blocks, custom blocks...

hester-core/hester-core.php 85% from 13 tests

The main file in "Hester Core" v. 1.0.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
  • Domain Path: The domain path must begin with a forward slash character ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected21,975 lines of code in 348 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript102,48843811,897
PHP361,3481,7536,327
CSS14495873,453
SVG28800298

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity35.05
▷ Minimum class complexity1.00
▷ Maximum class complexity185.00
Average method complexity5.45
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes20
▷ Abstract classes00.00%
▷ Concrete classes20100.00%
▷ Final classes1050.00%
Methods153
▷ Static methods2315.03%
▷ Public methods13487.58%
▷ Protected methods10.65%
▷ Private methods1811.76%
Functions38
▷ Named functions3386.84%
▷ Anonymous functions513.16%
Constants6
▷ Global constants6100.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
1 compressed PNG file occupies 0.57MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/img01.png580.24KB652.23KB0.00%