83% projecthuddle-child-site

Code Review | SureFeedback Client Site

WordPress plugin SureFeedback Client Site scored83%from 54 tests.

About plugin

  • Plugin page: projecthuddle-chi...
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4.1
  • WordPress version: 6.3.1
  • First release: Jul 23, 2019
  • Latest release: Nov 9, 2023
  • Number of updates: 67
  • Update frequency: every 23.4 days
  • Top authors: 2winfactor (80.6%)brainstormworg (20.9%)

Code review

54 tests

User reviews

23 reviews

Install metrics

6,000+ active /99,085 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼6.30ms] Passed 4 tests

Analyzing server-side resources used by SureFeedback Client Site
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1439.60 ▼1.99
Dashboard /wp-admin3.46 ▲0.1152.05 ▼11.67
Posts /wp-admin/edit.php3.57 ▲0.2150.78 ▲5.22
Add New Post /wp-admin/post-new.php6.04 ▲0.1583.48 ▼11.68
Media Library /wp-admin/upload.php3.38 ▲0.1533.60 ▲0.15
SureFeedback /wp-admin/options-general.php?page=feedback-connection-options3.3532.72

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
ph_child_installed
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

SureFeedback Client Site: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲7914.30 ▼0.111.74 ▼0.1442.32 ▼1.88
Dashboard /wp-admin2,202 ▲245.63 ▲0.0385.79 ▼28.9636.31 ▼5.87
Posts /wp-admin/edit.php2,107 ▲72.00 ▲0.0335.83 ▼3.5230.04 ▼6.19
Add New Post /wp-admin/post-new.php1,535 ▲923.37 ▲0.29662.45 ▲42.9056.87 ▲7.70
Media Library /wp-admin/upload.php1,407 ▲74.25 ▲0.0696.74 ▼9.8741.39 ▼0.93
SureFeedback /wp-admin/options-general.php?page=feedback-connection-options8771.9822.8228.79

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/projecthuddle-child-site/ph-child-functions.php:86

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 86% 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
6 plugin tags: huddle, design, project, approval, child...

projecthuddle-child-site/ph-child.php 69% from 13 tests

The main PHP file in "SureFeedback Client Site" ver. 1.2.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("projecthuddle-child-site.php" instead of "ph-child.php")
  • Domain Path: Please prefix the domain path with a forward slash character ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected928 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP3130251782
Markdown316062
YAML32048
XML15218
SVG10113
JSON1005

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity67.00
▷ Minimum class complexity67.00
▷ Maximum class complexity67.00
Average method complexity3.13
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods31
▷ Static methods00.00%
▷ Public methods31100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin