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.02MB] [CPU: ▼4.53ms] Passed 4 tests
An overview of server-side resources used by Social Author Box
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.02 | 46.11 ▲5.24 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.63 ▼5.02 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 44.23 ▼1.05 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 90.93 ▼16.23 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.39 ▲4.17 |
Social Author Box /wp-admin/options-general.php?page=social_author_box | 3.21 | 28.72 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_popauthorbox |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
social_author_box_settings |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Social Author Box
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲75 | 13.27 ▼1.08 | 4.60 ▲2.90 | 38.40 ▼12.07 |
Dashboard /wp-admin | 2,210 ▲21 | 5.85 ▲0.95 | 95.30 ▼29.54 | 43.84 ▼7.19 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.00 ▼0.06 | 39.07 ▲2.17 | 35.06 ▲0.59 |
Add New Post /wp-admin/post-new.php | 1,517 ▼21 | 17.78 ▼5.39 | 613.37 ▲23.30 | 48.53 ▼1.85 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.21 ▼0.03 | 96.50 ▲0.50 | 43.95 ▲1.35 |
Social Author Box /wp-admin/options-general.php?page=social_author_box | 798 | 2.06 | 24.37 | 24.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 8 options in the database
- can_compress_scripts
- db_upgraded
- social_author_box_settings
- theysaidso_admin_options
- widget_recent-comments
- widget_popauthorbox
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 2× 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-author-box/inc/options.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-author-box/inc/options.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: author-box, sidebar
social-author-box/social-authorbox.php 85% from 13 tests
The primary PHP file in "Social Author Box" version 1.5.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("social-author-box.php" instead of "social-authorbox.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin273 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 48 | 67 | 216 |
CSS | 1 | 1 | 0 | 57 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 6.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 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
There are no PNG files in this plugin