Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.06MB] [CPU: ▼38.90ms] Passed 4 tests
Server-side resources used by Custom Sidebars Manager
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.47 | 17.25 ▼23.98 |
Dashboard /wp-admin | 3.95 ▲0.64 | 19.85 ▼27.86 |
Posts /wp-admin/edit.php | 3.95 ▲0.59 | 17.63 ▼29.54 |
Add New Post /wp-admin/post-new.php | 3.95 ▼1.94 | 17.64 ▼74.20 |
Media Library /wp-admin/upload.php | 3.95 ▲0.72 | 22.93 ▼13.07 |
Sidebars /wp-admin/themes.php?page=SidebarManager | 4.09 | 17.95 |
Server storage [IO: ▲11.40MB] [DB: ▲0.05MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 706 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
ffpf_caching_dir_144051733000cbe9381e18e94c8209bf |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Custom Sidebars Manager
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲73 | 14.48 ▲0.05 | 1.83 ▼0.38 | 42.77 ▼2.85 |
Dashboard /wp-admin | 2,209 ▲18 | 5.83 ▲0.96 | 100.18 ▼13.43 | 37.74 ▼6.77 |
Posts /wp-admin/edit.php | 2,092 ▲6 | 1.99 ▲0.02 | 33.97 ▼7.17 | 31.19 ▼6.59 |
Add New Post /wp-admin/post-new.php | 1,519 ▼1 | 17.79 ▼5.41 | 684.14 ▼11.74 | 49.62 ▼6.59 |
Media Library /wp-admin/upload.php | 1,394 ▲3 | 4.24 ▲0.00 | 97.48 ▼7.15 | 43.90 ▼2.68 |
Sidebars /wp-admin/themes.php?page=SidebarManager | 12,984 | 5.36 | 260.53 | 32.59 |
Uninstaller [IO: ▲0.15MB] [DB: ▲0.05MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- ffpf_caching_dir_144051733000cbe9381e18e94c8209bf
- widget_recent-posts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/themes.php?page=SidebarManager
- > Warning in wp-admin/includes/class-wp-filesystem-direct.php+66
fopen(wp-content/uploads/freshframework/less_scss/last_deletion.frs): failed to open stream: No such file or directory
- 2 occurences, only the last one shown
- > GET request to /wp-admin/themes.php?page=SidebarManager
- > Notice in wp-content/plugins/custom-sidebar-manager/fresh-framework/framework/extern/less/lib/Less/Parser.php+1724
Trying to access array offset on value of type null
- 10 occurences, only the last one shown
- > GET request to /wp-admin/themes.php?page=SidebarManager
- > Warning in wp-content/plugins/custom-sidebar-manager/fresh-framework/framework/query/posts/items/class.ffPostGetter.php+75
count(): Parameter must be an array or an object that implements Countable
- 2 occurences, only the last one shown
- > GET request to /wp-admin/themes.php?page=SidebarManager
- > Deprecated in wp-content/plugins/custom-sidebar-manager/fresh-framework/framework/extern/less/lib/Less/Tree/Mixin/Call.php+110
The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence
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
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/custom-sidebar-manager/fresh-framework/framework/extern/iconfonts/fonts.php
- 329× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ffBasicObject' not found in wp-content/plugins/custom-sidebar-manager/fresh-framework/framework/query/taxonomies/registrator/class.ffCustomTaxonomyManager.php:3
- > PHP Fatal error
Uncaught Error: Class 'Less_Tree' not found in wp-content/plugins/custom-sidebar-manager/fresh-framework/framework/extern/less/lib/Less/Tree/Expression.php:9
- > PHP Fatal error
Uncaught Error: Class 'ffBasicObject' not found in wp-content/plugins/custom-sidebar-manager/fresh-framework/framework/query/identificators/taxonomy/class.ffCustomTaxonomyCollection.php:2
- > PHP Fatal error
Uncaught Error: Class 'Less_Tree' not found in wp-content/plugins/custom-sidebar-manager/fresh-framework/framework/extern/less/lib/Less/Tree/Value.php:9
- > PHP Fatal error
Uncaught Error: Class 'ffModalWindowBasicObject' not found in wp-content/plugins/custom-sidebar-manager/fresh-framework/framework/adminScreens/modalWindow/class.ffModalWindow.php:3
- > PHP Fatal error
Uncaught Error: Class 'ffBasicObject' not found in wp-content/plugins/custom-sidebar-manager/fresh-framework/framework/query/users/class.ffUserRoleManager.php:3
- > PHP Fatal error
Uncaught Error: Class 'ffBasicObject' not found in wp-content/plugins/custom-sidebar-manager/fresh-framework/framework/options/dataHolders/class.ffOneSection.php:2
- > PHP Fatal error
Uncaught Error: Class 'ffFactoryAbstract' not found in wp-content/plugins/custom-sidebar-manager/fresh-framework/framework/adminScreens/factories/class.ffAdminScreenViewFactory.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function remove_action() in wp-content/plugins/custom-sidebar-manager/fresh-framework/framework/bootstrap.php:4
- > PHP Fatal error
Uncaught Error: Class 'ffBasicObject' not found in wp-content/plugins/custom-sidebar-manager/fresh-framework/framework/themes/functions/class.ffThemeViewIdentificator.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
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
2 plugin tags: sidebar manager, custom sidebars
custom-sidebar-manager/freshplugin.php 92% from 13 tests
"Custom Sidebars Manager" version 1.1.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("custom-sidebar-manager.php" instead of "freshplugin.php")
Code Analysis 97% from 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 plugin104,987 lines of code in 587 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 371 | 12,691 | 11,797 | 37,711 |
JSON | 2 | 0 | 0 | 24,734 |
JavaScript | 73 | 4,930 | 5,508 | 21,077 |
LESS | 73 | 1,789 | 1,748 | 8,217 |
CSS | 38 | 329 | 527 | 6,969 |
SVG | 24 | 0 | 0 | 5,950 |
XML | 2 | 0 | 0 | 253 |
HTML | 2 | 2 | 0 | 69 |
Markdown | 2 | 4 | 0 | 7 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Please tend to the following items
- Please reduce cyclomatic complexity of methods to less than 100 (currently 156)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 13.52 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 446.00 |
Average method complexity | 2.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 156.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 420 | |
▷ Abstract classes | 23 | 5.48% |
▷ Concrete classes | 397 | 94.52% |
▷ Final classes | 0 | 0.00% |
Methods | 4,064 | |
▷ Static methods | 74 | 1.82% |
▷ Public methods | 2,279 | 56.08% |
▷ Protected methods | 1,133 | 27.88% |
▷ Private methods | 652 | 16.04% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 371 | |
▷ Global constants | 99 | 26.68% |
▷ Class constants | 272 | 73.32% |
▷ Public constants | 272 | 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
27 PNG files occupy 0.15MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
fresh-framework/framework/adminScreens/assets/images/modal-library-size-slider-control-left@2x.png | 5.81KB | 0.10KB | ▼ 98.22% |
fresh-framework/framework/adminScreens/assets/images/repeatable_boxed_icon_plus.png | 5.81KB | 0.11KB | ▼ 98.19% |
fresh-framework/framework/extern/jstree/themes/default/32px.png | 3.05KB | 2.88KB | ▼ 5.58% |
fresh-framework/framework/extern/select2/select2x2.png | 0.83KB | 0.77KB | ▼ 6.15% |
fresh-framework/framework/extern/jquery-ui/images/ui-icons_ef8c08_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |