Benchmarks
Plugin footprint 82% 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: ▲0.68MB] [CPU: ▲1.28ms] Passed 4 tests
This is a short check of server-side resources used by wpsection
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.16 ▲0.70 | 46.33 ▲4.15 |
Dashboard /wp-admin | 3.98 ▲0.68 | 50.70 ▲2.15 |
Posts /wp-admin/edit.php | 4.03 ▲0.67 | 52.35 ▲4.44 |
Add New Post /wp-admin/post-new.php | 6.58 ▲0.70 | 85.74 ▼5.62 |
Media Library /wp-admin/upload.php | 3.90 ▲0.67 | 43.91 ▲10.92 |
Get Pro /wp-admin/admin.php?page= | 3.87 | 36.16 |
Template Library /wp-admin/admin.php?page=wpsection-library | 3.89 | 37.14 |
wpsection /wp-admin/admin.php?page=wpsection-settings | 3.93 | 40.07 |
Server storage [IO: ▲32.02MB] [DB: ▲0.01MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
These are issues you should consider
- Filesystem usage must be lower than 25MB (currently using 32.02MB)
Filesystem: 171 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
wpsection_api_response |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for wpsection
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,960 ▲214 | 14.23 ▼0.39 | 13.98 ▲12.09 | 46.57 ▼2.84 |
Dashboard /wp-admin | 2,252 ▲60 | 5.89 ▲1.01 | 100.39 ▼22.78 | 38.42 ▼8.71 |
Posts /wp-admin/edit.php | 2,141 ▲52 | 2.23 ▲0.18 | 33.22 ▼4.29 | 30.30 ▼4.02 |
Add New Post /wp-admin/post-new.php | 1,563 ▲44 | 23.33 ▲0.23 | 655.85 ▼4.65 | 32.80 ▼18.64 |
Media Library /wp-admin/upload.php | 1,437 ▲52 | 4.26 ▲0.07 | 102.45 ▲2.50 | 42.36 ▼1.25 |
Get Pro /wp-admin/admin.php?page= | 814 | 1.85 | 25.88 | 24.79 |
Template Library /wp-admin/admin.php?page=wpsection-library | 1,294 | 1.92 | 28.81 | 37.60 |
wpsection /wp-admin/admin.php?page=wpsection-settings | 1,657 | 1.97 | 26.54 | 234.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- wpsection_api_response
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 26× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wpsection/theme/custompost/shop.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wpsection/plugin/adminboard/dash.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wpsection/plugin/adminboard/template-groups.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wpsection/plugin/adminboard/widget.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wpsection/plugin/require_once/icon.php:10
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/wpsection/theme/elementor/widget/menu.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wpsection/theme/custompost/banner.php:6
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/wpsection/theme/elementor/widget/popup.php:20
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/wpsection/theme/elementor/widget/accordion.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wpsection/plugin/adminboard/compare.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=wpsection-settings
- > Network (severe)
wp-content/plugins/wpsection/plugin/assets/widget/responsive-design - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=wpsection-settings
- > Network (severe)
wp-content/plugins/wpsection/plugin/assets/widget/login.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=wpsection-settings
- > Network (severe)
wp-content/plugins/wpsection/plugin/assets/widget/login.gif - 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
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
No plugin tags provided
wpsection/wpsection.php 92% from 13 tests
"wpsection" version 1.2.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected23,769 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 2,318 | 81 | 12,575 |
PHP | 34 | 2,165 | 871 | 8,857 |
JavaScript | 10 | 572 | 1,074 | 2,337 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 15.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 297.00 |
Average method complexity | 3.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 5 | |
Classes | 31 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 31 | 100.00% |
▷ Final classes | 2 | 6.45% |
Methods | 231 | |
▷ Static methods | 12 | 5.19% |
▷ Public methods | 187 | 80.95% |
▷ Protected methods | 19 | 8.23% |
▷ Private methods | 25 | 10.82% |
Functions | 28 | |
▷ Named functions | 23 | 82.14% |
▷ Anonymous functions | 5 | 17.86% |
Constants | 21 | |
▷ Global constants | 15 | 71.43% |
▷ Class constants | 6 | 28.57% |
▷ Public constants | 6 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
59 PNG files occupy 0.94MB with 0.43MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
plugin/assets/widget/faq.png | 10.95KB | 6.08KB | ▼ 44.46% |
plugin/assets/widget/price.png | 20.44KB | 9.86KB | ▼ 51.78% |
plugin/assets/widget/map.png | 15.24KB | 7.53KB | ▼ 50.57% |
plugin/assets/widget/stars.png | 16.32KB | 8.49KB | ▼ 47.99% |
plugin/assets/widget/shopping-cart.png | 13.34KB | 9.11KB | ▼ 31.70% |