Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼3.98ms] Passed 4 tests
This is a short check of server-side resources used by Book Share Manager
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 42.15 ▼0.25 |
Dashboard /wp-admin | 3.38 ▲0.08 | 53.53 ▲5.38 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 54.29 ▲5.01 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 86.28 ▼18.59 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.99 ▼2.08 |
Add New /wp-admin/post-new.php?post_type=bsm_book | 3.34 | 49.71 |
Add New /wp-admin/post-new.php?post_type=bsm_sharer | 3.34 | 49.82 |
BSM Sharer /wp-admin/edit.php?post_type=bsm_sharer | 3.35 | 42.25 |
BSM Book /wp-admin/edit.php?post_type=bsm_book | 3.35 | 38.10 |
Server storage [IO: ▲1.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 70 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Book Share Manager
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,089 ▲303 | 14.92 ▲0.63 | 6.69 ▲4.54 | 44.48 ▼0.96 |
Dashboard /wp-admin | 2,394 ▲217 | 6.17 ▲0.64 | 102.98 ▲15.59 | 39.37 ▼0.01 |
Posts /wp-admin/edit.php | 2,328 ▲228 | 3.41 ▲1.43 | 51.27 ▲14.26 | 30.64 ▼4.23 |
Add New Post /wp-admin/post-new.php | 1,592 ▲66 | 23.11 ▲0.13 | 599.65 ▼20.95 | 36.59 ▼10.72 |
Media Library /wp-admin/upload.php | 1,472 ▲72 | 4.29 ▲0.08 | 83.77 ▼24.22 | 47.07 ▲4.38 |
Add New /wp-admin/post-new.php?post_type=bsm_book | 1,743 | 3.59 | 63.13 | 39.11 |
Add New /wp-admin/post-new.php?post_type=bsm_sharer | 1,755 | 3.58 | 67.66 | 36.37 |
BSM Sharer /wp-admin/edit.php?post_type=bsm_sharer | 1,292 | 3.33 | 43.23 | 28.11 |
BSM Book /wp-admin/edit.php?post_type=bsm_book | 1,292 | 3.34 | 44.00 | 27.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Please take a closer look at the following
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Undefined index: bsm_book_category in wp-content/plugins/book-share-manager/includes/require-bsm-share.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/book-share-manager/includes/require-bsm-check.php:10
- > PHP Notice
Undefined index: bsm_user_id in wp-content/plugins/book-share-manager/includes/require-bsm-check.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/book-share-manager/includes/require-bsm-join.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/book-share-manager/includes/require-bsm-share.php:11
- > PHP Notice
Undefined index: bsm_user_id in wp-content/plugins/book-share-manager/includes/require-bsm-share.php on line 8
- > PHP Notice
Undefined index: bsm_user_pin in wp-content/plugins/book-share-manager/includes/require-bsm-share.php on line 9
- > PHP Notice
Undefined index: bsm_user_id in wp-content/plugins/book-share-manager/includes/require-bsm-join.php on line 8
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
There were not plugin tags detected
book-share-manager/book-share-manager.php Passed 13 tests
The main file in "Book Share Manager" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
108 characters long description:
It will make your website to a Book sharing website. It will work in a single institution with some feature.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin4,865 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 10 | 246 | 34 | 2,650 |
PHP | 17 | 795 | 146 | 1,457 |
SVG | 1 | 0 | 0 | 565 |
JavaScript | 4 | 63 | 8 | 193 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 3.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 39 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 12 | 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
31 PNG files occupy 0.26MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
JaedAdmin/css/icons/dark/os-windows.png | 3.03KB | 0.61KB | ▼ 80.01% |
JaedAdmin/css/icons/keywords.png | 3.12KB | 0.74KB | ▼ 76.13% |
JaedAdmin/css/icons/os-apple.png | 2.97KB | 0.48KB | ▼ 83.72% |
JaedAdmin/css/icons/dark/browser-firefox.png | 1.44KB | 0.75KB | ▼ 48.41% |
css/no-thumb.png | 32.28KB | 19.63KB | ▼ 39.17% |