Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.56MB] [CPU: ▼4.31ms] Passed 4 tests
This is a short check of server-side resources used by WebLibrarian
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.16 ▲1.69 | 54.74 ▲8.52 |
Dashboard /wp-admin | 4.92 ▲1.62 | 49.30 ▼3.37 |
Posts /wp-admin/edit.php | 4.98 ▲1.63 | 50.79 ▼0.72 |
Add New Post /wp-admin/post-new.php | 7.19 ▲1.30 | 85.98 ▼21.67 |
Media Library /wp-admin/upload.php | 4.92 ▲1.70 | 45.30 ▲9.10 |
Add Patron ID /wp-admin/users.php?page=weblib-add-patron-id-to-a-user | 4.98 | 61.18 |
Edit Patron info /wp-admin/users.php?page=weblib-edit-your-patron-info | 4.97 | 44.37 |
Web Librarian /wp-admin/options-general.php?page=weblibrarian-options | 4.90 | 41.11 |
Server storage [IO: ▲0.73MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 99 new files
Database: 5 new tables, 13 new options
New tables |
---|
wp_weblib_keywords |
wp_weblib_patrons |
wp_weblib_types |
wp_weblib_collection |
wp_weblib_statistics |
New WordPress options |
---|
widget_strippedmeta |
weblib_associate_tag |
widget_theysaidso_widget |
db_upgraded |
weblib_aws_regiondom |
weblib_debugdb |
can_compress_scripts |
weblib_aws_private_key |
theysaidso_admin_options |
widget_patroncirs |
... |
Browser metrics Passed 4 tests
WebLibrarian: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,919 ▲173 | 13.69 ▼0.62 | 6.14 ▲4.32 | 38.75 ▼10.73 |
Dashboard /wp-admin | 2,229 ▲38 | 5.10 ▲0.18 | 114.46 ▲4.39 | 39.96 ▼4.21 |
Posts /wp-admin/edit.php | 2,120 ▲28 | 2.29 ▲0.12 | 38.95 ▲1.39 | 35.54 ▼1.76 |
Add New Post /wp-admin/post-new.php | 1,534 ▼0 | 23.14 ▲0.22 | 680.54 ▼3.07 | 62.52 ▲7.95 |
Media Library /wp-admin/upload.php | 1,411 ▲20 | 4.25 ▲0.02 | 108.72 ▲8.43 | 42.68 ▼0.06 |
Add Patron ID /wp-admin/users.php?page=weblib-add-patron-id-to-a-user | 1,052 | 1.86 | 28.83 | 26.74 |
Edit Patron info /wp-admin/users.php?page=weblib-edit-your-patron-info | 879 | 1.82 | 27.77 | 27.41 |
Web Librarian /wp-admin/options-general.php?page=weblibrarian-options | 1,019 | 1.83 | 29.97 | 28.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% 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 tables were found after uninstall: 5 tables
- wp_weblib_types
- wp_weblib_patrons
- wp_weblib_keywords
- wp_weblib_collection
- wp_weblib_statistics
- Zombie WordPress options were found after uninstall: 13 options
- weblib_associate_tag
- widget_recent-comments
- weblib_aws_regiondom
- widget_recent-posts
- db_upgraded
- weblib_aws_private_key
- widget_patroncirs
- theysaidso_admin_options
- weblib_debugdb
- widget_theysaidso_widget
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=weblibrarian-options
- > User deprecated in wp-includes/functions.php+5828
Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
- > GET request to /wp-admin/users.php?page=weblib-add-patron-id-to-a-user
- > Notice in wp-content/plugins/weblibrarian/includes/WEBLIB_Users_Admin.php+150
Undefined variable: option
- 3 occurences, only the last one shown
- > GET request to /wp-admin/users.php?page=weblib-add-patron-id-to-a-user
- > Notice in wp-admin/includes/class-wp-list-table.php+1350
Undefined offset: 3
- > GET request to /wp-admin/users.php?page=weblib-edit-your-patron-info
- > Notice in wp-content/plugins/weblibrarian/includes/WEBLIB_Users_Admin.php+202
Undefined variable: message
SRP 50% 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
Almost there! Just fix the following items
- 37× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/weblibrarian/includes/WEBLIB_Patrons_Admin.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/weblibrarian/includes/admin_page_classes.php:8
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/weblibrarian/includes/WEBLIB_Types_Database_Admin.php on line 11
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/weblibrarian/includes/WEBLIB_PatronRecord_Admin.php on line 11
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/weblibrarian/includes/database_code.php on line 13
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/weblibrarian/includes/WEBLIB_Statistics_Admin.php on line 11
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/weblibrarian/includes/database_code.php on line 11
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/weblibrarian/includes/WEBLIB_Collection_Admin.php on line 11
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/weblibrarian/includes/database_code.php on line 7
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/weblibrarian/includes/database_code.php on line 11
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 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: plugin, database, library, circulation, shortcode...
weblibrarian/WebLibrarian.php 92% from 13 tests
The main PHP file in "WebLibrarian" ver. 3.5.8.4 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("weblibrarian.php" instead of "WebLibrarian.php")
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
Success! There were no dangerous files found in this plugin12,758 lines of code in 61 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 624 | 553 | 7,566 |
PO File | 4 | 1,071 | 1,302 | 2,214 |
CSS | 4 | 193 | 139 | 1,809 |
JavaScript | 3 | 102 | 49 | 889 |
HTML | 36 | 13 | 0 | 280 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 39.19 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 110.00 |
Average method complexity | 3.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 59.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 27 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 27 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 471 | |
▷ Static methods | 67 | 14.23% |
▷ Public methods | 463 | 98.30% |
▷ Protected methods | 8 | 1.70% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 31 | |
▷ Global constants | 31 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
29 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/jquery-ui-lightness/ui-bg_glass_100_fdf5ce_1x400.png | 0.34KB | 0.16KB | ▼ 54.02% |
images/_Icon.png | 1.56KB | 1.36KB | ▼ 12.60% |
images/CircStats_Menu.png | 0.67KB | 0.63KB | ▼ 6.81% |
images/Options_Icon.png | 1.56KB | 1.36KB | ▼ 12.60% |
images/jquery-ui-lightness/ui-icons_222222_256x240.png | 6.76KB | 4.17KB | ▼ 38.24% |