Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.21MB] [CPU: ▼6.67ms] Passed 4 tests
This is a short check of server-side resources used by Library Bookshelves
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 44.78 ▼5.53 |
Dashboard /wp-admin | 3.53 ▲0.19 | 61.68 ▼2.15 |
Posts /wp-admin/edit.php | 3.63 ▲0.28 | 61.51 ▲11.04 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.31 | 91.42 ▼20.27 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 41.95 ▲1.29 |
Settings /wp-admin/edit.php?post_type=bookshelves&page=bookshelf-settings-page | 3.44 | 49.93 |
Add New /wp-admin/post-new.php?post_type=bookshelves | 3.64 | 72.06 |
Bookshelves /wp-admin/edit.php?post_type=bookshelves | 3.49 | 47.62 |
Locations /wp-admin/edit-tags.php?taxonomy=location&post_type=bookshelves | 3.52 | 52.76 |
Server storage [IO: ▲0.25MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options |
---|
library_bookshelves |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Library Bookshelves
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,092 ▲331 | 15.32 ▲0.97 | 4.85 ▲3.23 | 43.67 ▼0.26 |
Dashboard /wp-admin | 2,390 ▲218 | 6.20 ▲0.48 | 109.62 ▲4.13 | 96.83 ▲51.55 |
Posts /wp-admin/edit.php | 2,336 ▲233 | 3.44 ▲1.47 | 54.68 ▲14.99 | 86.15 ▲50.32 |
Add New Post /wp-admin/post-new.php | 1,597 ▲71 | 23.25 ▼0.37 | 658.24 ▼51.08 | 36.60 ▼21.74 |
Media Library /wp-admin/upload.php | 1,476 ▲76 | 4.21 ▲0.05 | 89.60 ▼18.94 | 68.82 ▲19.71 |
Settings /wp-admin/edit.php?post_type=bookshelves&page=bookshelf-settings-page | 1,503 | 3.22 | 44.14 | 69.98 |
Add New /wp-admin/post-new.php?post_type=bookshelves | 2,869 | 3.85 | 79.63 | 83.61 |
Bookshelves /wp-admin/edit.php?post_type=bookshelves | 1,361 | 3.29 | 46.10 | 73.80 |
Locations /wp-admin/edit-tags.php?taxonomy=location&post_type=bookshelves | 1,516 | 3.14 | 44.04 | 73.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/library-bookshelves/bookshelves-taxonomy.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/library-bookshelves/single-bookshelves.php:1
- > 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 Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: catalog, ils, bookshelf, books, opac...
library-bookshelves/class-library-bookshelves.php 85% from 13 tests
"Library Bookshelves" version 5.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("library-bookshelves.php" instead of "class-library-bookshelves.php")
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected4,150 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 465 | 730 | 3,554 |
CSS | 3 | 54 | 17 | 423 |
JavaScript | 3 | 35 | 39 | 159 |
SVG | 2 | 1 | 0 | 14 |
PHP code Passed 2 tests
An overview 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.55 |
Average class complexity | 32.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 89.00 |
Average method complexity | 3.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.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 | 44 | |
▷ Static methods | 4 | 9.09% |
▷ Public methods | 42 | 95.45% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.55% |
Functions | 27 | |
▷ Named functions | 22 | 81.48% |
▷ Anonymous functions | 5 | 18.52% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin