Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.55MB] [CPU: ▲4.20ms] Passed 4 tests
Server-side resources used by Book Review Library
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.03 ▲0.56 | 50.95 ▲14.48 |
Dashboard /wp-admin | 3.85 ▲0.55 | 55.02 ▲5.68 |
Posts /wp-admin/edit.php | 3.97 ▲0.61 | 54.70 ▲2.76 |
Add New Post /wp-admin/post-new.php | 6.46 ▲0.57 | 109.35 ▲6.72 |
Media Library /wp-admin/upload.php | 3.77 ▲0.54 | 39.73 ▲1.65 |
Options /wp-admin/edit.php?post_type=book-review&page=book-review-library-options | 3.79 | 35.79 |
Add New /wp-admin/post-new.php?post_type=book-review | 3.90 | 59.14 |
Book Reviews /wp-admin/edit.php?post_type=book-review | 3.81 | 41.38 |
Book Authors /wp-admin/edit-tags.php?taxonomy=book-author&post_type=book-review | 3.76 | 38.06 |
Genres /wp-admin/edit-tags.php?taxonomy=genre&post_type=book-review | 3.76 | 38.82 |
Server storage [IO: ▲0.76MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 54 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-book-review-widget |
can_compress_scripts |
widget_recent-comments |
widget_book-review-widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Book Review Library
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲51 | 14.34 ▼0.25 | 1.88 ▼0.33 | 43.39 ▲1.38 |
Dashboard /wp-admin | 2,243 ▲79 | 5.64 ▼0.04 | 89.80 ▼12.16 | 37.76 ▼6.92 |
Posts /wp-admin/edit.php | 2,160 ▲57 | 2.25 ▲0.27 | 40.07 ▼1.37 | 35.93 ▼5.51 |
Add New Post /wp-admin/post-new.php | 1,564 ▲29 | 23.66 ▲5.46 | 669.33 ▲51.66 | 73.11 ▲6.81 |
Media Library /wp-admin/upload.php | 1,447 ▲44 | 4.23 ▼0.05 | 98.08 ▼4.92 | 48.16 ▲2.46 |
Options /wp-admin/edit.php?post_type=book-review&page=book-review-library-options | 1,196 | 1.77 | 28.56 | 28.44 |
Add New /wp-admin/post-new.php?post_type=book-review | 2,464 | 7.90 | 179.16 | 72.65 |
Book Reviews /wp-admin/edit.php?post_type=book-review | 1,121 | 2.17 | 32.36 | 29.37 |
Book Authors /wp-admin/edit-tags.php?taxonomy=book-author&post_type=book-review | 1,333 | 2.26 | 28.58 | 30.20 |
Genres /wp-admin/edit-tags.php?taxonomy=genre&post_type=book-review | 1,303 | 2.26 | 30.32 | 30.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 8 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_book-review-widget
- widget_recent-posts
- widget_recent-book-review-widget
- widget_theysaidso_widget
- db_upgraded
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
These server-side errors were triggered
- > GET request to /wp-admin/edit.php?post_type=book-review&page=book-review-library-options
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/edit.php?post_type=book-review&page=book-review-library-options
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
include_once(): Failed opening 'BOOK_REVIEWS_FUNC' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/book-review-library/views/actions.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/book-review-library/views/admin.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/book-review-library/views/public.php:12
- > PHP Warning
Use of undefined constant BOOK_REVIEWS_FUNC - assumed 'BOOK_REVIEWS_FUNC' (this will throw an Error in a future version of PHP) in wp-content/plugins/book-review-library/views/actions.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/book-review-library/inc/widgets.php:17
- > PHP Warning
include_once(BOOK_REVIEWS_FUNC): failed to open stream: No such file or directory in wp-content/plugins/book-review-library/views/actions.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/book-review-library/views/public.php:12
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: library, book, custom post type, librarian, reading level...
book-review-library/book-review-library.php Passed 13 tests
The main PHP file in "Book Review Library" ver. 1.4.23 adds more information about the plugin and also serves as the entry point for this plugin
86 characters long description:
A book cataloguing and review system designed with bookophiles and librarians in mind.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin7,409 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 11 | 2,135 | 2,412 | 4,680 |
PHP | 10 | 282 | 696 | 2,394 |
CSS | 3 | 26 | 20 | 218 |
SVG | 1 | 0 | 0 | 105 |
JavaScript | 1 | 2 | 0 | 12 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 69.67 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 169.00 |
Average method complexity | 5.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 89.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 3 | 6.67% |
▷ Public methods | 44 | 97.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.22% |
Functions | 36 | |
▷ Named functions | 36 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin