83% hostfact-bestelformulier-integratie

Code Review | HostFact bestelformulier integratie

WordPress plugin HostFact bestelformulier integratie scored83%from 54 tests.

About plugin

  • Plugin page: hostfact-bestelfo...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Apr 6, 2018
  • Latest release: Oct 5, 2022
  • Number of updates: 9
  • Update frequency: every 182.6 days
  • Top authors: hostfact (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,672 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: ▼14.12ms] Passed 4 tests

Server-side resources used by HostFact bestelformulier integratie
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0136.74 ▼6.71
Dashboard /wp-admin3.32 ▼0.0348.30 ▼16.05
Posts /wp-admin/edit.php3.37 ▲0.0145.85 ▼4.31
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.03 ▼29.39
Media Library /wp-admin/upload.php3.24 ▲0.0135.09 ▼3.22

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for HostFact bestelformulier integratie
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5514.27 ▼0.042.07 ▲0.3338.45 ▼4.29
Dashboard /wp-admin2,195 ▲155.59 ▼0.0297.39 ▲5.1342.08 ▼1.73
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0234.92 ▼5.9032.68 ▼5.89
Add New Post /wp-admin/post-new.php1,526 ▼923.13 ▲4.86659.30 ▼7.7457.37 ▼13.37
Media Library /wp-admin/upload.php1,394 ▼94.23 ▲0.0198.86 ▼18.2642.95 ▼7.31

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hostfact-bestelformulier-integratie/hostfact-bestelformulier.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === hostfact-bestelformulier-integratie === )
You can look at the official readme.txt

hostfact-bestelformulier-integratie/hostfact-bestelformulier.php 85% from 13 tests

"HostFact bestelformulier integratie" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("hostfact-bestelformulier-integratie.php" instead of "hostfact-bestelformulier.php")
  • Description: The description should be shorter than 140 characters (currently 318 characters long)

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
Good job! No executable or dangerous file extensions detected50 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP162433
JavaScript11017

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code1.09
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity7.00
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods2100.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin