90% add-custom-codes

Code Review | Add Custom Codes - Insert Header, Footer, Custom Code Snippets, Custom CSS, Javascript

WordPress plugin Add Custom Codes - Insert Header, Footer, Custom Code Snippets, Custom CSS, Javascript scored90%from 54 tests.

About plugin

  • Plugin page: add-custom-codes
  • Plugin version: 4.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.3.2
  • WordPress version: 6.3.1
  • First release: Mar 11, 2017
  • Latest release: Nov 5, 2023
  • Number of updates: 53
  • Update frequency: every 45.7 days
  • Top authors: SaifuMak (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

900+ active /6,623 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.64MB] [CPU: ▼18.02ms] Passed 4 tests

An overview of server-side resources used by Add Custom Codes - Insert Header, Footer, Custom Code Snippets, Custom CSS, Javascript
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0435.18 ▼3.92
Dashboard /wp-admin3.35 ▲0.0546.38 ▼4.72
Posts /wp-admin/edit.php3.40 ▲0.0548.56 ▲2.71
Add New Post /wp-admin/post-new.php3.18 ▼2.7035.98 ▼59.91
Media Library /wp-admin/upload.php3.27 ▲0.0531.47 ▼3.54
Add Custom Codes /wp-admin/themes.php?page=add-custom-codes3.4032.48

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Add Custom Codes - Insert Header, Footer, Custom Code Snippets, Custom CSS, Javascript
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲4314.68 ▲0.342.15 ▲0.1040.84 ▼3.49
Dashboard /wp-admin2,213 ▲336.57 ▲0.84118.98 ▲30.8939.96 ▼0.08
Posts /wp-admin/edit.php2,117 ▲173.35 ▲1.3484.01 ▲43.2637.53 ▼2.06
Add New Post /wp-admin/post-new.php6,485 ▲4,95622.07 ▼1.21950.51 ▲235.0576.14 ▲20.01
Media Library /wp-admin/upload.php1,415 ▲215.20 ▲0.98128.45 ▲26.3141.78 ▼4.01
Add Custom Codes /wp-admin/themes.php?page=add-custom-codes1,1513.2277.7348.38

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • 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 no errors were found, 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
The SRP test was a success

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: javascript, google analytics, css, custom css, wordpress custom css...

add-custom-codes/add-custom-codes.php 92% from 13 tests

This is the main PHP file of "Add Custom Codes - Insert Header, Footer, Custom Code Snippets, Custom CSS, Javascript" version 4.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 234 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin486 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP37971326
CSS113142
JavaScript17018

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
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%
Functions16
▷ Named functions16100.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 were not PNG files found in your plugin