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.01MB] [CPU: ▲0.32ms] Passed 4 tests
Analyzing server-side resources used by Roller
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.02 ▼6.67 |
Dashboard /wp-admin | 3.31 ▲0.01 | 58.00 ▲5.12 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 52.78 ▲6.28 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 87.41 ▼3.45 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 39.92 ▲8.08 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Roller
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲44 | 14.19 ▲0.90 | 1.80 ▼3.14 | 43.85 ▼1.75 |
Dashboard /wp-admin | 2,211 ▲31 | 5.51 ▼0.16 | 89.65 ▼12.33 | 40.85 ▼2.51 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 2.05 ▲0.06 | 39.69 ▼2.27 | 38.87 ▲6.07 |
Add New Post /wp-admin/post-new.php | 1,554 ▲9 | 23.31 ▼0.05 | 651.83 ▲31.67 | 63.49 ▲13.95 |
Media Library /wp-admin/upload.php | 1,419 ▲19 | 4.31 ▲0.03 | 100.12 ▼4.08 | 47.47 ▲2.91 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
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)
Everything seems fine, however 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 take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/roller/roller.php:26
- > 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)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: dungeons and dragons, rpg, dice rolling, role playing, rolling...
roller/roller.php Passed 13 tests
This is the main PHP file of "Roller" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
51 characters long description:
Dice rolling and list selection for NPC generation.
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
Everything looks great! No dangerous files found in this plugin224 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 61 | 71 | 224 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 45.00 |
▷ Minimum class complexity | 45.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 3.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.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 | 18 | |
▷ Static methods | 1 | 5.56% |
▷ Public methods | 16 | 88.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 11.11% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin