89% wphellopack-recommendations-for-woocommerce

Code Review | WPhellopack Recommendations for WooCommerce

WordPress plugin WPhellopack Recommendations for WooCommerce scored 89% from 54 tests.

About plugin

  • Plugin page: wphellopack-recom...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 16, 2022
  • Latest release: Aug 16, 2022
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: itmapl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 154 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.70ms] Passed 4 tests

Analyzing server-side resources used by WPhellopack Recommendations for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.30 ▼16.04
Dashboard /wp-admin3.31 ▲0.0146.44 ▼1.22
Posts /wp-admin/edit.php3.36 ▲0.0144.24 ▼8.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.66 ▼8.84
Media Library /wp-admin/upload.php3.23 ▲0.0032.94 ▼0.33

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by WPhellopack Recommendations for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲5613.31 ▼1.081.82 ▼0.2937.19 ▼11.58
Dashboard /wp-admin2,203 ▲155.82 ▲1.0098.86 ▼17.1936.93 ▼8.43
Posts /wp-admin/edit.php2,086 ▼32.00 ▼0.0236.21 ▲0.0835.78 ▲2.06
Add New Post /wp-admin/post-new.php1,542 ▲918.39 ▼4.79611.57 ▼51.6750.98 ▼11.24
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.0596.43 ▼7.7441.22 ▼3.71

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Requires at least: Version not formatted correctly
  • Plugin Name: You should set the name of your plugin on the first line ( === wphellopack-recommendations-for-woocommerce === )
The official readme.txt is a good inspiration

wphellopack-recommendations-for-woocommerce/wphellopack-recommendations.php 92% from 13 tests

Analyzing the main PHP file in "WPhellopack Recommendations for WooCommerce" version 1.0.0
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wphellopack-recommendations-for-woocommerce.php" instead of "wphellopack-recommendations.php")

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
Good job! No executable or dangerous file extensions detected167 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP33476166
JavaScript1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected