Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.13MB] [CPU: ▼16.31ms] Passed 4 tests
This is a short check of server-side resources used by WGAPIAuth
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▼0.60 | 14.44 ▼24.63 |
Dashboard /wp-admin | 3.40 ▲0.10 | 49.37 ▼2.33 |
Posts /wp-admin/edit.php | 3.23 ▼0.13 | 28.64 ▼22.81 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 91.31 ▼15.45 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 36.85 ▲1.10 |
WG API Auth /wp-admin/plugins.php?page=WGAPIA_settings | 3.28 | 28.63 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
WGAPIAuth: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲35 | 14.73 ▲0.38 | 1.54 ▼0.09 | 48.11 ▲0.28 |
Dashboard /wp-admin | 2,193 ▲12 | 5.56 ▼0.11 | 98.82 ▼1.71 | 44.03 ▼3.55 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.03 ▲0.01 | 48.53 ▲13.13 | 39.68 ▲7.42 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.17 ▲0.31 | 587.36 ▼7.06 | 50.21 ▼9.63 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.19 ▼0.09 | 99.26 ▼0.73 | 42.92 ▼4.42 |
WG API Auth /wp-admin/plugins.php?page=WGAPIA_settings | 1,092 | 2.02 | 22.67 | 47.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/plugins.php?page=WGAPIA_settings
- > Notice in wp-content/plugins/wgapiauth/wgapiauth.php+33
Undefined index: show_welcome
- > GET request to /wp-admin/plugins.php?page=WGAPIA_settings
- > Notice in wp-content/plugins/wgapiauth/wgapiauth.php+120
Undefined variable: save
SRP 0% 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
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/wgapiauth/templates/load.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wgapiauth/wgapiauth.php:55
- > 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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: Please add descriptions for these screenshots #2, #3 in wgapiauth/assets to your readme.txt
wgapiauth/wgapiauth.php 92% from 13 tests
The primary PHP file in "WGAPIAuth" version 0.3.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 656 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,050 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 119 | 366 | 929 |
HTML | 1 | 1 | 0 | 121 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 81.50 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 151.00 |
Average method complexity | 8.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 47.83% |
▷ Protected methods | 12 | 52.17% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
templates/img/wot.png | 0.78KB | 0.94KB | 0.00% |
templates/img/wowp.png | 0.94KB | 1.10KB | 0.00% |
templates/img/wows.png | 0.87KB | 0.97KB | 0.00% |