78% woo-seo-content-randomizer-addon

Code Review | WooCommerce SEO Content Randomizer Addon

WordPress plugin WooCommerce SEO Content Randomizer Addon scored78%from 54 tests.

About plugin

  • Plugin page: woo-seo-content-r...
  • Plugin version: 1.2.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.8-6.3.0
  • WordPress version: 6.3.1
  • First release: Nov 1, 2018
  • Latest release: Jul 5, 2023
  • Number of updates: 12
  • Update frequency: every 142.3 days
  • Top authors: intellasoftsolutions (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /680 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.21ms] Passed 4 tests

Analyzing server-side resources used by WooCommerce SEO Content Randomizer Addon
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0634.42 ▼3.23
Dashboard /wp-admin3.35 ▲0.0543.79 ▼4.50
Posts /wp-admin/edit.php3.47 ▲0.1145.48 ▼0.27
Add New Post /wp-admin/post-new.php5.94 ▲0.0584.13 ▼8.84
Media Library /wp-admin/upload.php3.28 ▲0.0534.17 ▲0.30

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce SEO Content Randomizer Addon
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.72 ▲0.352.04 ▲0.3842.34 ▲2.74
Dashboard /wp-admin2,195 ▲185.64 ▲0.0482.52 ▼7.9937.92 ▼0.86
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0133.68 ▼3.1632.37 ▼6.77
Add New Post /wp-admin/post-new.php1,526 ▼023.53 ▲0.57604.99 ▼2.3351.10 ▼6.96
Media Library /wp-admin/upload.php1,400 ▼04.21 ▼0.0196.52 ▼2.6441.02 ▼0.01

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/woo-seo-content-randomizer-addon/public/partials/isswscr-public-display.php
    • > /wp-content/plugins/woo-seo-content-randomizer-addon/admin/partials/isswscr-admin-display.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woo-seo-content-randomizer-addon/freemius-addon.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: seo, woocommerce, randomization, random, randomizing

woo-seo-content-randomizer-addon/woocommerce-seo-content-randomizer-addon.php 85% from 13 tests

The entry point to "WooCommerce SEO Content Randomizer Addon" version 1.2.5 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("woo-seo-content-randomizer-addon.php" instead of "woocommerce-seo-content-randomizer-addon.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected49,580 lines of code in 174 files:
LanguageFilesBlank linesComment linesLines of code
PHP1328,11717,82233,683
PO File126,9608,45515,240
JavaScript658153307
Markdown1680214
XML50094
JSON10027
CSS170815

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
These items need your attention
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity81.42
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.53
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes55
▷ Abstract classes23.64%
▷ Concrete classes5396.36%
▷ Final classes00.00%
Methods1,283
▷ Static methods19915.51%
▷ Public methods88969.29%
▷ Protected methods171.33%
▷ Private methods37729.38%
Functions105
▷ Named functions105100.00%
▷ Anonymous functions00.00%
Constants147
▷ Global constants10068.03%
▷ Class constants4731.97%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.10MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
resources/wp-plugin-repo/banner/3_dist/banner-772x250.png68.96KB45.96KB▼ 33.35%
resources/wp-plugin-repo/icon/1_resources/if_random_1608804.png2.38KB2.27KB▼ 4.51%
resources/wp-plugin-repo/banner/1_resources/logo.png9.69KB5.23KB▼ 46.07%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%