Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.25MB] [CPU: ▼3.65ms] Passed 4 tests
This is a short check of server-side resources used by Author Showcase
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 38.44 ▼4.90 |
Dashboard /wp-admin | 3.62 ▲0.31 | 51.80 ▼2.78 |
Posts /wp-admin/edit.php | 3.67 ▲0.32 | 53.43 ▼4.02 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 103.54 ▼2.91 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 44.95 ▲5.76 |
Author Showcase Book List /wp-admin/admin.php?page=btbe_admin | 3.46 | 42.93 |
Add Book /wp-admin/admin.php?page=btbe_add | 3.56 | 39.17 |
Add API Keys /wp-admin/admin.php?page=btbe_apis | 3.46 | 37.93 |
Server storage [IO: ▲0.77MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 23 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_buybooks |
wp_bb_apis |
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_author_showcase_widget |
can_compress_scripts |
buybook_db_version |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Author Showcase
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,051 ▲305 | 15.46 ▲1.05 | 5.36 ▲3.58 | 43.31 ▼1.67 |
Dashboard /wp-admin | 2,374 ▲183 | 6.41 ▲1.54 | 141.50 ▲21.39 | 46.54 ▼1.23 |
Posts /wp-admin/edit.php | 2,283 ▲194 | 3.31 ▲1.30 | 55.13 ▲16.53 | 35.63 ▼2.99 |
Add New Post /wp-admin/post-new.php | 1,558 ▲38 | 23.40 ▲0.35 | 633.46 ▼71.72 | 35.89 ▼18.94 |
Media Library /wp-admin/upload.php | 1,413 ▲25 | 4.14 ▼0.03 | 80.92 ▼31.62 | 43.11 ▼5.24 |
Author Showcase Book List /wp-admin/admin.php?page=btbe_admin | 1,105 | 3.01 | 46.35 | 31.34 |
Add Book /wp-admin/admin.php?page=btbe_add | 1,209 | 3.18 | 37.46 | 37.99 |
Add API Keys /wp-admin/admin.php?page=btbe_apis | 1,035 | 3.15 | 39.49 | 25.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The uninstall procedure failed, leaving 2 tables in the database
- wp_bb_apis
- wp_buybooks
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- buybook_db_version
- widget_author_showcase_widget
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=btbe_add
- > Notice in wp-content/plugins/author-showcase/btbe_add.php+334
Undefined index: btbe_id
- > GET request to /wp-admin/admin.php?page=btbe_add
- > Notice in wp-content/plugins/author-showcase/btbe_add.php+10
Undefined index: btbe_add
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=btbe_apis
- > Notice in wp-content/plugins/author-showcase/btbe_apis.php+49
Undefined variable: btbe_message
- > GET request to /wp-admin/admin.php?page=btbe_add
- > Notice in wp-content/plugins/author-showcase/btbe_add.php+213
Undefined index: title
- > GET request to /wp-admin/admin.php?page=btbe_add
- > Notice in wp-content/plugins/author-showcase/btbe_add.php+217
Undefined index: subtitle
- > GET request to /wp-admin/admin.php?page=btbe_add
- > Notice in wp-content/plugins/author-showcase/btbe_add.php+236
Undefined index: series
- > GET request to /wp-admin/admin.php?page=btbe_add
- > Notice in wp-content/plugins/author-showcase/btbe_add.php+242
Undefined index: series_num
- > GET request to /wp-admin/admin.php?page=btbe_add
- > Notice in wp-content/plugins/author-showcase/btbe_add.php+247
Undefined index: author
- > GET request to /wp-admin/admin.php?page=btbe_add
- > Notice in wp-content/plugins/author-showcase/btbe_add.php+254
Undefined index: short_blurb
- > GET request to /wp-admin/admin.php?page=btbe_add
- > Notice in wp-content/plugins/author-showcase/btbe_add.php+259
Undefined index: blurb
- > GET request to /wp-admin/admin.php?page=btbe_add
- > Notice in wp-content/plugins/author-showcase/btbe_add.php+266
Undefined index: book_page
- > GET request to /wp-admin/admin.php?page=btbe_add
- > Notice in wp-content/plugins/author-showcase/btbe_add.php+270
Undefined index: asin
- > GET request to /wp-admin/admin.php?page=btbe_add
- > Notice in wp-content/plugins/author-showcase/btbe_add.php+274
Undefined index: isbn
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=btbe_add
- > Notice in wp-content/plugins/author-showcase/btbe_add.php+342
Undefined index: cover
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=btbe_apis
- > Notice in wp-content/plugins/author-showcase/btbe_apis.php+7
Undefined offset: 0
- > GET request to /wp-admin/admin.php?page=btbe_apis
- > Notice in wp-content/plugins/author-showcase/btbe_apis.php+14
Undefined index: btbe_api
- > GET request to /wp-admin/admin.php?page=btbe_apis
- > Notice in wp-content/plugins/author-showcase/btbe_apis.php+54
Undefined index: amazon_assoc
- > GET request to /wp-admin/admin.php?page=btbe_apis
- > Notice in wp-content/plugins/author-showcase/btbe_apis.php+57
Undefined index: amazon_access
- > GET request to /wp-admin/admin.php?page=btbe_apis
- > Notice in wp-content/plugins/author-showcase/btbe_apis.php+60
Undefined index: amazon_secret
- > GET request to /wp-admin/admin.php?page=btbe_apis
- > Notice in wp-content/plugins/author-showcase/btbe_apis.php+63
Undefined index: goodreads_key
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
The following issues need your attention
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/author-showcase/author_showcase.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/author-showcase/btbe_apis.php:1
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/author-showcase/btbe_add.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/author-showcase/btbe_admin.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% 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 require attention:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
author-showcase/author_showcase.php 85% from 13 tests
The main file in "Author Showcase" v. 1.4.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 155 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("author-showcase.php" instead of "author_showcase.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin2,147 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 213 | 508 | 1,617 |
PO File | 2 | 170 | 170 | 475 |
CSS | 1 | 2 | 1 | 43 |
JavaScript | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 35.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 94.00 |
Average method complexity | 3.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 35 | 64.81% |
▷ Protected methods | 18 | 33.33% |
▷ Private methods | 1 | 1.85% |
Functions | 18 | |
▷ Named functions | 18 | 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 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 PNG files occupy 0.65MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icons/Createspace.png | 2.01KB | 1.64KB | ▼ 18.34% |
screenshot2.png | 148.57KB | 39.31KB | ▼ 73.54% |
icons/Barnes and Noble.png | 4.42KB | 1.75KB | ▼ 60.42% |
icons/Amazon.png | 4.28KB | 1.54KB | ▼ 64.10% |
icons/Kobo.png | 0.96KB | 1.02KB | 0.00% |