90% auto-rotator-for-woocommerce-reviews

Code Review | Auto Rotator For Woocommerce Reviews

WordPress plugin Auto Rotator For Woocommerce Reviews scored 90% from 54 tests.

About plugin

  • Plugin page: auto-rotator-for-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.9
  • WordPress version: 6.3.1
  • First release: Nov 30, 2018
  • Latest release: Oct 28, 2019
  • Number of updates: 41
  • Update frequency: every 8.2 days
  • Top authors: mostafadeveloper (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 694 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.09MB] [CPU: ▼1.66ms] Passed 4 tests

Analyzing server-side resources used by Auto Rotator For Woocommerce Reviews
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0937.22 ▼1.05
Dashboard /wp-admin3.39 ▲0.0945.70 ▼4.15
Posts /wp-admin/edit.php3.44 ▲0.0947.30 ▲0.75
Add New Post /wp-admin/post-new.php5.97 ▲0.0994.77 ▼2.20
Media Library /wp-admin/upload.php3.31 ▲0.0938.45 ▲2.57

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_arfwr_autorotator

Browser metrics Passed 4 tests

A check of browser resources used by Auto Rotator For Woocommerce Reviews
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.72 ▼0.921.58 ▼0.1238.84 ▲2.01
Dashboard /wp-admin2,209 ▲215.89 ▲1.0196.70 ▼3.9239.96 ▼4.10
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0340.33 ▼0.1835.86 ▼2.10
Add New Post /wp-admin/post-new.php1,528 ▲1418.37 ▲0.69625.19 ▼42.3756.19 ▲6.80
Media Library /wp-admin/upload.php1,385 ▼34.18 ▼0.0395.72 ▼1.1939.47 ▼4.98

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • widget_arfwr_autorotator
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Congratulations! This plugin passed the SRP test

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)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: authors, woocommerce, widget, tags, categories...

auto-rotator-for-woocommerce-reviews/auto-rotator-for-woocommerce-reviews.php 92% from 13 tests

The main PHP file in "Auto Rotator For Woocommerce Reviews" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Requires at least: The required version number must 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 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected621 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP32152323
CSS1270220
JavaScript110159
PO File11118
HTML1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity23.50
▷ Minimum class complexity22.00
▷ Maximum class complexity25.00
Average method complexity7.43
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods7
▷ Static methods114.29%
▷ Public methods7100.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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin