90% upload-tracker

Code Review | Upload Tracker

WordPress plugin Upload Tracker scored90%from 54 tests.

About plugin

  • Plugin page: upload-tracker
  • Plugin version: 1.3.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Feb 20, 2022
  • Latest release: Apr 27, 2023
  • Number of updates: 24
  • Update frequency: every 18.1 days
  • Top authors: rlf89 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /607 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.80ms] Passed 4 tests

Analyzing server-side resources used by Upload Tracker
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0443.19 ▼1.28
Dashboard /wp-admin3.34 ▼0.0047.70 ▼12.63
Posts /wp-admin/edit.php3.40 ▲0.0449.40 ▲1.80
Add New Post /wp-admin/post-new.php5.93 ▲0.0497.34 ▲5.97
Media Library /wp-admin/upload.php3.27 ▲0.0436.89 ▼3.08

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: 1 new table, 6 new options
New tables
wp_ut_linkk
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Upload Tracker
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲5214.33 ▼0.261.65 ▼0.3646.11 ▼1.52
Dashboard /wp-admin2,226 ▲465.49 ▼0.1089.17 ▼8.7145.09 ▲1.65
Posts /wp-admin/edit.php2,141 ▲442.07 ▲0.0641.04 ▲4.1937.38 ▲3.93
Add New Post /wp-admin/post-new.php1,549 ▲1823.06 ▲0.02672.43 ▲45.2850.94 ▼4.27
Media Library /wp-admin/upload.php1,434 ▲314.22 ▼0.00100.67 ▼3.5246.50 ▼0.11

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • 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 no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: track, links, files, upload, tracker...

upload-tracker/upload-tracker.php Passed 13 tests

This is the main PHP file of "Upload Tracker" version 1.3.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
41 characters long description:
Easy access your uploaded file web links.

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
Good job! No executable or dangerous file extensions detected285 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP14030134
JavaScript138198
CSS18053

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
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
Namespaces1
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%
Functions9
▷ Named functions888.89%
▷ Anonymous functions111.11%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin