10% the-wp-tracker

Code Review | The Wordpress Tracker Plugin

WordPress plugin The Wordpress Tracker Plugin scored10%from 54 tests.

About plugin

  • Plugin page: the-wp-tracker
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.2
  • WordPress version: 6.3.1
  • First release: May 21, 2019
  • Latest release: May 22, 2019
  • Number of updates: 8
  • Update frequency: every 18.0 days
  • Top authors: sniderwebdev (87.5%)originalbuilders (25%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /675 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/the-wp-tracker/vendor/catfan/medoo/src/Medoo.php+292
    implode(): Passing glue string after array is deprecated. Swap the parameters

Server metrics [RAM: ▼1.48MB] [CPU: ▼52.30ms] Passed 4 tests

Server-side resources used by The Wordpress Tracker Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.52 ▼0.946.83 ▼39.11
Dashboard /wp-admin2.55 ▼0.807.91 ▼47.97
Posts /wp-admin/edit.php2.55 ▼0.819.23 ▼41.65
Add New Post /wp-admin/post-new.php2.55 ▼3.349.63 ▼80.46
Media Library /wp-admin/upload.php2.55 ▼0.697.95 ▼27.96

Server storage [IO: ▲0.76MB] [DB: ▲0.01MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 111 new files
Database: 3 new tables, 6 new options
New tables
wp_the_tracker_clients
wp_the_tracker_sessions
wp_the_tracker_tracks
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

The Wordpress Tracker Plugin: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.29 ▼1.011.68 ▼0.0939.56 ▼9.67
Dashboard /wp-admin2,219 ▲284.84 ▼0.1098.92 ▼17.4736.32 ▼6.94
Posts /wp-admin/edit.php2,105 ▲161.97 ▼0.0440.84 ▲3.8935.58 ▲2.64
Add New Post /wp-admin/post-new.php1,551 ▲1823.32 ▲0.14633.44 ▼47.0053.68 ▼0.89
Media Library /wp-admin/upload.php1,404 ▲164.21 ▼0.1094.62 ▲2.0942.19 ▲1.21

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/the-wp-tracker/vendor/catfan/medoo/src/Medoo.php+292
    implode(): Passing glue string after array is deprecated. Swap the parameters
  • Zombie tables were found after uninstall: 3 tables
    • wp_the_tracker_clients
    • wp_the_tracker_tracks
    • wp_the_tracker_sessions
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

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
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
  • 43× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Trait 'PetrKnap\\Php\\Singleton\\SingletonTrait' not found in wp-content/plugins/the-wp-tracker/core/Plugin.php on line 9
    • > PHP Fatal error
      Uncaught Error: Interface 'Ramsey\\Uuid\\Converter\umberConverterInterface' not found in wp-content/plugins/the-wp-tracker/vendor/ramsey/uuid/src/Converter/Number/DegradedNumberConverter.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'WpTracker\\Framework\\Database\\Model' not found in wp-content/plugins/the-wp-tracker/core/App/Models/Track.php:4
    • > PHP Fatal error
      Uncaught Error: Interface 'Ramsey\\Uuid\\Provider\\TimeProviderInterface' not found in wp-content/plugins/the-wp-tracker/vendor/ramsey/uuid/src/Provider/Time/SystemTimeProvider.php:22
    • > PHP Fatal error
      Uncaught Error: Interface 'Ramsey\\Uuid\\Generator\\RandomGeneratorInterface' not found in wp-content/plugins/the-wp-tracker/vendor/ramsey/uuid/src/Generator/CombGenerator.php:25
    • > PHP Fatal error
      Uncaught Error: Interface 'Ramsey\\Uuid\\Generator\\RandomGeneratorInterface' not found in wp-content/plugins/the-wp-tracker/vendor/ramsey/uuid/src/Generator/SodiumRandomGenerator.php:24
    • > PHP Fatal error
      Uncaught Error: Interface 'Ramsey\\Uuid\\UuidInterface' not found in wp-content/plugins/the-wp-tracker/vendor/ramsey/uuid/src/Uuid.php:37
    • > PHP Fatal error
      Uncaught Error: Interface 'Ramsey\\Uuid\\Generator\\TimeGeneratorInterface' not found in wp-content/plugins/the-wp-tracker/vendor/ramsey/uuid/src/Generator/PeclUuidTimeGenerator.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'Ramsey\\Uuid\\Codec\\StringCodec' not found in wp-content/plugins/the-wp-tracker/vendor/ramsey/uuid/src/Codec/TimestampLastCombCodec.php:20
    • > PHP Fatal error
      Uncaught Error: Interface 'Ramsey\\Uuid\\Generator\\TimeGeneratorInterface' not found in wp-content/plugins/the-wp-tracker/vendor/ramsey/uuid/src/Generator/DefaultTimeGenerator.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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
These attributes need your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === the-wp-tracker === )
  • Screenshots: Add a description for screenshot #1 in the-wp-tracker/assets to your readme.txt
Please take inspiration from this readme.txt

the-wp-tracker/index.php 92% from 13 tests

"The Wordpress Tracker Plugin" version 1.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("the-wp-tracker.php" instead of "index.php")

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
No dangerous file extensions were detected5,312 lines of code in 98 files:
LanguageFilesBlank linesComment linesLines of code
PHP779682,6843,901
Markdown93270649
JSON700644
CSS18991
XML10019
JavaScript20175
Bourne Shell1203

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity7.63
▷ Minimum class complexity1.00
▷ Maximum class complexity275.00
Average method complexity2.63
▷ Minimum method complexity1.00
▷ Maximum method complexity53.00
Code structure
Namespaces23
Interfaces11
Traits1
Classes56
▷ Abstract classes00.00%
▷ Concrete classes56100.00%
▷ Final classes11.79%
Methods319
▷ Static methods4213.17%
▷ Public methods26583.07%
▷ Protected methods3510.97%
▷ Private methods195.96%
Functions24
▷ Named functions1458.33%
▷ Anonymous functions1041.67%
Constants23
▷ Global constants730.43%
▷ Class constants1669.57%
▷ Public constants16100.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
PNG images were not found in this plugin