72% hellowoofy-com

Code Review | HelloWoofy.com

WordPress plugin HelloWoofy.com scored72%from 54 tests.

About plugin

  • Plugin page: hellowoofy-com
  • Plugin version: 1.1.5
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.0
  • WordPress version: 6.3.1
  • First release: Oct 12, 2020
  • Latest release: Aug 25, 2023
  • Number of updates: 41
  • Update frequency: every 25.6 days
  • Top authors: hellowoofy10 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /4,521 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 gracefully, with no errors

Server metrics [RAM: ▲0.16MB] [CPU: ▼8.78ms] Passed 4 tests

A check of server-side resources used by HelloWoofy.com
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1339.74 ▼3.71
Dashboard /wp-admin3.46 ▲0.1554.50 ▲4.45
Posts /wp-admin/edit.php3.57 ▲0.2252.66 ▼7.70
Add New Post /wp-admin/post-new.php6.23 ▲0.3488.14 ▼28.16
Media Library /wp-admin/upload.php3.36 ▲0.1341.44 ▲7.34
Add New /wp-admin/admin.php?page=mws_add_new_menu3.3637.50
All Stories /wp-admin/admin.php?page=mws_hellow_all_stories3.3739.46
Categories (Coming Soon) /wp-admin/admin.php?page=mws_categories3.3635.81
Tags (Coming Soon) /wp-admin/admin.php?page=mws_tags3.3635.20
Setting /wp-admin/admin.php?page=mws_hellow_woofy_setting3.3738.36
API Key /wp-admin/admin.php?page=hellowoofy-webstories3.3634.76

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

HelloWoofy.com: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,981 ▲21014.81 ▲0.061.73 ▼0.3644.34 ▼0.40
Dashboard /wp-admin2,372 ▲1876.42 ▲1.55132.47 ▲24.5797.51 ▲56.02
Posts /wp-admin/edit.php2,293 ▲2043.38 ▲1.3455.82 ▲8.7170.36 ▲21.36
Add New Post /wp-admin/post-new.php1,704 ▲16222.45 ▲4.07636.53 ▲21.1838.55 ▼16.99
Media Library /wp-admin/upload.php1,432 ▲474.14 ▼0.0584.19 ▼16.9373.56 ▲30.77
Add New /wp-admin/admin.php?page=mws_add_new_menu9772.9837.1960.62
All Stories /wp-admin/admin.php?page=mws_hellow_all_stories1,2352.4127.6954.60
Categories (Coming Soon) /wp-admin/admin.php?page=mws_categories9803.0539.1555.89
Tags (Coming Soon) /wp-admin/admin.php?page=mws_tags9832.9838.9552.74
Setting /wp-admin/admin.php?page=mws_hellow_woofy_setting1,3793.9460.8464.31
API Key /wp-admin/admin.php?page=hellowoofy-webstories1,57410.11289.01119.26

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-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/hellowoofy-com/admin/class-custom-post-archieve.php
  • 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/hellowoofy-com/admin/all-stories.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/hellowoofy-com/admin/class-custom-post-template.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/hellowoofy-com/admin/class-custom-post-content.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hellowoofy-com/admin/class-admin-menu.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hellowoofy-com/admin/helper.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/hellowoofy-com/public/slider-html.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/hellowoofy-com/public/class-display-slider-on-front-end.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_parse_args() in wp-content/plugins/hellowoofy-com/admin/class-custom-post-archieve.php:210
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_rest_route() in wp-content/plugins/hellowoofy-com/endpoints/class-mws-custom-endpoints.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hellowoofy-com/admin/class-register-post-type.php:23

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=hellowoofy-webstories
    • > Network (severe)
    fonts/ProximaNova-Regular.woff - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=hellowoofy-webstories
    • > Network (severe)
    fonts/ProximaNova-Regular.ttf - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Shows the current template file.) image required
The official readme.txt is a good inspiration

hellowoofy-com/hellowoofy-com.php 92% from 13 tests

Analyzing the main PHP file in "HelloWoofy.com" version 1.1.5
The following require your attention:
  • Domain Path: The domain path points to a folder that does not exist ("/i18n/languages/")

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
Everything looks great! No dangerous files found in this plugin2,942 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP133513801,943
CSS52239656
JavaScript143244343

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity23.00
▷ Minimum class complexity1.00
▷ Maximum class complexity81.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods40
▷ Static methods12.50%
▷ Public methods40100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants1
▷ Global constants1100.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
3 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/dot.png0.19KB0.16KB▼ 15.03%
assets/img/new-logo.png42.10KB22.97KB▼ 45.43%
assets/img/icon.png1.54KB1.58KB0.00%