84% add-to-all

Code Review | WebberZone Snippetz - Header, Body and Footer manager

WordPress plugin WebberZone Snippetz - Header, Body and Footer manager scored 84% from 54 tests.

About plugin

  • Plugin page: add-to-all
  • Plugin version: 2.0.1
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3
  • WordPress version: 6.3.1
  • First release: Apr 1, 2012
  • Latest release: Jul 26, 2023
  • Number of updates: 39
  • Update frequency: every 106.2 days
  • Top authors: Ajay (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

3,000+ active / 71,699 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.92MB] [CPU: ▲4.30ms] Passed 4 tests

An overview of server-side resources used by WebberZone Snippetz - Header, Body and Footer manager
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.13 ▲0.6746.57 ▲6.32
Dashboard /wp-admin4.30 ▲1.0052.86 ▲5.28
Posts /wp-admin/edit.php4.35 ▲0.9950.73 ▲0.35
Add New Post /wp-admin/post-new.php6.89 ▲1.0098.03 ▲5.26
Media Library /wp-admin/upload.php4.22 ▲0.9945.40 ▲12.54
All Snippetz /wp-admin/edit.php?post_type=ata_snippets4.2741.25
Settings /wp-admin/edit.php?post_type=ata_snippets&page=ata_options_page4.2645.33
Snippet Category /wp-admin/edit-tags.php?taxonomy=ata_snippets_category&post_type=ata_snippets4.2240.18
Add New Snippet /wp-admin/post-new.php?post_type=ata_snippets4.3358.01

Server storage [IO: ▲0.25MB] [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: 41 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
ata_settings
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by WebberZone Snippetz - Header, Body and Footer manager
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲10313.61 ▼1.041.57 ▼0.1339.57 ▼7.24
Dashboard /wp-admin2,241 ▲564.87 ▼1.0099.63 ▼3.1936.32 ▼5.18
Posts /wp-admin/edit.php2,103 ▲142.05 ▲0.0236.99 ▼1.0632.87 ▲2.17
Add New Post /wp-admin/post-new.php1,571 ▲5723.31 ▲5.62607.71 ▼9.1269.10 ▲14.07
Media Library /wp-admin/upload.php1,414 ▲264.19 ▼0.0797.83 ▼3.0041.23 ▼1.29
All Snippetz /wp-admin/edit.php?post_type=ata_snippets1,1401.9330.9528.78
Settings /wp-admin/edit.php?post_type=ata_snippets&page=ata_options_page2,6676.87161.65132.91
Snippet Category /wp-admin/edit-tags.php?taxonomy=ata_snippets_category&post_type=ata_snippets1,2942.1326.3026.72
Add New Snippet /wp-admin/post-new.php?post_type=ata_snippets2,2706.87147.9846.25

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/add-to-all/includes/admin/settings/sidebar.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: Add an image for screenshot #8 (The display options meta box where you can choose where and when to display your snippets)
You can look at the official readme.txt

add-to-all/add-to-all.php Passed 13 tests

The entry point to "WebberZone Snippetz - Header, Body and Footer manager" version 2.0.1 is a PHP file that has certain tags in its header comment area
97 characters long description:
A simple yet powerful plugin that allows you to insert any code snippet or script into WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin4,008 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
PHP217832,0313,154
PO File1205267543
JavaScript86018273
Markdown122038

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity21.27
▷ Minimum class complexity1.00
▷ Maximum class complexity67.00
Average method complexity2.73
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes16.67%
Methods156
▷ Static methods3321.15%
▷ Public methods15498.72%
▷ Protected methods00.00%
▷ Private methods21.28%
Functions12
▷ Named functions1191.67%
▷ Anonymous functions18.33%
Constants7
▷ Global constants571.43%
▷ Class constants228.57%
▷ Public constants2100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/admin/images/fb.png1.51KB1.59KB0.00%