Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼140.08ms] Passed 4 tests
Server-side resources used by Social Pug: Author Box
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.96 ▲0.24 | 37.81 ▲13.94 |
Dashboard /wp-admin | 3.19 ▲0.13 | 48.87 ▼2.99 |
Posts /wp-admin/edit.php | 3.30 ▲0.19 | 41.46 ▼2.74 |
Add New Post /wp-admin/post-new.php | 5.54 ▲0.11 | 91.65 ▼553.52 |
Media Library /wp-admin/upload.php | 3.13 ▲0.13 | 34.98 ▼1.06 |
Social Pug Author Box /wp-admin/options-general.php?page=social_pug_author_box | 3.10 | 32.77 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 2 new options
New WordPress options |
---|
spab_first_activation |
spab_version |
Browser metrics Passed 4 tests
Checking browser requirements for Social Pug: Author Box
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,709 ▲115 | 16.25 ▲0.77 | 7.35 ▼1.94 | 50.09 ▲1.91 |
Dashboard /wp-admin | 3,001 ▲67 | 5.90 ▼0.19 | 139.66 ▼10.66 | 133.66 ▲14.77 |
Posts /wp-admin/edit.php | 2,764 ▲25 | 2.71 ▲0.01 | 75.69 ▲8.31 | 109.44 ▲12.01 |
Add New Post /wp-admin/post-new.php | 1,632 ▼51 | 21.22 ▲5.01 | 282.03 ▼116.31 | 110.50 ▼6.56 |
Media Library /wp-admin/upload.php | 1,835 ▲28 | 5.02 ▲0.01 | 170.34 ▲21.38 | 144.99 ▲19.44 |
Social Pug Author Box /wp-admin/options-general.php?page=social_pug_author_box | 1,162 | 2.50 | 67.88 | 140.86 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 2 options
- spab_version
- spab_first_activation
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 6× 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/social-pug-author-box/inc/functions.php:227
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-pug-author-box/inc/class-admin-user-fields.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/social-pug-author-box/inc/class-shortcodes.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-pug-author-box/inc/class-admin-settings-page.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/social-pug-author-box/index.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/social-pug-author-box/inc/class-author-box-outputter.php:14
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=social_pug_author_box
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core&ver=5.8.1 1:31592 "jQuery.Deferred exception: $(...).sortable is not a function" "TypeError: $(...).sortable is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/social-pug-author-box/assets/js/dashboard.js?ver=5.8.1:103:25)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core&ver=5.8.1:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core&ver=5.8.1:2:30340)" undefined
- > GET request to /wp-admin/options-general.php?page=social_pug_author_box
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core&ver=5.8.1 1:31702 Uncaught TypeError: $(...).sortable is not a function
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: user profile, author profile, author bio, author social icons, follow buttons...
social-pug-author-box/index.php 92% from 13 tests
The main PHP script in "Social Pug: Author Box" version 1.0.0 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("social-pug-author-box.php" instead of "index.php")
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 plugin1,362 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 156 | 62 | 826 |
PHP | 7 | 290 | 210 | 446 |
JavaScript | 1 | 25 | 27 | 56 |
SVG | 1 | 22 | 0 | 34 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 8.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 1 | 3.70% |
▷ Public methods | 27 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.31MB with 0.19MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 89.63KB | 36.20KB | ▼ 59.61% |
screenshot-2.png | 127.97KB | 49.91KB | ▼ 61.00% |
screenshot-1.png | 95.30KB | 37.09KB | ▼ 61.08% |