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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 34.42 ▼3.23 |
Dashboard /wp-admin | 3.35 ▲0.05 | 43.79 ▼4.50 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 45.48 ▼0.27 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 84.13 ▼8.84 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 34.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.72 ▲0.35 | 2.04 ▲0.38 | 42.34 ▲2.74 |
Dashboard /wp-admin | 2,195 ▲18 | 5.64 ▲0.04 | 82.52 ▼7.99 | 37.92 ▼0.86 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▼0.01 | 33.68 ▼3.16 | 32.37 ▼6.77 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.53 ▲0.57 | 604.99 ▼2.33 | 51.10 ▼6.96 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.21 ▼0.01 | 96.52 ▼2.64 | 41.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 132 | 8,117 | 17,822 | 33,683 |
PO File | 12 | 6,960 | 8,455 | 15,240 |
JavaScript | 6 | 58 | 153 | 307 |
Markdown | 1 | 68 | 0 | 214 |
XML | 5 | 0 | 0 | 94 |
JSON | 1 | 0 | 0 | 27 |
CSS | 17 | 0 | 8 | 15 |
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 code | 0.63 |
Average class complexity | 81.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 55 | |
▷ Abstract classes | 2 | 3.64% |
▷ Concrete classes | 53 | 96.36% |
▷ Final classes | 0 | 0.00% |
Methods | 1,283 | |
▷ Static methods | 199 | 15.51% |
▷ Public methods | 889 | 69.29% |
▷ Protected methods | 17 | 1.33% |
▷ Private methods | 377 | 29.38% |
Functions | 105 | |
▷ Named functions | 105 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 147 | |
▷ Global constants | 100 | 68.03% |
▷ Class constants | 47 | 31.97% |
▷ Public constants | 47 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
resources/wp-plugin-repo/banner/3_dist/banner-772x250.png | 68.96KB | 45.96KB | ▼ 33.35% |
resources/wp-plugin-repo/icon/1_resources/if_random_1608804.png | 2.38KB | 2.27KB | ▼ 4.51% |
resources/wp-plugin-repo/banner/1_resources/logo.png | 9.69KB | 5.23KB | ▼ 46.07% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |