89% roundup-app-for-woocommerce

Code Review | RoundUp App for WooCommerce

WordPress plugin RoundUp App for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: roundup-app-for-w...
  • Plugin version: 1.0.8
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.8
  • WordPress version: 6.3.1
  • First release: Nov 19, 2020
  • Latest release: May 18, 2022
  • Number of updates: 14
  • Update frequency: every 39.5 days
  • Top authors: roundupapp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /699 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▲2.37ms] Passed 4 tests

This is a short check of server-side resources used by RoundUp App for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0938.41 ▼1.09
Dashboard /wp-admin3.39 ▲0.0953.78 ▲9.15
Posts /wp-admin/edit.php3.50 ▲0.1546.64 ▲0.03
Add New Post /wp-admin/post-new.php5.97 ▲0.0892.50 ▲9.45
Media Library /wp-admin/upload.php3.31 ▲0.0833.45 ▲1.37

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for RoundUp App for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.25 ▼1.131.63 ▼0.3238.83 ▼4.40
Dashboard /wp-admin2,209 ▲204.86 ▼1.05102.48 ▼21.9737.37 ▼8.17
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0236.36 ▼3.3539.51 ▲3.39
Add New Post /wp-admin/post-new.php1,534 ▲123.41 ▲0.00641.60 ▼26.9250.83 ▲5.88
Media Library /wp-admin/upload.php1,388 ▲34.29 ▲0.0995.32 ▼6.2640.96 ▼2.15

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

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

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3 in roundup-app-for-woocommerce/assets to your readme.txt
  • Contributors: The plugin contributors field is missing
Please take inspiration from this readme.txt

roundup-app-for-woocommerce/roundup-woocommerce.php 92% from 13 tests

This is the main PHP file of "RoundUp App for WooCommerce" version 1.0.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("roundup-app-for-woocommerce.php" instead of "roundup-woocommerce.php")

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
Everything looks great! No dangerous files found in this plugin2,353 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP6335902,247
XML600106

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity36.14
▷ Minimum class complexity22.00
▷ Maximum class complexity49.00
Average method complexity2.59
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes7100.00%
Methods162
▷ Static methods00.00%
▷ Public methods12375.93%
▷ Protected methods74.32%
▷ Private methods3219.75%
Functions14
▷ Named functions750.00%
▷ Anonymous functions750.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
There were not PNG files found in your plugin