90% woocommerce-shortcodes

Code Review | WooCommerce Shortcodes

WordPress plugin WooCommerce Shortcodes scored90%from 54 tests.

About plugin

  • Plugin page: woocommerce-short...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-5.5
  • WordPress version: 6.3.1
  • First release: Aug 1, 2014
  • Latest release: Aug 27, 2020
  • Number of updates: 12
  • Update frequency: every 184.8 days
  • Top authors: claudiosanches (91.67%)wpmuguru (16.67%)

Code review

54 tests

User reviews

6 reviews

Install metrics

20,000+ active /329,142 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by WooCommerce Shortcodes
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.72 ▼1.55
Dashboard /wp-admin3.32 ▲0.0143.92 ▼2.05
Posts /wp-admin/edit.php3.37 ▲0.0149.04 ▼7.70
Add New Post /wp-admin/post-new.php5.90 ▲0.0178.93 ▼21.20
Media Library /wp-admin/upload.php3.24 ▲0.0133.07 ▼2.47

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce Shortcodes
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲6113.26 ▼1.115.03 ▲3.1343.67 ▲0.97
Dashboard /wp-admin2,213 ▲224.85 ▼1.03108.62 ▲3.2739.22 ▼5.33
Posts /wp-admin/edit.php2,095 ▲32.01 ▲0.0140.92 ▲0.0439.81 ▲5.38
Add New Post /wp-admin/post-new.php1,521 ▲217.44 ▼5.52699.07 ▲39.0150.99 ▼5.78
Media Library /wp-admin/upload.php1,398 ▲104.22 ▲0.0395.40 ▼16.3140.34 ▼6.56

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: woocommerce, shortcodes

woocommerce-shortcodes/woocommerce-shortcodes.php Passed 13 tests

Analyzing the main PHP file in "WooCommerce Shortcodes" version 1.0.0
23 characters long description:
WooCommerce Shortcodes.

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
Good job! No executable or dangerous file extensions detected919 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript21010757
PHP33493146
Sass11015
CSS1001

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.33
Average class complexity5.00
▷ Minimum class complexity4.00
▷ Maximum class complexity6.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods18.33%
▷ Public methods1191.67%
▷ Protected methods00.00%
▷ Private methods18.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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