Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲5.33MB] [CPU: ▲38.64ms] 75% from 4 tests
A check of server-side resources used by SEO Content Randomizer
It is recommended to improve the following
- Extra RAM: Extra memory usage must be kept under 5MB (currently 5.33MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.89 ▲5.42 | 85.77 ▲46.87 |
Dashboard /wp-admin | 8.91 ▲5.60 | 93.42 ▲43.62 |
Posts /wp-admin/edit.php | 8.91 ▲5.55 | 77.11 ▲25.10 |
Add New Post /wp-admin/post-new.php | 10.64 ▲4.75 | 153.37 ▲51.62 |
Media Library /wp-admin/upload.php | 8.91 ▲5.67 | 75.67 ▲38.97 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 8.91 | 67.15 |
Server storage [IO: ▲6.87MB] [DB: ▲0.32MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 643 new files
Database: no new tables, 11 new options
New WordPress options |
---|
fs_active_plugins |
issscr_version |
db_upgraded |
widget_theysaidso_widget |
fs_debug_mode |
widget_recent-posts |
issscr_original_installation_version |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
SEO Content Randomizer: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,863 ▲128 | 13.46 ▼0.92 | 1.78 ▼0.24 | 34.35 ▼12.01 |
Dashboard /wp-admin | 2,269 ▲120 | 5.06 ▼0.65 | 118.13 ▲13.64 | 45.33 ▲3.94 |
Posts /wp-admin/edit.php | 2,152 ▲63 | 2.31 ▲0.29 | 39.90 ▼0.21 | 36.89 ▲2.32 |
Add New Post /wp-admin/post-new.php | 1,569 ▲55 | 23.09 ▲5.48 | 634.95 ▼57.98 | 28.49 ▼22.46 |
Media Library /wp-admin/upload.php | 1,451 ▲60 | 4.40 ▲0.16 | 98.86 ▼10.50 | 46.67 ▼0.14 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,126 | 1.91 | 27.29 | 26.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.32MB] 50% 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
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/seo-content-randomizer/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 11 options in the database
- issscr_version
- widget_recent-posts
- fs_accounts
- fs_active_plugins
- widget_theysaidso_widget
- issscr_original_installation_version
- fs_debug_mode
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/seo-content-randomizer/public/partials/issscr-public-display.php
- > /wp-content/plugins/seo-content-randomizer/admin/partials/plugin-issscr-display.php
- 45× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Radio' not found in wp-content/plugins/seo-content-randomizer/admin/plugins/cmb2/includes/types/CMB2_Type_Taxonomy_Radio_Hierarchical.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/seo-content-randomizer/admin/plugins/cmb2/includes/types/CMB2_Type_File_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/seo-content-randomizer/admin/plugins/cmb2/includes/types/CMB2_Type_File_List.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/seo-content-randomizer/admin/plugins/cmb2/includes/CMB2_Field.php:17
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/seo-content-randomizer/admin/plugins/cmb2/includes/types/CMB2_Type_Oembed.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function Cmb2Grid\\trailingslashit() in wp-content/plugins/seo-content-randomizer/admin/plugins/cmb2-grid-master/Cmb2GridPluginLoad.php:6
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/seo-content-randomizer/admin/plugins/cmb2/includes/types/CMB2_Type_Multi_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/seo-content-randomizer/admin/plugins/cmb2/includes/rest-api/CMB2_REST.php:19
- > PHP Fatal error
Uncaught Error: Class 'Cmb2Grid\\Grid\\Cmb2Grid' not found in wp-content/plugins/seo-content-randomizer/admin/plugins/cmb2-grid-master/Grid/Group/Cmb2GroupGrid.php:18
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/seo-content-randomizer/admin/plugins/cmb2/includes/types/CMB2_Type_Select.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: randomization, randomizing, dynamic content, random, content...
seo-content-randomizer/seo-content-randomizer.php 85% from 13 tests
The entry point to "SEO Content Randomizer" version 3.28.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 148 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected96,812 lines of code in 430 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 217 | 10,927 | 24,712 | 43,399 |
PO File | 120 | 14,315 | 18,502 | 32,323 |
CSS | 38 | 343 | 1,299 | 7,413 |
JavaScript | 19 | 1,607 | 1,338 | 6,628 |
JSON | 3 | 0 | 0 | 4,271 |
Sass | 17 | 305 | 29 | 1,407 |
Markdown | 5 | 322 | 0 | 984 |
LESS | 8 | 179 | 70 | 298 |
SVG | 2 | 0 | 0 | 70 |
XML | 1 | 5 | 4 | 19 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
It is recommended to fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 39.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 3.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 153 | |
▷ Abstract classes | 12 | 7.84% |
▷ Concrete classes | 141 | 92.16% |
▷ Final classes | 0 | 0.00% |
Methods | 2,029 | |
▷ Static methods | 333 | 16.41% |
▷ Public methods | 1,523 | 75.06% |
▷ Protected methods | 119 | 5.86% |
▷ Private methods | 387 | 19.07% |
Functions | 139 | |
▷ Named functions | 139 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 160 | |
▷ Global constants | 106 | 66.25% |
▷ Class constants | 54 | 33.75% |
▷ Public constants | 54 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
20 PNG files occupy 0.06MB with 0.01MB 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% |
admin/plugins/cmb2/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
admin/plugins/cmb2/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
admin/plugins/cmb2/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
admin/plugins/lightgallery/dist/img/vimeo-play.png | 5.30KB | 1.56KB | ▼ 70.65% |