Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲4.05MB] [CPU: ▲32.10ms] Passed 4 tests
An overview of server-side resources used by Mooberry Book Manager
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.97 ▲3.50 | 64.62 ▲22.17 |
Dashboard /wp-admin | 7.55 ▲4.24 | 89.18 ▲40.37 |
Posts /wp-admin/edit.php | 7.59 ▲4.23 | 91.83 ▲40.74 |
Add New Post /wp-admin/post-new.php | 10.24 ▲4.34 | 126.73 ▲28.65 |
Media Library /wp-admin/upload.php | 7.48 ▲4.25 | 70.67 ▲37.20 |
Editors /wp-admin/edit-tags.php?taxonomy=mbdb_editor&post_type=mbdb_book | 7.90 | 76.45 |
Add New /wp-admin/post-new.php?post_type=mbdb_publisher | 8.00 | 95.49 |
All Books /wp-admin/edit.php?post_type=mbdb_book | 7.55 | 68.58 |
Retailers /wp-admin/admin.php?page=mbdb_retailers_options | 9.08 | 86.09 |
E-book Formats /wp-admin/admin.php?page=mbdb_formats_options | 7.96 | 79.26 |
Add New /wp-admin/post-new.php?post_type=mbdb_book_grid | 8.28 | 87.51 |
Genres /wp-admin/edit-tags.php?taxonomy=mbdb_genre&post_type=mbdb_book | 7.89 | 73.12 |
Cover Artists /wp-admin/edit-tags.php?taxonomy=mbdb_cover_artist&post_type=mbdb_book | 7.90 | 78.10 |
Book Grid /wp-admin/admin.php?page=mbdb_grid_options | 7.93 | 66.88 |
Translators /wp-admin/edit-tags.php?taxonomy=mbdb_translator&post_type=mbdb_book | 7.48 | 64.97 |
Server storage [IO: ▲5.71MB] [DB: ▲0.03MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 587 new files
Database: 1 new table, 12 new options
New tables |
---|
wp_mbdb_books |
New WordPress options |
---|
widget_mbdb_book_widget2 |
theysaidso_admin_options |
widget_theysaidso_widget |
mbdb_options |
mbdb_version |
mbdb_import_books |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
mbdb_admin_notice_manager |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Mooberry Book Manager
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,107 ▲345 | 13.98 ▼0.45 | 5.23 ▲3.37 | 40.25 ▼0.53 |
Dashboard /wp-admin | 2,416 ▲236 | 5.88 ▲0.22 | 98.72 ▲4.65 | 43.48 ▼0.24 |
Posts /wp-admin/edit.php | 2,325 ▲225 | 2.34 ▲0.33 | 39.26 ▼1.19 | 37.19 ▼1.18 |
Add New Post /wp-admin/post-new.php | 1,722 ▲196 | 22.55 ▼0.85 | 704.26 ▲37.43 | 36.66 ▼16.86 |
Media Library /wp-admin/upload.php | 1,635 ▲232 | 4.75 ▲0.53 | 105.50 ▲3.23 | 46.61 ▲4.60 |
Editors /wp-admin/edit-tags.php?taxonomy=mbdb_editor&post_type=mbdb_book | 2,541 | 8.58 | 183.10 | 76.84 |
Add New /wp-admin/post-new.php?post_type=mbdb_publisher | 1,893 | 4.04 | 80.88 | 34.37 |
All Books /wp-admin/edit.php?post_type=mbdb_book | 1,439 | 2.29 | 38.60 | 30.41 |
Retailers /wp-admin/admin.php?page=mbdb_retailers_options | 7,417 | 4.81 | 210.00 | 131.98 |
E-book Formats /wp-admin/admin.php?page=mbdb_formats_options | 1,596 | 3.78 | 49.80 | 85.91 |
Add New /wp-admin/post-new.php?post_type=mbdb_book_grid | 3,256 | 3.20 | 71.75 | 75.64 |
Genres /wp-admin/edit-tags.php?taxonomy=mbdb_genre&post_type=mbdb_book | 2,514 | 8.48 | 182.80 | 61.09 |
Cover Artists /wp-admin/edit-tags.php?taxonomy=mbdb_cover_artist&post_type=mbdb_book | 2,541 | 8.52 | 185.98 | 61.75 |
Book Grid /wp-admin/admin.php?page=mbdb_grid_options | 1,407 | 2.17 | 33.59 | 30.02 |
Translators /wp-admin/edit-tags.php?taxonomy=mbdb_translator&post_type=mbdb_book | 1,479 | 2.11 | 38.96 | 33.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie tables were found after uninstall: 1 table
- wp_mbdb_books
- This plugin did not uninstall successfully, leaving 12 options in the database
- mbdb_admin_notice_manager
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_mbdb_book_widget2
- mbdb_version
- widget_recent-posts
- mbdb_import_books
- widget_recent-comments
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/mooberry-book-manager/includes/admin/views/reserved_terms.php
- 114× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/mooberry-book-manager/includes/CMB2/types/CMB2_Type_Taxonomy_Select.php:13
- > PHP Fatal error
Uncaught Error: Class 'Mooberry_Book_Manager_Book_Grid' not found in wp-content/plugins/mooberry-book-manager/includes/class-mbm-tax-grid.php:3
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/mooberry-book-manager/includes/CMB2/includes/CMB2_hookup.php:14
- > PHP Fatal error
Uncaught Error: Class 'WP_Background_Process' not found in wp-content/plugins/mooberry-book-manager/includes/admin/class-mbm-import-process.php:2
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/mooberry-book-manager/includes/CMB2/includes/types/CMB2_Type_Multi_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Background_Process' not found in wp-content/plugins/mooberry-book-manager/includes/admin/class-book-content-update-fix-process.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/mooberry-book-manager/includes/admin/views/admin-about-mooberry.php:4
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/mooberry-book-manager/includes/CMB2/types/CMB2_Type_Checkbox.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Counter_Base' not found in wp-content/plugins/mooberry-book-manager/includes/CMB2/types/CMB2_Type_Textarea.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/mooberry-book-manager/includes/CMB2/includes/types/CMB2_Type_Radio.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: author website management, library, book store, author, writing...
mooberry-book-manager/mooberry-book-manager.php 77% from 13 tests
This is the main PHP file of "Mooberry Book Manager" version 4.15.11, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Domain Path: The domain path should be prefixed with a forward slash character ("/languages")
- Domain Path: The domain path should use only dashes and lowercase characters ("languages")
- Description: Please keep the plugin description shorter than 140 characters (currently 146 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin88,238 lines of code in 342 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 132 | 20,931 | 27,173 | 46,829 |
PHP | 145 | 7,679 | 13,648 | 24,620 |
JSON | 3 | 0 | 0 | 6,620 |
CSS | 19 | 495 | 1,341 | 5,229 |
JavaScript | 17 | 636 | 796 | 2,189 |
Sass | 17 | 306 | 29 | 1,411 |
Markdown | 7 | 451 | 0 | 1,272 |
HTML | 2 | 14 | 0 | 68 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 22.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 288.00 |
Average method complexity | 3.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 194 | |
▷ Abstract classes | 32 | 16.49% |
▷ Concrete classes | 162 | 83.51% |
▷ Final classes | 1 | 0.62% |
Methods | 1,839 | |
▷ Static methods | 192 | 10.44% |
▷ Public methods | 1,492 | 81.13% |
▷ Protected methods | 326 | 17.73% |
▷ Private methods | 21 | 1.14% |
Functions | 170 | |
▷ Named functions | 168 | 98.82% |
▷ Anonymous functions | 2 | 1.18% |
Constants | 27 | |
▷ Global constants | 12 | 44.44% |
▷ Class constants | 15 | 55.56% |
▷ Public constants | 15 | 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
49 compressed PNG files occupy 0.30MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/admin/views/images/logo.png | 23.30KB | 11.39KB | ▼ 51.12% |
includes/assets/createspace.png | 4.29KB | 4.20KB | ▼ 2.21% |
includes/assets/goodreads_logo.png | 2.28KB | 2.08KB | ▼ 8.58% |
includes/CMB2/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
includes/CMB2/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |