Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.23MB] [CPU: ▼17.07ms] Passed 4 tests
Server-side resources used by WP Sitebuilder
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.94 ▲0.48 | 38.67 ▼5.13 |
Dashboard /wp-admin | 3.79 ▲0.48 | 47.36 ▲0.75 |
Posts /wp-admin/edit.php | 3.84 ▲0.48 | 49.07 ▲1.73 |
Add New Post /wp-admin/post-new.php | 3.57 ▼2.32 | 41.21 ▼65.61 |
Media Library /wp-admin/upload.php | 3.65 ▲0.42 | 38.61 ▲4.45 |
WP Sitebuilder /wp-admin/admin.php?page=wpsb-menu | 3.63 | 35.42 |
Role Manager /wp-admin/admin.php?page=sbrm_role_mananger | 3.63 | 35.78 |
Get Mote Features /wp-admin/admin.php?page=wpsb_add_ons | 3.61 | 34.81 |
Server storage [IO: ▲2.36MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 98 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Sitebuilder
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲102 | 13.24 ▼1.06 | 1.58 ▼0.14 | 39.39 ▼0.79 |
Dashboard /wp-admin | 2,260 ▲75 | 4.86 ▼0.99 | 112.86 ▲7.08 | 44.85 ▲0.88 |
Posts /wp-admin/edit.php | 2,140 ▲51 | 2.02 ▲0.02 | 41.38 ▼1.10 | 36.83 ▲0.99 |
Add New Post /wp-admin/post-new.php | 9,378 ▲7,864 | 23.31 ▲5.74 | 888.02 ▲240.07 | 39.17 ▼10.72 |
Media Library /wp-admin/upload.php | 1,439 ▲57 | 4.22 ▼0.03 | 97.90 ▼2.39 | 43.69 ▲1.68 |
WP Sitebuilder /wp-admin/admin.php?page=wpsb-menu | 1,562 | 2.54 | 41.94 | 29.92 |
Role Manager /wp-admin/admin.php?page=sbrm_role_mananger | 2,556 | 3.20 | 51.74 | 41.89 |
Get Mote Features /wp-admin/admin.php?page=wpsb_add_ons | 795 | 2.05 | 27.73 | 26.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
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
Good news, no errors were detected
SRP 0% 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
The following issues need your attention
- 8× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-sitebuilder/widgets/card.widget.php
- > /wp-content/plugins/wp-sitebuilder/widgets/notice.widget.php
- > /wp-content/plugins/wp-sitebuilder/widgets/tabs.widget.php
- > /wp-content/plugins/wp-sitebuilder/widgets/modal.widget.php
- > /wp-content/plugins/wp-sitebuilder/widgets/accordion.widget.php
- > /wp-content/plugins/wp-sitebuilder/widgets/alert.widget.php
- > /wp-content/plugins/wp-sitebuilder/widgets/chip.widget.php
- > /wp-content/plugins/wp-sitebuilder/widgets/vue.widgets.php
- 19× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/wp-sitebuilder/includes/admin/preview.php:9
- > PHP Warning
Use of undefined constant WPSB_ROOT - assumed 'WPSB_ROOT' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-sitebuilder/modules/role-manager/admin/role-manager-panel.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function the_ID() in wp-content/plugins/wp-sitebuilder/templates/post/content.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-sitebuilder/includes/content.php:6
- > PHP Warning
include_once(WPSB_ROOT/components/element-components.php): failed to open stream: No such file or directory in wp-content/plugins/wp-sitebuilder/modules/role-manager/admin/role-manager-panel.php on line 1
- > PHP Warning
include_once(WPSB_ROOT/components/element-components.php): failed to open stream: No such file or directory in wp-content/plugins/wp-sitebuilder/includes/admin/wpsb-settings-panel.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-sitebuilder/add-on.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-sitebuilder/components/element-components.php:64
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-sitebuilder/includes/ajax-actions.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-sitebuilder/templates/post/content-none.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: You are using too many tags: 103 tag instead of maximum 10
- Donate link: Please fix this invalid URI: ""
wp-sitebuilder/wp-sitebuilder.php 92% from 13 tests
"WP Sitebuilder" version 0.0.2.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin26,138 lines of code in 71 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 14 | 31 | 61 | 7,797 |
LESS | 5 | 16 | 15 | 7,082 |
JavaScript | 9 | 1,164 | 3,195 | 6,893 |
PHP | 40 | 382 | 288 | 3,368 |
SVG | 2 | 0 | 0 | 973 |
Markdown | 1 | 12 | 0 | 25 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 7.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 21 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 77 | |
▷ Static methods | 8 | 10.39% |
▷ Public methods | 76 | 98.70% |
▷ Protected methods | 1 | 1.30% |
▷ Private methods | 0 | 0.00% |
Functions | 33 | |
▷ Named functions | 16 | 48.48% |
▷ Anonymous functions | 17 | 51.52% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/wpsb-two_third.png | 0.20KB | 0.13KB | ▼ 37.80% |
assets/images/wpsb-five_sixth.png | 0.21KB | 0.13KB | ▼ 35.98% |
assets/images/wpsb-half.png | 0.20KB | 0.13KB | ▼ 35.64% |
assets/images/wpsb-third.png | 0.21KB | 0.13KB | ▼ 39.53% |
assets/images/wpsb-fifth.png | 0.20KB | 0.13KB | ▼ 37.50% |