84% dream-agility-tracking-pixel

Code Review | Dream Agility - Tracking Pixel

WordPress plugin Dream Agility - Tracking Pixel scored84%from 54 tests.

About plugin

  • Plugin page: dream-agility-tra...
  • Plugin version: 1.0.7
  • PHP compatiblity: 5.6.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3.2-6.3
  • WordPress version: 6.3.1
  • First release: Feb 13, 2020
  • Latest release: Aug 22, 2023
  • Number of updates: 39
  • Update frequency: every 33.0 days
  • Top authors: dreamagility (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /811 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.92ms] Passed 4 tests

Server-side resources used by Dream Agility - Tracking Pixel
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0639.09 ▲3.27
Dashboard /wp-admin3.36 ▲0.0148.86 ▼12.66
Posts /wp-admin/edit.php3.41 ▲0.0546.09 ▼2.32
Add New Post /wp-admin/post-new.php5.94 ▲0.0583.41 ▼14.18
Media Library /wp-admin/upload.php3.29 ▲0.0534.08 ▲1.48

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
widget_dream_agility_tracking_pixel
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Dream Agility - Tracking Pixel
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7214.51 ▲0.1820.44 ▲18.9343.91 ▲1.90
Dashboard /wp-admin2,198 ▲245.63 ▲0.0097.54 ▲11.1643.59 ▼0.97
Posts /wp-admin/edit.php2,097 ▼62.01 ▼0.0134.96 ▲0.7031.86 ▼4.92
Add New Post /wp-admin/post-new.php1,526 ▼023.09 ▼0.03651.66 ▲28.9456.88 ▲1.72
Media Library /wp-admin/upload.php1,400 ▲34.18 ▼0.2094.29 ▼6.2444.75 ▼0.09

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dream-agility-tracking-pixel/includes/dreamagility-tracking-pixel-scripts.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/dream-agility-tracking-pixel/includes/dreamagility-tracking-pixel-class.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Dream Agility - Tracking Pixel Widget Settings) image required
You can take inspiration from this readme.txt

dream-agility-tracking-pixel/dream-agility-tracking-pixel.php Passed 13 tests

The entry point to "Dream Agility - Tracking Pixel" version 1.0.7 is a PHP file that has certain tags in its header comment area
81 characters long description:
Implement and Customise the Dream Agility Tracking Pixel for your WordPress Site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin561 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3568376
PHP33847185

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity31.00
▷ Minimum class complexity31.00
▷ Maximum class complexity31.00
Average method complexity8.50
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png13.83KB4.95KB▼ 64.18%