Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼6.57ms] Passed 4 tests
Server-side resources used by Random Content
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 37.00 ▼4.41 |
Dashboard /wp-admin | 3.39 ▲0.08 | 47.70 ▼0.00 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 48.79 ▼3.75 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 89.17 ▼17.36 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 34.15 ▼0.75 |
Groups /wp-admin/edit-tags.php?taxonomy=endo_wrc_group&post_type=endo_wrc_cpt | 3.31 | 33.85 |
Add New /wp-admin/post-new.php?post_type=endo_wrc_cpt | 6.05 | 84.88 |
Random Content /wp-admin/edit.php?post_type=endo_wrc_cpt | 3.35 | 36.59 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_endo_wrc_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Random Content
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲99 | 14.74 ▲0.38 | 1.68 ▲0.06 | 37.56 ▼12.64 |
Dashboard /wp-admin | 2,237 ▲52 | 4.85 ▼0.25 | 113.88 ▲1.08 | 41.47 ▼3.57 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 2.05 ▲0.01 | 36.63 ▼4.51 | 34.83 ▼3.95 |
Add New Post /wp-admin/post-new.php | 1,540 ▲4 | 17.45 ▼5.93 | 687.94 ▲21.25 | 59.95 ▲1.08 |
Media Library /wp-admin/upload.php | 1,422 ▲31 | 4.23 ▲0.03 | 96.64 ▼8.80 | 42.23 ▼0.27 |
Groups /wp-admin/edit-tags.php?taxonomy=endo_wrc_group&post_type=endo_wrc_cpt | 1,298 | 2.14 | 28.28 | 27.79 |
Add New /wp-admin/post-new.php?post_type=endo_wrc_cpt | 6,427 | 22.90 | 848.41 | 28.96 |
Random Content /wp-admin/edit.php?post_type=endo_wrc_cpt | 1,092 | 1.95 | 31.34 | 32.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- can_compress_scripts
- widget_endo_wrc_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/random-content/class-random-content-widget.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: A description for screenshot #2 is required in random-content/assets to your readme.txt
random-content/random-content.php Passed 13 tests
The primary PHP file in "Random Content" version 1.4.1 is used by WordPress to initiate all plugin functionality
50 characters long description:
Randomly display any content anywhere on your site
Code Analysis Passed 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
Good job! No executable or dangerous file extensions detected278 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 91 | 93 | 278 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 8.50 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 2.07 |
▷ 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 | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 12.36KB | 4.77KB | ▼ 61.40% |