Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼3.52ms] Passed 4 tests
Server-side resources used by Scripts To Footer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 36.96 ▼3.49 |
Dashboard /wp-admin | 3.45 ▲0.15 | 49.05 ▲0.56 |
Posts /wp-admin/edit.php | 3.56 ▲0.21 | 46.27 ▼2.96 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 86.31 ▼7.66 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 36.73 ▲0.05 |
Scripts to Footer /wp-admin/options-general.php?page=scripts-to-footer | 3.34 | 33.37 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Scripts To Footer
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.18 ▼1.17 | 1.79 ▼0.19 | 43.45 ▼6.87 |
Dashboard /wp-admin | 2,207 ▲19 | 4.84 ▼0.03 | 102.08 ▼1.51 | 37.28 ▼2.21 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 1.99 ▼0.03 | 35.49 ▼1.71 | 31.45 ▲0.63 |
Add New Post /wp-admin/post-new.php | 6,467 ▲4,925 | 20.30 ▲2.27 | 875.47 ▲235.59 | 68.25 ▼19.38 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.23 ▲0.05 | 99.77 ▼5.39 | 42.22 ▼4.66 |
Scripts to Footer /wp-admin/options-general.php?page=scripts-to-footer | 862 | 2.06 | 25.81 | 42.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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
The following issues need your attention
- 7× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/scripts-to-footerphp/includes/class-stf-admin-settings.php
- > /wp-content/plugins/scripts-to-footerphp/includes/class-stf-functions.php
- > /wp-content/plugins/scripts-to-footerphp/includes/class-stf-admin.php
- > /wp-content/plugins/scripts-to-footerphp/includes/class-scripts-to-footer.php
- > /wp-content/plugins/scripts-to-footerphp/scripts-to-footer.php
- > /wp-content/plugins/scripts-to-footerphp/uninstall.php
- > /wp-content/plugins/scripts-to-footerphp/includes/class-stf-public.php
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 issues were found
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
5 plugin tags: javascript, performance, speed, footer, head
scripts-to-footerphp/scripts-to-footer.php 92% from 13 tests
The principal PHP file in "Scripts To Footer" v. 0.7.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("scripts-to-footerphp.php" instead of "scripts-to-footer.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin809 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 337 | 940 | 736 |
Markdown | 2 | 28 | 0 | 73 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 12.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 2.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 58 | |
▷ Static methods | 5 | 8.62% |
▷ Public methods | 50 | 86.21% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 13.79% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
No PNG files were detected