Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- The plugin did not install without errors
- > Warning in wp-content/plugins/dataclermont-bootstrap-widgets/index.php+11
require_once(wp-content/plugins/dc-bootstrap-widgets/widgets/featured_boxes.php): failed to open stream: No such file or directory
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.15ms] Passed 4 tests
An overview of server-side resources used by Dataclermont Bootstrap Widgets
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.42 ▼0.53 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.02 ▼3.41 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 51.81 ▲0.85 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.24 ▼4.10 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.68 ▼4.57 |
Server storage [IO: ▲4.76MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 60 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Dataclermont Bootstrap Widgets
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 13.20 ▼1.10 | 2.25 ▲0.64 | 42.47 ▼2.59 |
Dashboard /wp-admin | 2,221 ▲18 | 4.78 ▼1.12 | 101.75 ▼3.81 | 41.11 ▼3.41 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.05 ▲0.06 | 41.05 ▲1.02 | 36.00 ▼2.81 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 18.38 ▲0.97 | 624.33 ▼55.75 | 64.30 ▲0.29 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.20 ▼0.08 | 96.01 ▼12.39 | 42.18 ▼6.34 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
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 take a closer look at the following
- 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/dataclermont-bootstrap-widgets/widgets/navbar.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/dataclermont-bootstrap-widgets/widgets/parallax_titles.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/dataclermont-bootstrap-widgets/index.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/dataclermont-bootstrap-widgets/widgets/featured_section_inverted.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/dataclermont-bootstrap-widgets/widgets/featured_section.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/dataclermont-bootstrap-widgets/widgets/simple_slider.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/dataclermont-bootstrap-widgets/widgets/parallax_titles_pro.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/dataclermont-bootstrap-widgets/widgets/title_call_button.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/dataclermont-bootstrap-widgets/widgets/featured_boxes.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Contributors: Contributors not specified
- Screenshots: Please add descriptions for these screenshots #1, #2, #3 in dataclermont-bootstrap-widgets/assets to your readme.txt
dataclermont-bootstrap-widgets/index.php 85% from 13 tests
The main PHP file in "Dataclermont Bootstrap Widgets" ver. 0.1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Domain Path: The domain path folder does not exist ("/languages")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("dataclermont-bootstrap-widgets.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin11,160 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 5 | 0 | 15 | 8,258 |
PHP | 9 | 544 | 78 | 1,544 |
JavaScript | 8 | 214 | 127 | 1,082 |
CSS | 11 | 51 | 31 | 276 |
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.27 |
Average class complexity | 21.25 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 5.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 34 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.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 Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.23MB with 0.08MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/avatar2.png | 26.64KB | 27.41KB | 0.00% |
assets/img/bootstrap-stack.png | 50.94KB | 54.78KB | 0.00% |
assets/img/bg_sky.png | 125.82KB | 64.70KB | ▼ 48.58% |
assets/img/1920x500.png | 27.55KB | 4.24KB | ▼ 84.60% |