Benchmarks
Plugin footprint 83% 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.24MB] [CPU: ▼7.88ms] Passed 4 tests
A check of server-side resources used by Scroll Triggered Box
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 43.61 ▲2.70 |
Dashboard /wp-admin | 3.59 ▲0.25 | 48.19 ▼20.82 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 53.22 ▲3.24 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.31 | 99.75 ▼6.77 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 35.81 ▼6.61 |
Add New Scrollbox /wp-admin/post-new.php?post_type=dgd_scrollbox | 3.67 | 45.85 |
All Scrollboxes /wp-admin/edit.php?post_type=dgd_scrollbox | 3.56 | 38.15 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 7 new options
New WordPress options |
---|
stb_version |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Scroll Triggered Box
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,987 ▲241 | 14.26 ▼0.49 | 6.94 ▲5.14 | 42.65 ▼2.50 |
Dashboard /wp-admin | 2,264 ▲76 | 5.44 ▲0.56 | 109.29 ▼8.97 | 42.11 ▼1.50 |
Posts /wp-admin/edit.php | 2,164 ▲75 | 2.37 ▲0.38 | 42.46 ▲5.64 | 41.64 ▲9.94 |
Add New Post /wp-admin/post-new.php | 1,568 ▲35 | 23.64 ▲0.57 | 680.90 ▼78.59 | 36.25 ▼26.10 |
Media Library /wp-admin/upload.php | 1,455 ▲67 | 4.67 ▲0.49 | 108.36 ▼8.64 | 42.35 ▼9.69 |
Add New Scrollbox /wp-admin/post-new.php?post_type=dgd_scrollbox | 4,781 | 8.40 | 243.64 | 165.28 |
All Scrollboxes /wp-admin/edit.php?post_type=dgd_scrollbox | 1,125 | 2.57 | 39.84 | 27.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- stb_version
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=dgd_scrollbox
- > Notice in wp-includes/general-template.php+5153
Array to string conversion
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/dreamgrow-scroll-triggered-box/dgd-scrollbox-admin.class.php:8
- > PHP Fatal error
Uncaught Error: Class 'Walker_page' not found in wp-content/plugins/dreamgrow-scroll-triggered-box/dgd-page-selector-walker.class.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/dreamgrow-scroll-triggered-box/dgd-scrollbox.php:17
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- > GET request to /wp-admin/post-new.php?post_type=dgd_scrollbox
- > Network (severe)
https://www.dreamgrow.com/wp-content/plugins/lazy-load/images/1x1.trans.gif - Failed to load resource: the server responded with a status of 404 ()
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: blur, subscription pop-up, page overlay, call to action, lightbox...
dreamgrow-scroll-triggered-box/dgd-scrollbox.php 92% from 13 tests
"Scroll Triggered Box" version 2.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("dreamgrow-scroll-triggered-box.php" instead of "dgd-scrollbox.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin3,074 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 218 | 123 | 1,460 |
JavaScript | 4 | 134 | 87 | 1,014 |
CSS | 12 | 162 | 20 | 589 |
XML | 1 | 0 | 0 | 6 |
SVG | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 43.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 4.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 11 | 24.44% |
▷ Public methods | 38 | 84.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 15.56% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
11 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
themes/default/bullet.png | 1.02KB | 0.25KB | ▼ 75.88% |
themes/grass_green/bullet.png | 0.58KB | 0.49KB | ▼ 15.29% |
img/close.png | 1.28KB | 1.35KB | 0.00% |
templates/clean_white/bullet.png | 0.69KB | 0.68KB | ▼ 0.85% |
templates/default/bullet.png | 1.02KB | 0.25KB | ▼ 75.88% |