Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▲3.93ms] Passed 4 tests
This is a short check of server-side resources used by Sharing Club
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 43.84 ▲4.02 |
Dashboard /wp-admin | 3.47 ▲0.17 | 50.40 ▼0.33 |
Posts /wp-admin/edit.php | 3.56 ▲0.21 | 55.61 ▲2.66 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.17 | 104.68 ▲15.03 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 41.81 ▲9.37 |
Categories /wp-admin/edit-tags.php?taxonomy=shared_item_category&post_type=shared_item | 3.38 | 40.13 |
Sharing Club /wp-admin/options-general.php?page=theme-settings | 3.36 | 39.18 |
Lendings /wp-admin/edit-tags.php?taxonomy=shared_item_category&post_type=shared_item&page=display_lending_table | 3.20 | 34.65 |
Lending form /wp-admin/admin.php?page=display_lending_form | 3.39 | 37.84 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
sharing-club_version |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Sharing Club: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲107 | 13.70 ▼0.68 | 1.55 ▼0.26 | 41.92 ▼11.90 |
Dashboard /wp-admin | 2,245 ▲57 | 4.89 ▲0.01 | 107.73 ▼1.49 | 41.19 ▼6.64 |
Posts /wp-admin/edit.php | 2,128 ▲39 | 1.98 ▼0.01 | 40.48 ▲0.83 | 39.20 ▲0.47 |
Add New Post /wp-admin/post-new.php | 1,569 ▲55 | 23.20 ▲5.67 | 676.78 ▲74.83 | 59.19 ▲4.39 |
Media Library /wp-admin/upload.php | 1,418 ▲27 | 4.19 ▲0.01 | 96.40 ▼7.95 | 42.92 ▼1.67 |
Categories /wp-admin/edit-tags.php?taxonomy=shared_item_category&post_type=shared_item | 1,301 | 2.14 | 27.44 | 28.82 |
Sharing Club /wp-admin/options-general.php?page=theme-settings | 833 | 2.03 | 23.93 | 25.89 |
Lendings /wp-admin/edit-tags.php?taxonomy=shared_item_category&post_type=shared_item&page=display_lending_table | 28 | 0.44 | 0.10 | 3.59 |
Lending form /wp-admin/admin.php?page=display_lending_form | 1,019 | 1.92 | 27.99 | 34.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- sharing-club_version
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
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
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=display_lending_form
- > Notice in wp-content/plugins/sharing-club/admin-lending-form-display.php+34
Undefined index: nonce
SRP Passed 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
The SRP test was a success
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- > GET request to /wp-admin/edit-tags.php?taxonomy=shared_item_category&post_type=shared_item&page=display_lending_table
- > Network (severe)
wp-admin/edit-tags.php?taxonomy=shared_item_category&post_type=shared_item&page=display_lending_table - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- > GET request to /wp-admin/admin.php?page=display_lending_form
- > Network (severe)
wp-content/plugins/sharing-club/css/images/ui-bg_flat_75_ffffff_40x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: sharing club, lending, library, book, lend...
sharing-club/sharing-club.php 92% from 13 tests
"Sharing Club" version 1.3.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 146 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,653 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 116 | 171 | 827 |
CSS | 2 | 46 | 74 | 520 |
PO File | 2 | 112 | 116 | 287 |
JavaScript | 2 | 2 | 54 | 19 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 8.33 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 17 | |
▷ Static methods | 6 | 35.29% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 17 | 94.44% |
▷ Anonymous functions | 1 | 5.56% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin