Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.86ms] Passed 4 tests
An overview of server-side resources used by SB Random Posts Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.41 ▼1.30 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.36 ▼4.76 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.78 ▲1.78 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 83.15 ▼15.15 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.54 ▲2.11 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_simple_random_posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for SB Random Posts Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲67 | 14.42 ▼0.38 | 1.84 ▲0.05 | 43.53 ▼5.04 |
Dashboard /wp-admin | 2,209 ▲27 | 4.83 ▼0.05 | 99.79 ▲0.71 | 40.71 ▼2.92 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.04 ▲0.04 | 34.47 ▼1.94 | 31.51 ▼2.98 |
Add New Post /wp-admin/post-new.php | 1,533 ▼11 | 23.09 ▲4.83 | 644.18 ▲37.01 | 56.68 ▼1.54 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.30 ▲0.08 | 92.79 ▼6.78 | 42.99 ▼3.81 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_simple_random_posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/sb-random-posts-widget/classes.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function sbrpw_get_post_thumbnail() in wp-content/plugins/sb-random-posts-widget/parts/shortcode-content-image_fullwidth_text.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function sbrpw_get_post_thumbnail() in wp-content/plugins/sb-random-posts-widget/parts/shortcode-content-image_text.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/sb-random-posts-widget/parts/widget-admin.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/sb-random-posts-widget/classes.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function sbrpw_get_post_thumbnail() in wp-content/plugins/sb-random-posts-widget/parts/shortcode-content-image_only.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function the_permalink() in wp-content/plugins/sb-random-posts-widget/parts/shortcode-content-text_only.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Donate link: Invalid URI ("")
sb-random-posts-widget/sb-random-posts-widget.php Passed 13 tests
Analyzing the main PHP file in "SB Random Posts Widget" version 1.0
48 characters long description:
Simple way display random posts in your blogroll
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin249 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 51 | 23 | 195 |
CSS | 1 | 11 | 2 | 54 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 1 | 14.29% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
There were not PNG files found in your plugin