83% demomentsomtres-wchidehidden

Code Review | DeMomentSomTres WooCommerce HideHidden

WordPress plugin DeMomentSomTres WooCommerce HideHidden scored 83% from 54 tests.

About plugin

  • Plugin page: demomentsomtres-w...
  • Plugin version: 20171106...
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.2.2
  • WordPress version: 6.3.1
  • First release: Nov 9, 2017
  • Latest release: Nov 9, 2017
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: marcqueralt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 786 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.39MB] [CPU: ▼1.40ms] Passed 4 tests

Server-side resources used by DeMomentSomTres WooCommerce HideHidden
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.87 ▲0.4140.88 ▼2.36
Dashboard /wp-admin3.73 ▲0.4345.98 ▲0.64
Posts /wp-admin/edit.php3.78 ▲0.4352.06 ▲5.61
Add New Post /wp-admin/post-new.php6.25 ▲0.3794.73 ▼2.95
Media Library /wp-admin/upload.php3.59 ▲0.3735.54 ▼0.94
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins3.6633.59

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for DeMomentSomTres WooCommerce HideHidden
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲7413.32 ▼1.244.27 ▲2.3343.28 ▼4.44
Dashboard /wp-admin2,234 ▲465.83 ▲0.95105.07 ▼8.3043.48 ▼0.75
Posts /wp-admin/edit.php2,131 ▲422.05 ▲0.0141.48 ▲0.6940.17 ▲4.47
Add New Post /wp-admin/post-new.php1,555 ▲2723.36 ▲0.54626.25 ▼18.2051.44 ▲2.24
Media Library /wp-admin/upload.php1,430 ▲394.24 ▲0.0698.59 ▲1.7346.30 ▲4.71
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins9592.0626.3432.64

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/demomentsomtres-wchidehidden/lib/class-tgm-plugin-activation.php:1910
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/demomentsomtres-wchidehidden/lib/class-tgm-plugin-activation.php:1910

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 90% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: hidden product, woocommerce, addtocart

demomentsomtres-wchidehidden/dms3-woocommerce-hidehidden.php 77% from 13 tests

The primary PHP file in "DeMomentSomTres WooCommerce HideHidden" version 20171106... is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Version: The version number should only use digits and periods (ex. "1.0.3" instead of "20171106...")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("demomentsomtres-wchidehidden.php" instead of "dms3-woocommerce-hidehidden.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
No dangerous file extensions were detected1,772 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP24781,4761,739
Markdown121033

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity38.88
▷ Minimum class complexity1.00
▷ Maximum class complexity178.00
Average method complexity4.06
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods99
▷ Static methods66.06%
▷ Public methods7979.80%
▷ Protected methods2020.20%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants00.00%
▷ Class constants6100.00%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin