Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/social-autho-bio/include/php/MetaBox.php+55
Methods with the same name as their class will not be constructors in a future version of PHP; WPAlchemy_MetaBox has a deprecated constructor
Server metrics [RAM: ▼1.42MB] [CPU: ▼51.61ms] Passed 4 tests
Analyzing server-side resources used by Social Author Bio
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.56 ▼0.89 | 5.73 ▼35.10 |
Dashboard /wp-admin | 2.58 ▼0.72 | 7.40 ▼41.92 |
Posts /wp-admin/edit.php | 2.59 ▼0.77 | 7.77 ▼38.76 |
Add New Post /wp-admin/post-new.php | 2.59 ▼3.30 | 7.79 ▼90.66 |
Media Library /wp-admin/upload.php | 2.59 ▼0.64 | 7.46 ▼26.88 |
General /wp-admin/admin.php?page=sabp-general | 2.59 | 8.13 |
Custom Links /wp-admin/admin.php?page=sabp-customlinks | 2.59 | 9.33 |
Advanced HTML/Style /wp-admin/admin.php?page=sabp-html | 2.59 | 6.63 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Social Author Bio
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲97 | 13.20 ▼1.18 | 1.71 ▼0.20 | 41.21 ▼9.64 |
Dashboard /wp-admin | 2,236 ▲48 | 5.84 ▲0.05 | 98.72 ▼4.86 | 73.73 ▲34.14 |
Posts /wp-admin/edit.php | 2,119 ▲30 | 2.04 ▼0.02 | 38.14 ▲4.16 | 35.93 ▲3.26 |
Add New Post /wp-admin/post-new.php | 6,480 ▲4,961 | 28.53 ▲5.29 | 965.22 ▲262.64 | 58.84 ▼2.69 |
Media Library /wp-admin/upload.php | 1,415 ▲33 | 4.14 ▼0.07 | 111.77 ▲9.63 | 44.03 ▲0.42 |
General /wp-admin/admin.php?page=sabp-general | 1,022 | 2.04 | 24.81 | 47.05 |
Custom Links /wp-admin/admin.php?page=sabp-customlinks | 1,279 | 2.21 | 25.68 | 27.35 |
Advanced HTML/Style /wp-admin/admin.php?page=sabp-html | 856 | 2.01 | 23.91 | 24.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/social-autho-bio/include/php/MetaBox.php+55
Methods with the same name as their class will not be constructors in a future version of PHP; WPAlchemy_MetaBox has a deprecated constructor
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sabp-html
- > Deprecated in wp-content/plugins/social-autho-bio/include/php/MetaBox.php+55
Methods with the same name as their class will not be constructors in a future version of PHP; WPAlchemy_MetaBox has a deprecated constructor
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sabp-html
- > Warning in wp-content/plugins/social-autho-bio/social_author_bio.php+68
count(): Parameter must be an array or an object that implements Countable
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sabp-html
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method WPAlchemy_MetaBox::_global_head() should not be called statically
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sabp-html
- > Deprecated in wp-content/plugins/social-autho-bio/include/php/MetaBox.php+1510
Non-static method WPAlchemy_MetaBox::_is_post() should not be called statically
- 12 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sabp-html
- > Deprecated in wp-content/plugins/social-autho-bio/include/php/MetaBox.php+1005
Non-static method WPAlchemy_MetaBox::_is_post_or_page() should not be called statically
- 12 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sabp-html
- > Deprecated in wp-content/plugins/social-autho-bio/include/php/MetaBox.php+1024
Non-static method WPAlchemy_MetaBox::_get_current_post_type() should not be called statically
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sabp-html
- > Deprecated in wp-content/plugins/social-autho-bio/include/php/MetaBox.php+1510
Non-static method WPAlchemy_MetaBox::_is_page() should not be called statically
- > GET request to /wp-admin/admin.php?page=sabp-general
- > Notice in wp-content/plugins/social-autho-bio/social_author_bio.php+300
Trying to access array offset on value of type bool
- > GET request to /wp-admin/admin.php?page=sabp-general
- > Notice in wp-content/plugins/social-autho-bio/social_author_bio.php+300
Trying to access array offset on value of type null
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sabp-html
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method WPAlchemy_MetaBox::_global_foot() should not be called statically
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
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-autho-bio/include/php/MetaBox.php:16
- > PHP Fatal error
Uncaught Error: Call to a member function the_field() on null in wp-content/plugins/social-autho-bio/include/php/checkbox-meta.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/social-autho-bio/social_author_bio.php:11
- > PHP Notice
Undefined variable: mb in wp-content/plugins/social-autho-bio/include/php/checkbox-meta.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: These screenshots require images: #1 (Social Author Bio in Action!), #2 (Social Author Bio General Admin Settings), #3 (Social Author Bio Custom Social Icons), #4 (Social Author Bio HTML Settings), #5 (Social Author Bio User Profile Settings)
social-autho-bio/social_author_bio.php 92% from 13 tests
The main file in "Social Author Bio" v. 2.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("social-autho-bio.php" instead of "social_author_bio.php")
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
Good job! No executable or dangerous file extensions detected2,137 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 679 | 850 | 2,137 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 121.33 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 237.00 |
Average method complexity | 5.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 68.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 | 81 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 80 | 98.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.23% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 18 | |
▷ Global constants | 18 | 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
31 PNG files occupy 0.34MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/Wordpress.png | 3.05KB | 1.73KB | ▼ 43.21% |
images/Linkedin.png | 2.53KB | 1.68KB | ▼ 33.83% |
images/Vimeo.png | 2.40KB | 1.71KB | ▼ 28.84% |
images/Technorati.png | 2.50KB | 1.62KB | ▼ 35.18% |
screenshot-4.png | 41.89KB | 19.42KB | ▼ 53.64% |