90% insert-script-in-headers-and-footers

Code Review | Insert Script In Headers And Footers

WordPress plugin Insert Script In Headers And Footers scored90%from 54 tests.

About plugin

  • Plugin page: insert-script-in-...
  • Plugin version: 2.3
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Aug 24, 2018
  • Latest release: Jun 12, 2023
  • Number of updates: 36
  • Update frequency: every 48.7 days
  • Top authors: rajkakadiya (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20,000+ active /141,875 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.03MB] [CPU: ▼2.51ms] Passed 4 tests

Server-side resources used by Insert Script In Headers And Footers
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0343.96 ▲2.05
Dashboard /wp-admin3.34 ▲0.0343.74 ▼2.66
Posts /wp-admin/edit.php3.39 ▲0.0360.86 ▲12.47
Add New Post /wp-admin/post-new.php5.92 ▲0.0389.00 ▼14.92
Media Library /wp-admin/upload.php3.26 ▲0.0338.32 ▲5.48
Insert Script In Headers And Footers /wp-admin/options-general.php?page=insert-script-in-header-and-footer-option3.2742.22

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Insert Script In Headers And Footers: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6014.48 ▲0.121.73 ▲0.0141.25 ▲1.93
Dashboard /wp-admin2,206 ▲215.83 ▼0.02102.66 ▼7.2338.09 ▼5.71
Posts /wp-admin/edit.php2,101 ▲122.05 ▲0.0242.82 ▲2.2736.96 ▼0.54
Add New Post /wp-admin/post-new.php1,519 ▼117.53 ▼5.57649.16 ▲0.8651.60 ▼0.31
Media Library /wp-admin/upload.php1,388 ▲34.21 ▲0.0297.45 ▼12.0143.10 ▼0.66
Insert Script In Headers And Footers /wp-admin/options-general.php?page=insert-script-in-header-and-footer-option9282.1724.1757.69

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

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 | 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
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
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: insert html, add google analytics code, insert custom style, insert facebook pixel code, insert javascript

insert-script-in-headers-and-footers/insert-script-in-headers-and-footers.php Passed 13 tests

"Insert Script In Headers And Footers" version 2.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
48 characters long description:
A plugin to insert script in headers and footers

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
Success! There were no dangerous files found in this plugin310 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3469195
CSS1160115

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
There were not PNG files found in your plugin