83% tailtarget

Code Review | Tail DMP

WordPress plugin Tail DMP scored83%from 54 tests.

About plugin

  • Plugin page: tailtarget
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.0.3
  • WordPress version: 6.3.1
  • First release: Mar 17, 2013
  • Latest release: Jan 22, 2019
  • Number of updates: 12
  • Update frequency: every 178.2 days
  • Top authors: tailtarget (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /1,887 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼5.15ms] Passed 4 tests

Analyzing server-side resources used by Tail DMP
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0636.68 ▼2.82
Dashboard /wp-admin3.36 ▲0.0646.59 ▼2.54
Posts /wp-admin/edit.php3.47 ▲0.1246.65 ▼1.67
Add New Post /wp-admin/post-new.php5.94 ▲0.0684.38 ▼13.57
Media Library /wp-admin/upload.php3.28 ▲0.0639.94 ▲6.94

Server storage [IO: ▲1.33MB] [DB: ▲0.32MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Tail DMP
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,860 ▲11413.44 ▼0.941.98 ▲0.4239.46 ▲2.32
Dashboard /wp-admin2,238 ▲525.13 ▲0.18115.10 ▲12.0568.30 ▲21.61
Posts /wp-admin/edit.php2,118 ▲292.34 ▲0.3739.43 ▲4.2235.72 ▲0.08
Add New Post /wp-admin/post-new.php1,704 ▲16224.76 ▲6.43597.57 ▼6.34158.31 ▲102.94
Media Library /wp-admin/upload.php1,417 ▲324.55 ▲0.40103.02 ▲4.8082.32 ▲41.43

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Library\\TailTarget\\add_action() in wp-content/plugins/tailtarget/includes/Scripts.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Library\\TailTarget\\add_action() in wp-content/plugins/tailtarget/includes/Translate.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Library\\TailTarget\\add_action() in wp-content/plugins/tailtarget/includes/Layout.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Library\\TailTarget\\add_action() in wp-content/plugins/tailtarget/includes/Connect.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Library\\TailTarget\\add_action() in wp-content/plugins/tailtarget/includes/Translate.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (11 tag instead of maximum 10)
The official readme.txt might help

tailtarget/tailtarget.php 92% from 13 tests

"Tail DMP" version 1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 328 characters long)

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
Success! There were no dangerous files found in this plugin608 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP810520371
JavaScript23325295
CSS116079
PO File1161863

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity4.33
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods24100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.72MB with 0.49MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
_inc/images/icon-menu.png1.63KB0.46KB▼ 71.87%
_inc/images/screenshots/screenshot-3.png154.33KB59.20KB▼ 61.64%
_inc/images/icon-tailtarget-pb.png1.88KB0.49KB▼ 74.21%
_inc/images/screenshots/screenshot-2.png156.43KB57.14KB▼ 63.47%
public/image/icon-menu.png1.63KB0.46KB▼ 71.87%