84% footer-javascript

Code Review | JavaScript to Footer

WordPress plugin JavaScript to Footer scored84%from 54 tests.

About plugin

  • Plugin page: footer-javascript
  • Plugin version: 0.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.3-4.2
  • WordPress version: 6.3.1
  • First release: Dec 2, 2008
  • Latest release: Dec 22, 2014
  • Number of updates: 9
  • Update frequency: every 245.7 days
  • Top authors: freediver (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

1,000+ active /78,548 total downloads

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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.29ms] Passed 4 tests

This is a short check of server-side resources used by JavaScript to Footer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.88 ▼2.98
Dashboard /wp-admin3.31 ▲0.0053.10 ▲3.67
Posts /wp-admin/edit.php3.36 ▲0.0048.21 ▼3.60
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.19 ▼9.87
Media Library /wp-admin/upload.php3.23 ▲0.0038.90 ▼0.72

Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for JavaScript to Footer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,784 ▲2314.72 ▲0.161.88 ▲0.0743.02 ▼2.23
Dashboard /wp-admin2,198 ▲215.62 ▲0.0597.77 ▲7.1641.36 ▼0.21
Posts /wp-admin/edit.php2,097 ▼32.03 ▲0.0535.78 ▼3.1237.44 ▲2.10
Add New Post /wp-admin/post-new.php1,526 ▼223.50 ▲0.60679.40 ▲53.7149.49 ▼5.17
Media Library /wp-admin/upload.php1,400 ▲34.14 ▼0.05109.83 ▲9.2947.89 ▼0.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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_action() in wp-content/plugins/footer-javascript/footer-javascript.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: javascript, footer, optimization

footer-javascript/footer-javascript.php Passed 13 tests

The main file in "JavaScript to Footer" v. 0.4.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
94 characters long description:
This plugin automatically moves JavaScript code to page footer, speeding up page loading time.

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 detected8 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1298

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin