90% wc-external-variations

Code Review | WC External Variations

WordPress plugin WC External Variations scored 90% from 54 tests.

About plugin

  • Plugin page: wc-external-varia...
  • Plugin version: 1.0.16
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Jun 4, 2018
  • Latest release: Mar 27, 2023
  • Number of updates: 31
  • Update frequency: every 56.7 days
  • Top authors: impossibledreams (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

600+ active / 5,467 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.12ms] Passed 4 tests

Server-side resources used by WC External Variations
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.97 ▼3.86
Dashboard /wp-admin3.31 ▲0.0145.14 ▼3.01
Posts /wp-admin/edit.php3.36 ▲0.0042.27 ▼4.70
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.46 ▲7.50
Media Library /wp-admin/upload.php3.23 ▲0.0031.15 ▼0.90

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for WC External Variations
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.20 ▼1.361.65 ▼0.3943.41 ▼2.54
Dashboard /wp-admin2,206 ▲145.86 ▲0.9597.93 ▼13.0437.68 ▼3.57
Posts /wp-admin/edit.php2,089 ▼32.01 ▼0.0236.04 ▲0.2932.81 ▲2.74
Add New Post /wp-admin/post-new.php1,522 ▲823.02 ▲5.44559.37 ▼112.4852.11 ▼0.65
Media Library /wp-admin/upload.php1,388 ▼04.31 ▲0.1293.10 ▼5.3839.88 ▼6.55

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

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
4 plugin tags: external, variations, woocommerce, variable

wc-external-variations/wc-external-variations.php 92% from 13 tests

This is the main PHP file of "WC External Variations" version 1.0.16, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.7" instead of "4.0.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin305 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP147110243
JavaScript1112762

PHP code Passed 2 tests

Analyzing 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.39
Average class complexity28.00
▷ Minimum class complexity28.00
▷ Maximum class complexity28.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.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
No PNG images were found in this plugin