Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼3.41ms] Passed 4 tests
Server-side resources used by Randomize
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 44.76 ▲4.98 |
Dashboard /wp-admin | 3.39 ▲0.09 | 47.28 ▼7.88 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 46.11 ▼2.52 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 95.68 ▼1.08 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 37.57 ▼2.15 |
Randomize /wp-admin/options-general.php?page=randomize | 3.26 | 33.84 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_randomize |
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_randomize |
Browser metrics Passed 4 tests
A check of browser resources used by Randomize
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.35 ▼0.17 | 1.75 ▲0.01 | 43.33 ▼2.05 |
Dashboard /wp-admin | 2,199 ▲22 | 5.67 ▲0.10 | 89.43 ▼3.39 | 39.52 ▼0.31 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▼0.00 | 35.89 ▼3.87 | 34.69 ▼3.95 |
Add New Post /wp-admin/post-new.php | 1,540 ▲12 | 18.50 ▼4.90 | 640.84 ▼43.62 | 68.76 ▲16.51 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.18 ▼0.01 | 98.19 ▼11.55 | 44.36 ▼4.23 |
Randomize /wp-admin/options-general.php?page=randomize | 887 | 2.03 | 26.04 | 25.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- can_compress_scripts
- widget_randomize
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=randomize
- > Notice in wp-content/plugins/randomize/randomize.php+155
Undefined variable: result
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 take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/randomize/randomize.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/randomize/randomize_admin.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 on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Tags: You are using too many tags: 11 tag instead of maximum 10
randomize/randomize.php Passed 13 tests
The main PHP script in "Randomize" version 1.4.3 is automatically included on every request by WordPress
104 characters long description:
Display randomized text in a widget or on posts/pages by shortcode. Originally scripted by Greg Jackson.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin380 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 75 | 37 | 380 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 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
There are no PNG files in this plugin