89% assets-to-footer

Code Review | Assets to footer

WordPress plugin Assets to footer scored89%from 54 tests.

About plugin

  • Plugin page: assets-to-footer
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.8
  • WordPress version: 6.3.1
  • First release: Apr 6, 2017
  • Latest release: Aug 20, 2021
  • Number of updates: 12
  • Update frequency: every 133.1 days
  • Top authors: sebastian.pisula (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,829 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼9.00ms] Passed 4 tests

A check of server-side resources used by Assets to footer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1244.93 ▲4.21
Dashboard /wp-admin3.36 ▲0.0250.14 ▼12.99
Posts /wp-admin/edit.php3.48 ▲0.1250.37 ▲0.55
Add New Post /wp-admin/post-new.php5.95 ▲0.0585.47 ▼22.19
Media Library /wp-admin/upload.php3.29 ▲0.0534.43 ▼1.35

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Assets to footer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,016 ▲25513.47 ▼0.829.02 ▲7.4143.91 ▲4.08
Dashboard /wp-admin2,195 ▲275.59 ▼0.0188.26 ▼3.3841.32 ▼1.14
Posts /wp-admin/edit.php2,100 ▼31.98 ▲0.0135.40 ▼5.6132.72 ▼5.92
Add New Post /wp-admin/post-new.php1,526 ▼023.71 ▲0.58671.14 ▼8.4461.67 ▲10.15
Media Library /wp-admin/upload.php1,403 ▲34.22 ▲0.0799.57 ▲0.2643.65 ▼0.82

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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 SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === assets-to-footer === )
  • Screenshots: No descriptions were found for these screenshots #1, #2 in assets-to-footer/assets to your readme.txt
The official readme.txt is a good inspiration

assets-to-footer/assets-to-footer.php 92% from 13 tests

The principal PHP file in "Assets to footer" v. 1.0.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected256 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP27481254
CSS1001
JavaScript1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity32.00
▷ Minimum class complexity32.00
▷ Maximum class complexity32.00
Average method complexity2.72
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods1055.56%
▷ Protected methods00.00%
▷ Private methods844.44%
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
PNG images were not found in this plugin