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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.53MB] [CPU: ▼4.46ms] Passed 4 tests
An overview of server-side resources used by WP Roster
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.01 ▲0.55 | 46.00 ▲6.16 |
Dashboard /wp-admin | 3.84 ▲0.50 | 55.40 ▼9.87 |
Posts /wp-admin/edit.php | 3.96 ▲0.60 | 48.47 ▼5.71 |
Add New Post /wp-admin/post-new.php | 6.42 ▲0.54 | 105.40 ▼8.43 |
Media Library /wp-admin/upload.php | 3.76 ▲0.54 | 44.65 ▲6.79 |
Server storage [IO: ▲1.85MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 51 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Roster
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,017 ▲246 | 17.03 ▲2.72 | 40.57 ▲38.61 | 62.05 ▲19.68 |
Dashboard /wp-admin | 2,261 ▲70 | 5.88 ▲1.02 | 110.93 ▲8.82 | 42.44 ▼3.29 |
Posts /wp-admin/edit.php | 2,148 ▲59 | 2.01 ▼0.03 | 34.63 ▼7.31 | 32.07 ▼3.19 |
Add New Post /wp-admin/post-new.php | 1,532 ▲12 | 23.34 ▲0.15 | 640.79 ▼10.08 | 46.18 ▼2.74 |
Media Library /wp-admin/upload.php | 1,444 ▲56 | 4.12 ▼0.09 | 112.32 ▲4.50 | 49.64 ▲6.85 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-roster/inc/shortcode/roster-shortcode.php:147
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/wp-roster/inc/templates/roster-template.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-roster/inc/functions/helper-functions.php:292
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-roster/inc/functions/user-profile.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-roster/wp-roster.php:67
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Contributors: The plugin contributors field is missing
wp-roster/wp-roster.php Passed 13 tests
This is the main PHP file of "WP Roster" version 2.30, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
36 characters long description:
A robust roster system for WordPress
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
Everything looks great! No dangerous files found in this plugin16,616 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 542 | 105 | 10,547 |
JavaScript | 20 | 1,492 | 1,256 | 2,963 |
PHP | 13 | 1,873 | 842 | 2,857 |
SVG | 2 | 0 | 1 | 249 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 1 | 20.00% |
▷ Public methods | 4 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 20.00% |
Functions | 66 | |
▷ Named functions | 65 | 98.48% |
▷ Anonymous functions | 1 | 1.52% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/images/default-image.png | 7.41KB | 3.90KB | ▼ 47.34% |
inc/images/default-idea-image.png | 4.36KB | 2.34KB | ▼ 46.34% |