10% weecomments

Code Review | weeComments - Shop & Products Reviews

WordPress plugin weeComments - Shop & Products Reviews scored10%from 54 tests.

About plugin

  • Plugin page: weecomments
  • Plugin version: 3.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.2-4.6.1
  • WordPress version: 6.3.1
  • First release: Nov 7, 2016
  • Latest release: Dec 11, 2017
  • Number of updates: 29
  • Update frequency: every 13.8 days
  • Top authors: weecomments (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /1,835 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/weecomments/weecomments.php+187
    Function create_function() is deprecated

Server metrics [RAM: ▼1.83MB] [CPU: ▼49.28ms] Passed 4 tests

This is a short check of server-side resources used by weeComments - Shop & Products Reviews
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.16 ▼1.304.58 ▼35.53
Dashboard /wp-admin2.18 ▼1.139.54 ▼39.24
Posts /wp-admin/edit.php2.18 ▼1.185.83 ▼42.27
Add New Post /wp-admin/post-new.php2.18 ▼3.715.71 ▼80.07
Media Library /wp-admin/upload.php2.18 ▼1.056.54 ▼24.74

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 49 new files
Database: 4 new tables, 7 new options
New tables
wee_categories
wee_comments
wee_comments_replies
wee_products
New WordPress options
widget_recent-posts
widget_weecomments_box
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by weeComments - Shop & Products Reviews
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,853 ▲11814.42 ▲0.053.14 ▲1.3636.76 ▼4.79
Dashboard /wp-admin2,211 ▲265.79 ▼0.15104.94 ▲3.5670.61 ▲27.73
Posts /wp-admin/edit.php2,109 ▲172.01 ▲0.0536.20 ▼3.9234.80 ▼0.63
Add New Post /wp-admin/post-new.php1,550 ▲3118.30 ▼5.16712.81 ▲61.0476.12 ▲20.99
Media Library /wp-admin/upload.php1,399 ▲114.22 ▼0.0194.99 ▼6.2076.94 ▲31.41

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% 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
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/weecomments/weecomments.php+187
    Function create_function() is deprecated
  • Zombie tables were found after uninstall: 4 tables
    • wee_comments_replies
    • wee_comments
    • wee_categories
    • wee_products
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_weecomments_box
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: opiniones, reviews, comentarios, ratings, rich snippets...

weecomments/weecomments.php Passed 13 tests

The entry point to "weeComments - Shop & Products Reviews" version 3.1.4 is a PHP file that has certain tags in its header comment area
55 characters long description:
Plugin de weeComments para WooCommerce v2.2 o posterior

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin2,266 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP11304731,127
HTML9234361,067
CSS222172

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity10.25
▷ Minimum class complexity1.00
▷ Maximum class complexity33.00
Average method complexity1.88
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods42
▷ Static methods00.00%
▷ Public methods4095.24%
▷ Protected methods00.00%
▷ Private methods24.76%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
25 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/notebook-white-23.png1.92KB1.13KB▼ 41.03%
img/star-wee-4.png0.51KB0.33KB▼ 33.98%
img/star-wee-3.png0.59KB0.43KB▼ 26.20%
img/ministar-wee-0.png0.29KB0.23KB▼ 19.26%
img/midstar-wee-2.png0.43KB0.36KB▼ 17.83%