Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.99MB] [CPU: ▲2.79ms] Passed 4 tests
Server-side resources used by Simple Author Box
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.46 ▲0.73 | 53.53 ▲11.67 |
Dashboard /wp-admin | 4.67 ▲1.10 | 65.28 ▲10.96 |
Posts /wp-admin/edit.php | 4.72 ▲1.04 | 58.86 ▲1.67 |
Add New Post /wp-admin/post-new.php | 7.27 ▲1.12 | 104.43 ▼12.74 |
Media Library /wp-admin/upload.php | 4.59 ▲1.10 | 53.45 ▲11.25 |
Simple Author Box /wp-admin/themes.php?page=simple-author-box | 5.40 | 88.45 |
Server storage [IO: ▲1.20MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 62 new files
Database: no new tables, 8 new options
New WordPress options |
---|
sab_version |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_simple_author_box_widget_lite |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Simple Author Box
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,957 ▲171 | 13.57 ▼0.74 | 8.87 ▲6.79 | 44.47 ▼5.57 |
Dashboard /wp-admin | 2,256 ▲79 | 5.80 ▲0.17 | 92.05 ▲0.77 | 41.16 ▼3.53 |
Posts /wp-admin/edit.php | 2,167 ▲67 | 2.54 ▲0.48 | 47.66 ▲4.33 | 35.38 ▼6.95 |
Add New Post /wp-admin/post-new.php | 6,410 ▲4,865 | 22.59 ▼0.28 | 957.93 ▲342.87 | 41.99 ▼7.13 |
Media Library /wp-admin/upload.php | 1,464 ▲67 | 4.38 ▲0.20 | 113.25 ▲8.30 | 46.85 ▲0.48 |
Simple Author Box /wp-admin/themes.php?page=simple-author-box | 15,591 | 4.15 | 197.57 | 224.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 8 options in the database
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_simple_author_box_widget_lite
- sab_version
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/simple-author-box/simple-author-box.php on line 37
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/simple-author-box/simple-author-box.php on line 37
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/simple-author-box/template/template-sab.php:26
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/simple-author-box/simple-author-box.php on line 37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-author-box/inc/class-simple-author-box-user-profile.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/simple-author-box/inc/class-simple-author-box-widget.php:3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
simple-author-box/simple-author-box.php Passed 13 tests
The primary PHP file in "Simple Author Box" version 2.52 is used by WordPress to initiate all plugin functionality
59 characters long description:
Adds a responsive author box with social icons on any post.
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
There were no executable files found in this plugin10,701 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 672 | 276 | 4,838 |
JavaScript | 14 | 467 | 187 | 3,436 |
CSS | 8 | 398 | 38 | 2,077 |
Sass | 1 | 3 | 0 | 337 |
JSON | 1 | 0 | 0 | 13 |
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.41 |
Average class complexity | 44.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 145.00 |
Average method complexity | 6.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 1 | 8.33% |
Methods | 98 | |
▷ Static methods | 20 | 20.41% |
▷ Public methods | 87 | 88.78% |
▷ Protected methods | 3 | 3.06% |
▷ Private methods | 8 | 8.16% |
Functions | 6 | |
▷ Named functions | 4 | 66.67% |
▷ Anonymous functions | 2 | 33.33% |
Constants | 10 | |
▷ Global constants | 7 | 70.00% |
▷ Class constants | 3 | 30.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
18 compressed PNG files occupy 0.11MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.08KB | 0.08KB | 0.00% |
assets/css/images/ui-icons_cc0000_256x240.png | 3.19KB | 3.49KB | 0.00% |
wf-flyout/icons/wp-ssl.png | 13.01KB | 6.69KB | ▼ 48.56% |
assets/css/images/ui-icons_ffffff_256x240.png | 3.19KB | 3.49KB | 0.00% |
assets/img/image.png | 0.56KB | 0.41KB | ▼ 26.13% |