Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼1.95ms] Passed 4 tests
Analyzing server-side resources used by Smart Author Box
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.10 | 45.68 ▲7.21 |
Dashboard /wp-admin | 3.37 ▲0.07 | 50.51 ▲3.08 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 50.96 ▼0.12 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 82.91 ▼14.76 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 36.99 ▲4.01 |
Settings /wp-admin/admin.php?page=wpxon_sab_settings | 3.29 | 37.64 |
Smart Author Box /wp-admin/admin.php?page=wpxon_sab | 3.31 | 34.48 |
Server storage [IO: ▲1.53MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 43 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
sab_style_one |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Smart Author Box: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,097 ▲362 | 15.37 ▲0.99 | 5.30 ▲3.54 | 39.76 ▼5.93 |
Dashboard /wp-admin | 2,393 ▲208 | 6.62 ▲0.74 | 134.80 ▲0.90 | 39.15 ▼5.85 |
Posts /wp-admin/edit.php | 2,293 ▲201 | 3.52 ▲1.53 | 56.71 ▲16.51 | 34.98 ▼1.63 |
Add New Post /wp-admin/post-new.php | 1,711 ▲192 | 22.53 ▼0.78 | 564.49 ▼120.56 | 29.01 ▼23.26 |
Media Library /wp-admin/upload.php | 1,429 ▲41 | 4.40 ▲0.16 | 83.22 ▼25.31 | 41.13 ▼2.89 |
Settings /wp-admin/admin.php?page=wpxon_sab_settings | 1,406 | 3.89 | 81.16 | 28.27 |
Smart Author Box /wp-admin/admin.php?page=wpxon_sab | 1,059 | 3.33 | 46.12 | 26.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- sab_style_one
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_author_meta() in wp-content/plugins/smart-author-box/public/partials/smart-author-box-public-display.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/smart-author-box/admin/partials/smart-author-box-admin-about.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/smart-author-box/admin/partials/smart-author-box-admin-settings.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
4 plugin tags: author box, author bio, smart author bio, smart author box
smart-author-box/smart-author-box.php Passed 13 tests
The entry point to "Smart Author Box" version 1.0.6 is a PHP file that has certain tags in its header comment area
65 characters long description:
Smart Author Box will show the author's biography below articles.
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
Success! There were no dangerous files found in this plugin6,471 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 2 | 0 | 0 | 2,959 |
CSS | 3 | 733 | 18 | 2,539 |
PHP | 16 | 305 | 749 | 931 |
JavaScript | 2 | 18 | 7 | 42 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 10.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 2.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 67 | |
▷ Static methods | 2 | 2.99% |
▷ Public methods | 62 | 92.54% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 7.46% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/screenshot-2.png | 36.42KB | 17.76KB | ▼ 51.22% |
public/img/screenshot-1.png | 39.46KB | 12.37KB | ▼ 68.66% |
public/img/screenshot-3.png | 31.84KB | 16.55KB | ▼ 48.01% |