Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/content-randomizer/includes/widgets.php+234
Function create_function() is deprecated
Server metrics [RAM: ▼1.83MB] [CPU: ▼54.57ms] Passed 4 tests
This is a short check of server-side resources used by Content Randomizer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.16 ▼1.30 | 5.09 ▼34.49 |
Dashboard /wp-admin | 2.18 ▼1.12 | 6.37 ▼45.24 |
Posts /wp-admin/edit.php | 2.18 ▼1.17 | 5.82 ▼44.87 |
Add New Post /wp-admin/post-new.php | 2.18 ▼3.70 | 7.00 ▼93.69 |
Media Library /wp-admin/upload.php | 2.18 ▼1.05 | 6.33 ▼27.49 |
Categories /wp-admin/edit-tags.php?taxonomy=randomizer_category&post_type=elm_texts | 2.18 | 8.18 |
All Items /wp-admin/edit.php?post_type=elm_texts | 2.18 | 7.20 |
Add New /wp-admin/post-new.php?post_type=elm_texts | 2.18 | 6.64 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 11 new options
New WordPress options |
---|
db_upgraded |
elm_randomizer_version |
widget_randomizer_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_randomizerslideshow_widget |
elm_randomizer_permalinks |
elm_randomizer |
widget_recent-posts |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Content Randomizer
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,945 ▲199 | 14.00 ▼0.28 | 8.93 ▲7.05 | 44.19 ▼0.32 |
Dashboard /wp-admin | 2,237 ▲49 | 5.90 ▲0.04 | 110.11 ▼2.27 | 42.70 ▼0.80 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.02 ▲0.00 | 37.43 ▼0.56 | 35.31 ▲0.55 |
Add New Post /wp-admin/post-new.php | 1,569 ▲177 | 18.22 ▼0.19 | 662.72 ▲26.57 | 59.44 ▲11.78 |
Media Library /wp-admin/upload.php | 1,416 ▲31 | 4.14 ▼0.00 | 109.24 ▼31.33 | 46.82 ▼6.90 |
Categories /wp-admin/edit-tags.php?taxonomy=randomizer_category&post_type=elm_texts | 1,290 | 2.14 | 26.94 | 28.06 |
All Items /wp-admin/edit.php?post_type=elm_texts | 1,101 | 1.94 | 30.81 | 29.93 |
Add New /wp-admin/post-new.php?post_type=elm_texts | 2,353 | 8.05 | 183.22 | 71.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/content-randomizer/includes/widgets.php+234
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 11 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- widget_randomizer_widget
- elm_randomizer_version
- elm_randomizer
- theysaidso_admin_options
- widget_randomizerslideshow_widget
- db_upgraded
- elm_randomizer_permalinks
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 8 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=elm_texts
- > Deprecated in wp-content/plugins/content-randomizer/includes/widgets.php+237
Function create_function() is deprecated
- > GET request to /wp-admin/post-new.php?post_type=elm_texts
- > Notice in wp-content/plugins/content-randomizer/randomizer.php+117
Undefined index: date_from
- > GET request to /wp-admin/post-new.php?post_type=elm_texts
- > Notice in wp-content/plugins/content-randomizer/randomizer.php+118
Undefined index: date_to
SRP 50% 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
Please fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/content-randomizer/includes/widgets.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/content-randomizer/includes/shortcodes.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/content-randomizer/plugin.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Tags: You are using too many tags: 12 tag instead of maximum 10
- Plugin Name: You should set the name of your plugin on the first line (
=== content-randomizer ===
)
content-randomizer/plugin.php 92% from 13 tests
The primary PHP file in "Content Randomizer" version 1.2.3 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("content-randomizer.php" instead of "plugin.php")
Code Analysis Passed 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 detected2,600 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 450 | 857 | 1,764 |
PHP | 5 | 129 | 180 | 490 |
CSS | 2 | 9 | 18 | 242 |
PO File | 1 | 44 | 3 | 99 |
XML | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 29 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.28MB with 0.17MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 87.81KB | 32.51KB | ▼ 62.98% |
assets/banner-1544x500.png | 195.54KB | 75.71KB | ▼ 61.28% |