94% addons-for-pixel

Code Review | Addons for Pixel

WordPress plugin Addons for Pixel scored 94% from 54 tests.

About plugin

  • Plugin page: addons-for-pixel
  • Plugin version: 1.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.5
  • WordPress version: 5.8.1
  • First release: Jul 31, 2020
  • Latest release: Aug 1, 2020
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: jlcaicedo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 296 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼134.12ms] Passed 4 tests

Analyzing server-side resources used by Addons for Pixel
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0239.58 ▲2.83
Dashboard /wp-admin3.07 ▲0.0255.51 ▼3.04
Posts /wp-admin/edit.php3.13 ▲0.0254.63 ▼2.23
Add New Post /wp-admin/post-new.php5.43 ▼0.00122.17 ▼534.02
Media Library /wp-admin/upload.php3.02 ▲0.0240.79 ▲9.93

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: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Addons for Pixel: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.88 ▲0.189.30 ▼14.0048.77 ▼6.02
Dashboard /wp-admin2,970 ▲365.90 ▼0.02159.65 ▼7.31116.05 ▼1.32
Posts /wp-admin/edit.php2,739 ▼02.70 ▼0.0086.99 ▲11.73129.56 ▲37.62
Add New Post /wp-admin/post-new.php1,615 ▼021.49 ▲0.03348.92 ▲23.68120.25 ▲2.19
Media Library /wp-admin/upload.php1,807 ▲775.03 ▲0.04172.26 ▲18.73120.38 ▼4.41

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addons-for-pixel/addons-for-pixel.php:36

User-side errors Passed 1 test

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


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: No descriptions were found for these screenshots #3, #4, #5 in addons-for-pixel/assets to your readme.txt
The official readme.txt might help

addons-for-pixel/addons-for-pixel.php Passed 13 tests

"Addons for Pixel" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
45 characters long description:
Add variables for Facebook Pixel in wordpress

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
Success! There were no dangerous files found in this plugin63 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.03
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions5100.00%
▷ Anonymous functions00.00%
▷ 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
No PNG images were found in this plugin