Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼7.25ms] Passed 4 tests
Analyzing server-side resources used by Book Author Bio
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 38.06 ▼7.04 |
Dashboard /wp-admin | 3.42 ▲0.11 | 50.11 ▼1.21 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 51.18 ▼3.50 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 89.84 ▼17.24 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.69 ▼0.15 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 3.35 | 36.87 |
Server storage [IO: ▲0.94MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Book Author Bio
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 14.26 ▼0.12 | 1.73 ▼0.06 | 37.85 ▼12.03 |
Dashboard /wp-admin | 2,225 ▲45 | 5.56 ▼0.07 | 89.92 ▲5.69 | 44.16 ▼0.73 |
Posts /wp-admin/edit.php | 2,142 ▲39 | 2.06 ▲0.03 | 41.06 ▲0.39 | 45.64 ▲8.20 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 23.58 ▲0.33 | 659.75 ▲36.44 | 53.01 ▼2.71 |
Media Library /wp-admin/upload.php | 1,438 ▲35 | 4.24 ▲0.04 | 96.00 ▼7.95 | 44.78 ▼1.66 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 974 | 2.06 | 26.04 | 29.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/book-author-bio/includes/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
Uncaught Error: Call to undefined function Creativeauthorbio\\plugin_dir_url() in wp-content/plugins/book-author-bio/bwdab-boots.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- License uri: Invalid URI ("www.gnu.org/licenses/gpl-3.0.html")
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
book-author-bio/book-author-bio.php Passed 13 tests
The main PHP script in "Book Author Bio" version 1.0 is automatically included on every request by WordPress
74 characters long description:
Book author bio Elementor plugin eye-cathing style with 15+ preset design.
Code Analysis 97% from 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
Good job! No executable or dangerous file extensions detected7,386 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 586 | 1,662 | 4,422 |
CSS | 4 | 416 | 22 | 2,853 |
JavaScript | 2 | 15 | 20 | 111 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 109)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 41.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 4.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 109.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 1 | 9.09% |
Methods | 128 | |
▷ Static methods | 6 | 4.69% |
▷ Public methods | 101 | 78.91% |
▷ Protected methods | 25 | 19.53% |
▷ Private methods | 2 | 1.56% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 2 | 22.22% |
▷ Class constants | 7 | 77.78% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/public/image/sign-white.png | 25.71KB | 8.56KB | ▼ 66.70% |