89% add-to-all

Code Review | Add to All

WordPress plugin Add to All scored 89% from 54 tests.

About plugin

  • Plugin page: add-to-all
  • Plugin version: 1.7.3
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.9
  • WordPress version: 5.8.1
  • First release: Apr 1, 2012
  • Latest release: Jan 2, 2022
  • Number of updates: 32
  • Update frequency: every 111.6 days
  • Top authors: Ajay (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

4,000+ active / 58,978 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.23MB] [CPU: ▼180.20ms] Passed 4 tests

A check of server-side resources used by Add to All
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.99 ▲0.1537.12 ▲3.58
Dashboard /wp-admin3.37 ▲0.3139.91 ▲0.16
Posts /wp-admin/edit.php3.41 ▲0.3035.65 ▲2.41
Add New Post /wp-admin/post-new.php5.67 ▲0.2377.27 ▼725.70
Media Library /wp-admin/upload.php3.25 ▲0.2425.58 ▲2.35
Snippet Category /wp-admin/edit-tags.php?taxonomy=ata_snippets_category&post_type=ata_snippets3.2428.97
Add to All /wp-admin/options-general.php?page=ata_options_page3.3330.15
Add New Snippet /wp-admin/post-new.php?post_type=ata_snippets3.4143.45
All Snippets /wp-admin/edit.php?post_type=ata_snippets3.3525.06

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 45 new files
Database: no new tables, 1 new option
New WordPress options
ata_settings

Browser metrics Passed 4 tests

Checking browser requirements for Add to All
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,717 ▲11615.70 ▼0.288.65 ▲3.4177.59 ▼3.75
Dashboard /wp-admin2,974 ▲756.13 ▼0.05120.47 ▼7.73169.62 ▼5.33
Posts /wp-admin/edit.php2,789 ▲493.23 ▲0.0062.87 ▼2.07136.54 ▲2.45
Add New Post /wp-admin/post-new.php3,764 ▼4318.99 ▲0.55415.82 ▼29.40158.78 ▲0.14
Media Library /wp-admin/upload.php1,796 ▲445.50 ▲0.05141.56 ▼6.06183.68 ▼2.80
Snippet Category /wp-admin/edit-tags.php?taxonomy=ata_snippets_category&post_type=ata_snippets1,8022.7953.24117.19
Add to All /wp-admin/options-general.php?page=ata_options_page3,2718.20174.53204.83
Add New Snippet /wp-admin/post-new.php?post_type=ata_snippets2,9878.15168.70187.40
All Snippets /wp-admin/edit.php?post_type=ata_snippets1,4922.8459.50112.45

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/add-to-all/add-to-all.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/add-to-all/includes/admin/sidebar.php:15

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: header, content, google analytics, snippets, adsense...

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

The principal PHP file in "Add to All" v. 1.7.3 is loaded by WordPress automatically on each request
113 characters long description:
A powerful plugin that will allow you to add custom code or CSS to your header, footer, sidebar, content or feed.

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
There were no executable files found in this plugin3,523 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
PHP238401,8632,743
PO File1182237468
JavaScript86018273
Markdown124039

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity27.00
▷ Minimum class complexity2.00
▷ Maximum class complexity89.00
Average method complexity2.47
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods106
▷ Static methods98.49%
▷ Public methods10599.06%
▷ Protected methods10.94%
▷ Private methods00.00%
Functions59
▷ Named functions59100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants480.00%
▷ Class constants120.00%
▷ Public constants1100.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
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%