Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼10.31ms] Passed 4 tests
A check of server-side resources used by Sudo Oauth
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 41.13 ▼1.42 |
Dashboard /wp-admin | 3.40 ▲0.05 | 43.53 ▼10.76 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 48.36 ▲4.79 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 82.64 ▼30.77 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 35.53 ▲1.73 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 13 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_sudo_users |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
sudooauth_option_activeplugin |
sudooauth_option_uploadfiles |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Sudo Oauth: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲73 | 13.57 ▼0.80 | 1.72 ▼0.57 | 36.82 ▼5.50 |
Dashboard /wp-admin | 2,225 ▲37 | 5.84 ▼0.07 | 96.13 ▼4.41 | 63.86 ▲23.65 |
Posts /wp-admin/edit.php | 2,111 ▲19 | 2.04 ▲0.01 | 37.63 ▼2.81 | 32.74 ▼3.92 |
Add New Post /wp-admin/post-new.php | 1,546 ▲12 | 18.40 ▼4.90 | 682.59 ▲74.54 | 72.64 ▲11.32 |
Media Library /wp-admin/upload.php | 1,401 ▲10 | 4.20 ▲0.03 | 97.66 ▼2.28 | 75.62 ▲33.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie tables were found after uninstall: 1 table
- wp_sudo_users
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_recent-posts
- sudooauth_option_uploadfiles
- can_compress_scripts
- widget_theysaidso_widget
- sudooauth_option_activeplugin
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sudo-oauth/includes/admin.php:2
- > PHP Fatal error
Uncaught Error: Class 'Walker' not found in wp-content/plugins/sudo-oauth/classes/sudo-walker.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/sudo-oauth/includes/data.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sudo-oauth/classes/sudo-rewrite.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_role() in wp-content/plugins/sudo-oauth/includes/role.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/sudo-oauth/sudo-oauth.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sudo-oauth/SudoOauth.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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:
- Screenshots: A description for screenshot #2 is required in sudo-oauth/assets to your readme.txt
sudo-oauth/sudo-oauth.php 92% from 13 tests
The entry point to "Sudo Oauth" version 2.0.5 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 165 characters long)
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 plugin686 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 40 | 41 | 605 |
CSS | 1 | 0 | 0 | 61 |
JavaScript | 1 | 1 | 1 | 20 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 1 | 7.69% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icon.png | 3.99KB | 1.83KB | ▼ 54.25% |