90% simple-display-for-woocommerce-reviews

Code Review | Simple Display For Woocommerce Reviews

WordPress plugin Simple Display For Woocommerce Reviews scored90%from 54 tests.

About plugin

  • Plugin page: simple-display-fo...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.9
  • WordPress version: 6.3.1
  • First release: Nov 21, 2018
  • Latest release: Nov 23, 2018
  • Number of updates: 40
  • Update frequency: every 0.1 days
  • Top authors: mostafadeveloper (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /528 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.11MB] [CPU: ▼5.67ms] Passed 4 tests

An overview of server-side resources used by Simple Display For Woocommerce Reviews
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1237.50 ▼1.40
Dashboard /wp-admin3.41 ▲0.1147.07 ▼0.98
Posts /wp-admin/edit.php3.46 ▲0.1142.57 ▼5.40
Add New Post /wp-admin/post-new.php5.99 ▲0.1182.90 ▼14.90
Media Library /wp-admin/upload.php3.33 ▲0.1135.47 ▲0.06

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_sdfwr_simpledisplay

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Display For Woocommerce Reviews
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.31 ▼1.504.29 ▲2.5937.30 ▼13.29
Dashboard /wp-admin2,206 ▲184.89 ▼0.02101.81 ▼10.7539.00 ▼11.43
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0133.56 ▼2.5133.41 ▼2.33
Add New Post /wp-admin/post-new.php1,514 ▼1917.69 ▼5.40655.62 ▼0.4651.38 ▼2.35
Media Library /wp-admin/upload.php1,388 ▼04.18 ▼0.0499.20 ▼13.1741.35 ▼7.32

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
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_sdfwr_simpledisplay

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: widget, categories, authors, tags, review...

simple-display-for-woocommerce-reviews/simple-display-for-woocommerce-reviews.php 92% from 13 tests

The principal PHP file in "Simple Display For Woocommerce Reviews" v. 1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Requires at least: The required version number did not match the one declared in readme.txt ("3.6.1" instead of "3.0.0")

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
There were no executable files found in this plugin710 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP32252360
CSS1390286
JavaScript13039
PO File13424
HTML1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity37.50
▷ Minimum class complexity22.00
▷ Maximum class complexity53.00
Average method complexity10.12
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected