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
Install script ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼4.17ms] Passed 4 tests
An overview of server-side resources used by Totally Booked
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 38.55 ▲1.02 |
Dashboard /wp-admin | 3.44 ▲0.10 | 48.60 ▼2.75 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 47.04 ▼0.86 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 83.39 ▼14.07 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 38.94 ▲5.10 |
View All Books /wp-admin/edit.php?post_type=tb_book | 3.41 | 37.42 |
Add New Book /wp-admin/post-new.php?post_type=tb_book | 3.33 | 35.53 |
Your Book Genres /wp-admin/edit-tags.php?taxonomy=tb_genre&post_type=tb_book | 3.35 | 34.81 |
Update Settings /wp-admin/edit.php?post_type=tb_book&page=tb_settings | 3.36 | 33.79 |
Your Book Authors /wp-admin/edit-tags.php?taxonomy=tb_author&post_type=tb_book | 3.35 | 33.43 |
Your Book Series /wp-admin/edit-tags.php?taxonomy=tb_series&post_type=tb_book | 3.35 | 34.25 |
Server storage [IO: ▲0.23MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 48 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
tb_output_css |
tb_output_js |
widget_tb_book_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Totally Booked
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,946 ▲200 | 14.05 ▼0.34 | 6.67 ▲5.09 | 44.16 ▲4.09 |
Dashboard /wp-admin | 2,235 ▲46 | 4.88 ▼0.09 | 106.96 ▼14.95 | 78.77 ▲32.87 |
Posts /wp-admin/edit.php | 2,130 ▲41 | 2.01 ▲0.02 | 34.21 ▼9.07 | 31.89 ▼7.90 |
Add New Post /wp-admin/post-new.php | 1,556 ▲28 | 23.15 ▲4.89 | 777.96 ▲181.55 | 55.89 ▲2.46 |
Media Library /wp-admin/upload.php | 1,423 ▲32 | 4.20 ▼0.03 | 96.43 ▼3.50 | 80.35 ▲35.04 |
View All Books /wp-admin/edit.php?post_type=tb_book | 1,103 | 1.99 | 32.09 | 29.56 |
Add New Book /wp-admin/post-new.php?post_type=tb_book | 2,862 | 7.83 | 180.53 | 132.82 |
Your Book Genres /wp-admin/edit-tags.php?taxonomy=tb_genre&post_type=tb_book | 1,317 | 2.14 | 25.51 | 29.25 |
Update Settings /wp-admin/edit.php?post_type=tb_book&page=tb_settings | 889 | 2.20 | 24.09 | 26.20 |
Your Book Authors /wp-admin/edit-tags.php?taxonomy=tb_author&post_type=tb_book | 1,306 | 2.14 | 27.69 | 29.20 |
Your Book Series /wp-admin/edit-tags.php?taxonomy=tb_series&post_type=tb_book | 1,317 | 2.13 | 26.55 | 30.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_tb_book_widget
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=tb_book
- > Deprecated in wp-content/plugins/totally-booked/lib/post_types.php+212
Function create_function() is deprecated
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/totally-booked/templates/parts/wrapper_end.php
- > /wp-content/plugins/totally-booked/templates/parts/wrapper_start.php
- 19× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/totally-booked/templates/single/book.php:9
- > PHP Warning
Use of undefined constant TB_URI - assumed 'TB_URI' (this will throw an Error in a future version of PHP) in wp-content/plugins/totally-booked/lib/admin_templates/options.php on line 13
- > PHP Fatal error
Uncaught Error: Call to a member function get_book_link_meta_details() on null in wp-content/plugins/totally-booked/lib/admin_templates/meta/book_links.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/totally-booked/lib/admin_templates/options.php:19
- > PHP Notice
Undefined index: TotallyBooked in wp-content/plugins/totally-booked/lib/admin_templates/meta/book_links.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/totally-booked/lib/admin_templates/meta/extra_links.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/totally-booked/lib/widgets.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/totally-booked/templates/buynow_popup.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/totally-booked/lib/admin_templates/pages/advanced.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/totally-booked/lib/admin_templates/meta/book_details.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 19 tag instead of maximum 10
totally-booked/totally-booked.php Passed 13 tests
This is the main PHP file of "Totally Booked" version 0.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
105 characters long description:
A plugin to help authors and book affiliates list their books quickly and easily in any WordPress website
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 plugin2,274 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 597 | 612 | 1,253 |
PO File | 1 | 161 | 169 | 576 |
CSS | 3 | 57 | 23 | 326 |
JavaScript | 2 | 72 | 35 | 119 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 51 | |
▷ Static methods | 3 | 5.88% |
▷ Public methods | 51 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/menu_icon.png | 1.08KB | 0.18KB | ▼ 83.75% |
assets/images/close_icon.png | 1.58KB | 0.45KB | ▼ 71.33% |