Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.88MB] [CPU: ▲6.08ms] Passed 4 tests
This is a short check of server-side resources used by WP Random Post Thumbnails
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.89 ▲0.43 | 44.80 ▲5.97 |
Dashboard /wp-admin | 4.38 ▲1.08 | 52.63 ▲0.27 |
Posts /wp-admin/edit.php | 4.40 ▲1.04 | 52.41 ▲4.35 |
Add New Post /wp-admin/post-new.php | 6.91 ▲1.02 | 101.74 ▲13.71 |
Media Library /wp-admin/upload.php | 4.24 ▲1.01 | 48.64 ▲13.77 |
Random Thumbnails /wp-admin/options-general.php?page=wprpt_options | 5.05 | 57.58 |
Server storage [IO: ▲2.85MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 369 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WP Random Post Thumbnails
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲71 | 14.48 ▼0.16 | 1.52 ▼0.20 | 39.19 ▼1.06 |
Dashboard /wp-admin | 2,220 ▲46 | 5.90 ▲1.01 | 98.25 ▼19.49 | 39.56 ▼7.89 |
Posts /wp-admin/edit.php | 2,106 ▲20 | 2.07 ▲0.06 | 37.20 ▲0.19 | 33.50 ▼0.61 |
Add New Post /wp-admin/post-new.php | 1,526 ▼8 | 23.19 ▼0.12 | 589.56 ▼38.90 | 54.88 ▲1.48 |
Media Library /wp-admin/upload.php | 1,405 ▲17 | 4.27 ▲0.07 | 97.91 ▼4.07 | 42.57 ▼1.82 |
Random Thumbnails /wp-admin/options-general.php?page=wprpt_options | 2,526 | 4.24 | 103.87 | 28.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% 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)
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
Please fix the following items
- 40× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/wp-random-post-thumbnails/includes/cmb2/includes/types/CMB2_Type_Multi_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/wp-random-post-thumbnails/includes/cmb2/includes/types/CMB2_Type_Title.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/wp-random-post-thumbnails/includes/cmb2/includes/types/CMB2_Type_Taxonomy_Select.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/wp-random-post-thumbnails/includes/cmb2/includes/types/CMB2_Type_Taxonomy_Radio.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-random-post-thumbnails/includes/cmb2/includes/helper-functions.php:127
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/wp-random-post-thumbnails/includes/cmb2/includes/types/CMB2_Type_File_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/wp-random-post-thumbnails/includes/cmb2/includes/rest-api/CMB2_REST.php:19
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/wp-random-post-thumbnails/includes/cmb2/includes/types/CMB2_Type_File_List.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/wp-random-post-thumbnails/includes/cmb2/includes/types/CMB2_Type_Taxonomy_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Multicheck' not found in wp-content/plugins/wp-random-post-thumbnails/includes/cmb2/includes/types/CMB2_Type_Taxonomy_Multicheck_Hierarchical.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
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
6 plugin tags: post thumbnails, random thumbnails, random post thumbnail, random images, random post thumbnails...
wp-random-post-thumbnails/wp-random-thumbnails.php 85% from 13 tests
The primary PHP file in "WP Random Post Thumbnails" version 2.5.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-random-post-thumbnails.php" instead of "wp-random-thumbnails.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 183 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
Success! There were no dangerous files found in this plugin48,138 lines of code in 223 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 14,315 | 18,502 | 32,323 |
PHP | 62 | 2,376 | 6,688 | 7,667 |
CSS | 13 | 1,166 | 1,148 | 4,654 |
Sass | 16 | 300 | 25 | 1,378 |
JavaScript | 7 | 338 | 455 | 1,373 |
Markdown | 4 | 287 | 0 | 726 |
JSON | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 19.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 181.00 |
Average method complexity | 3.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 69 | |
▷ Abstract classes | 8 | 11.59% |
▷ Concrete classes | 61 | 88.41% |
▷ Final classes | 0 | 0.00% |
Methods | 565 | |
▷ Static methods | 87 | 15.40% |
▷ Public methods | 460 | 81.42% |
▷ Protected methods | 89 | 15.75% |
▷ Private methods | 16 | 2.83% |
Functions | 60 | |
▷ Named functions | 50 | 83.33% |
▷ Anonymous functions | 10 | 16.67% |
Constants | 11 | |
▷ Global constants | 5 | 45.45% |
▷ Class constants | 6 | 54.55% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
includes/cmb2/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
includes/cmb2/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
includes/cmb2/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
includes/cmb2/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |