84% woocommerce-paginate-variations

Code Review | Woocommerce paginate variations

WordPress plugin Woocommerce paginate variations scored84%from 54 tests.

About plugin

  • Plugin page: woocommerce-pagin...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-3.9.2
  • WordPress version: 6.3.1
  • First release: Sep 25, 2014
  • Latest release: Nov 5, 2014
  • Number of updates: 9
  • Update frequency: every 4.7 days
  • Top authors: iDanielBH (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,434 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

A check of server-side resources used by Woocommerce paginate variations
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.43 ▲3.21
Dashboard /wp-admin3.33 ▼0.0244.54 ▼12.89
Posts /wp-admin/edit.php3.38 ▲0.0250.07 ▲6.65
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.25 ▼15.17
Media Library /wp-admin/upload.php3.25 ▲0.0233.72 ▼1.82

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Woocommerce paginate variations: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5414.43 ▲0.062.02 ▲0.1242.45 ▲0.28
Dashboard /wp-admin2,203 ▲185.79 ▼0.1198.64 ▼7.0037.74 ▼6.10
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0040.01 ▲5.3436.80 ▲5.89
Add New Post /wp-admin/post-new.php1,542 ▲2023.27 ▲0.10654.74 ▲18.7151.58 ▼3.43
Media Library /wp-admin/upload.php1,388 ▼04.28 ▲0.0996.73 ▼3.0342.47 ▼0.80

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocommerce-paginate-variations/woocommerce-paginate-variations.php:160

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: woocommerce, paginate variations wocommerce, paginate variations, variations

woocommerce-paginate-variations/woocommerce-paginate-variations.php 92% from 13 tests

The main file in "Woocommerce paginate variations" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 186 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin152 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14623112
PO File16640

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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