84% super-simple-tracking-codes

Code Review | Super Simple Tracking Codes

WordPress plugin Super Simple Tracking Codes scored84%from 54 tests.

About plugin

  • Plugin page: super-simple-trac...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.7
  • WordPress version: 6.3.1
  • First release: Dec 5, 2018
  • Latest release: Jul 5, 2021
  • Number of updates: 7
  • Update frequency: every 134.7 days
  • Top authors: solitweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /844 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.24MB] [CPU: ▼2.33ms] Passed 4 tests

This is a short check of server-side resources used by Super Simple Tracking Codes
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2148.44 ▲6.67
Dashboard /wp-admin3.57 ▲0.2249.69 ▼17.77
Posts /wp-admin/edit.php3.69 ▲0.3349.54 ▲4.15
Add New Post /wp-admin/post-new.php6.15 ▲0.2698.41 ▲1.39
Media Library /wp-admin/upload.php3.50 ▲0.2741.67 ▲2.90
Tracking codes /wp-admin/options-general.php?page=super_simple_tracking_codes3.4738.51

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Super Simple Tracking Codes
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲914.76 ▲0.201.95 ▼0.1142.03 ▼3.29
Dashboard /wp-admin2,202 ▲225.61 ▼0.0689.22 ▼11.0141.82 ▼1.23
Posts /wp-admin/edit.php2,107 ▲71.97 ▲0.0039.87 ▲0.3134.94 ▼2.00
Add New Post /wp-admin/post-new.php1,529 ▲123.43 ▲0.38664.08 ▲5.6353.63 ▼7.27
Media Library /wp-admin/upload.php1,404 ▲14.20 ▼0.01102.50 ▲0.3744.43 ▼4.21
Tracking codes /wp-admin/options-general.php?page=super_simple_tracking_codes1,6912.7264.6633.92

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
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/super-simple-tracking-codes/admin/partials/super-simple-tracking-codes-admin-display.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: google tag manager, facebook pixel, gdpr, google analytics

super-simple-tracking-codes/super-simple-tracking-codes.php Passed 13 tests

Analyzing the main PHP file in "Super Simple Tracking Codes" version 1.0.0
86 characters long description:
Just because it's super simple to add tracking codes to your website with this plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,070 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP8226480991
JavaScript316873
CSS1006

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.67
Average class complexity29.20
▷ Minimum class complexity1.00
▷ Maximum class complexity81.00
Average method complexity4.44
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods41
▷ Static methods00.00%
▷ Public methods3482.93%
▷ Protected methods00.00%
▷ Private methods717.07%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
There were not PNG files found in your plugin