84% addons-for-pixel

Code Review | Addons for Pixel

WordPress plugin Addons for Pixel scored84%from 54 tests.

About plugin

  • Plugin page: addons-for-pixel
  • Plugin version: 1.6
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.2
  • WordPress version: 6.3.1
  • First release: Jul 31, 2020
  • Latest release: Oct 4, 2022
  • Number of updates: 10
  • Update frequency: every 79.5 days
  • Top authors: jlcaicedo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /733 total downloads

Benchmarks

Plugin footprint 83% from 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: ▼2.37ms] 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 /3.48 ▲0.0141.69 ▲0.37
Dashboard /wp-admin3.32 ▲0.0246.50 ▲0.47
Posts /wp-admin/edit.php3.38 ▲0.0146.68 ▲3.89
Add New Post /wp-admin/post-new.php5.91 ▲0.0279.29 ▼11.44
Media Library /wp-admin/upload.php3.25 ▲0.0134.85 ▲1.14

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, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts

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 /2,789 ▲314.39 ▼0.381.50 ▼0.2338.48 ▼3.09
Dashboard /wp-admin2,195 ▲155.57 ▼0.1295.20 ▲8.8142.43 ▼1.89
Posts /wp-admin/edit.php2,097 ▼32.01 ▼0.0234.64 ▼2.0934.09 ▼3.11
Add New Post /wp-admin/post-new.php1,535 ▲718.19 ▼4.88631.67 ▼53.2966.47 ▲11.61
Media Library /wp-admin/upload.php1,400 ▼34.19 ▼0.0696.73 ▼1.6540.35 ▼2.29

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

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

Optimizations

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.6'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
PHP152463

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
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%
Functions5
▷ Named functions5100.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
No PNG images were found in this plugin