90% speed-up-javascript-to-footer

Code Review | Speed Up - JavaScript To Footer

WordPress plugin Speed Up - JavaScript To Footer scored90%from 54 tests.

About plugin

  • Plugin page: speed-up-javascri...
  • Plugin version: 1.0.11
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.0
  • WordPress version: 6.3.1
  • First release: Nov 6, 2016
  • Latest release: Mar 5, 2023
  • Number of updates: 26
  • Update frequency: every 88.7 days
  • Top authors: nigro.simone (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

2,000+ active /39,477 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.52ms] Passed 4 tests

Server-side resources used by Speed Up - JavaScript To Footer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0150.13 ▲8.99
Dashboard /wp-admin3.31 ▲0.0149.87 ▼1.70
Posts /wp-admin/edit.php3.37 ▲0.0146.53 ▼4.74
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.29 ▼13.68
Media Library /wp-admin/upload.php3.24 ▲0.0139.85 ▲2.04

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Speed Up - JavaScript To Footer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.18 ▼1.231.85 ▼0.1241.79 ▼3.17
Dashboard /wp-admin2,206 ▲215.79 ▼0.0299.08 ▼7.6339.07 ▼3.37
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0337.15 ▼0.5635.55 ▼0.29
Add New Post /wp-admin/post-new.php1,533 ▲1323.10 ▲0.11653.56 ▲22.0555.57 ▼9.76
Media Library /wp-admin/upload.php1,388 ▼04.18 ▼0.0197.53 ▼12.8545.14 ▼0.59

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

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 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
Please take inspiration from this readme.txt

speed-up-javascript-to-footer/speed-up-javascript-to-footer.php Passed 13 tests

"Speed Up - JavaScript To Footer" version 1.0.11's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
87 characters long description:
Move all the possible JavaScript files from head to footer and improve page load times.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected40 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1164540

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods125.00%
▷ Public methods375.00%
▷ Protected methods00.00%
▷ Private methods125.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin