Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.28MB] [CPU: ▼4.25ms] Passed 4 tests
An overview of server-side resources used by Resourcemanager
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.28 | 44.03 ▲2.37 |
Dashboard /wp-admin | 3.58 ▲0.28 | 48.42 ▼3.54 |
Posts /wp-admin/edit.php | 3.70 ▲0.34 | 49.95 ▼4.46 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.29 | 86.79 ▼6.97 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 38.91 ▼2.02 |
Resources /wp-admin/admin.php?page=resourcemanager_resources | 3.45 | 32.35 |
Resource Calendar /wp-admin/admin.php?page=resourcemanager_views | 3.45 | 34.10 |
Settings /wp-admin/admin.php?page=resourcemanager_settings | 3.45 | 33.85 |
About /wp-admin/admin.php?page=resourcemanager_about | 3.45 | 31.86 |
Server storage [IO: ▲0.87MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 36 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_ha_resourcemanager_bookings |
wp_ha_resourcemanager_resources |
New WordPress options |
---|
ha_resourcemanagerdb_version |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Resourcemanager: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,032 ▲271 | 14.95 ▲0.57 | 11.86 ▲9.86 | 40.89 ▲0.14 |
Dashboard /wp-admin | 2,285 ▲79 | 5.49 ▼0.41 | 105.60 ▲3.64 | 44.75 ▲2.56 |
Posts /wp-admin/edit.php | 2,168 ▲68 | 2.63 ▲0.63 | 40.21 ▼1.20 | 35.47 ▼0.16 |
Add New Post /wp-admin/post-new.php | 1,588 ▲34 | 17.99 ▼0.15 | 638.87 ▲2.73 | 40.03 ▼15.50 |
Media Library /wp-admin/upload.php | 1,471 ▲71 | 4.77 ▲0.52 | 92.13 ▼14.37 | 44.44 ▼1.87 |
Resources /wp-admin/admin.php?page=resourcemanager_resources | 998 | 2.69 | 53.51 | 35.38 |
Resource Calendar /wp-admin/admin.php?page=resourcemanager_views | 1,022 | 2.68 | 57.15 | 33.61 |
Settings /wp-admin/admin.php?page=resourcemanager_settings | 991 | 2.61 | 34.05 | 28.50 |
About /wp-admin/admin.php?page=resourcemanager_about | 935 | 2.29 | 29.00 | 26.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure failed, leaving 2 tables in the database
- wp_ha_resourcemanager_bookings
- wp_ha_resourcemanager_resources
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- ha_resourcemanagerdb_version
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=resourcemanager_about
- > Notice in wp-content/plugins/resourcemanager/include/admin_menu.php+110
Undefined index: _views
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=resourcemanager_about
- > Notice in wp-content/plugins/resourcemanager/include/admin_menu.php+110
Undefined index: _settings
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=resourcemanager_settings
- > Notice in wp-content/plugins/resourcemanager/include/admin_menu.php+110
Undefined index: _about
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=resourcemanager_about
- > Notice in wp-content/plugins/resourcemanager/include/admin_menu.php+110
Undefined index: _resources
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=resourcemanager_settings
- > Notice in wp-content/plugins/resourcemanager/include/admin_menu.php+159
Undefined index: type
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=resourcemanager_settings
- > Notice in wp-content/plugins/resourcemanager/include/admin_menu.php+159
Undefined index: name
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 7× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/resourcemanager/include/shortcode_handler.php
- > /wp-content/plugins/resourcemanager/include/admin_menu.php
- > /wp-content/plugins/resourcemanager/include/setup.php
- > /wp-content/plugins/resourcemanager/resourcemanager.php
- > /wp-content/plugins/resourcemanager/include/ajax.php
- > /wp-content/plugins/resourcemanager/include/db.php
- > /wp-content/plugins/resourcemanager/include/add_scripts.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: car manager, resource manager, room manager
resourcemanager/resourcemanager.php Passed 13 tests
The primary PHP file in "Resourcemanager" version 0.8.0 is used by WordPress to initiate all plugin functionality
68 characters long description:
Visualizes and manages definable resources in an compact month view.
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
There were no executable files found in this plugin3,190 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 380 | 117 | 1,506 |
PHP | 9 | 310 | 102 | 1,255 |
CSS | 5 | 19 | 13 | 159 |
PO File | 1 | 63 | 101 | 138 |
JSON | 2 | 0 | 0 | 81 |
HTML | 1 | 13 | 0 | 51 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 14.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 2.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 70 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 41 | 58.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 29 | 41.43% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 PNG files occupy 0.58MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-icons_555555_256x240.png | 6.91KB | 4.18KB | ▼ 39.47% |
screenshot-2.png | 95.61KB | 65.90KB | ▼ 31.07% |
css/images/ui-icons_cc0000_256x240.png | 4.51KB | 4.18KB | ▼ 7.28% |
screenshot-3.png | 78.39KB | 63.28KB | ▼ 19.28% |
css/images/ui-icons_777620_256x240.png | 4.51KB | 4.18KB | ▼ 7.28% |