90% tracking-code-for-twitter-pixel

Code Review | Tracking Code for Twitter Pixel

WordPress plugin Tracking Code for Twitter Pixel scored90%from 54 tests.

About plugin

  • Plugin page: tracking-code-for...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.6.0
  • WordPress version: 6.3.1
  • First release: Dec 1, 2020
  • Latest release: Dec 1, 2020
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: claytoncollie (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /561 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.02MB] [CPU: ▼1.98ms] Passed 4 tests

Server-side resources used by Tracking Code for Twitter Pixel
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.44 ▼0.63
Dashboard /wp-admin3.32 ▲0.0243.65 ▼10.09
Posts /wp-admin/edit.php3.37 ▲0.0246.31 ▼0.53
Add New Post /wp-admin/post-new.php5.90 ▲0.0298.53 ▲3.34
Media Library /wp-admin/upload.php3.24 ▲0.0235.36 ▲3.38

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Tracking Code for Twitter Pixel: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.51 ▼0.861.78 ▼0.3644.49 ▼2.17
Dashboard /wp-admin2,209 ▲185.85 ▲0.99103.82 ▼12.2938.04 ▼7.14
Posts /wp-admin/edit.php2,089 ▼32.06 ▲0.0134.07 ▼3.1633.47 ▲0.06
Add New Post /wp-admin/post-new.php1,514 ▼1917.47 ▼5.88596.83 ▼80.6953.08 ▼6.47
Media Library /wp-admin/upload.php1,388 ▼04.21 ▲0.0295.32 ▼7.3242.71 ▼0.46

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: google, tracking snippet, tag, analytics, universal analytics...

tracking-code-for-twitter-pixel/tracking-code-for-twitter-pixel.php Passed 13 tests

The main file in "Tracking Code for Twitter Pixel" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
62 characters long description:
Simple, lightweight solution for inserting your Twitter Pixel.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected89 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3115274
Markdown212015

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin