77% simple-url-tracker

Code Review | Simple URL Tracker - By Projekt15

WordPress plugin Simple URL Tracker - By Projekt15 scored77%from 54 tests.

About plugin

  • Plugin page: simple-url-tracker
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.3
  • WordPress version: 6.3.1
  • First release: Dec 14, 2019
  • Latest release: Dec 14, 2019
  • Number of updates: 3
  • Update frequency: every 1.3 days
  • Top authors: jasonat15 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /614 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼2.56ms] Passed 4 tests

Analyzing server-side resources used by Simple URL Tracker - By Projekt15
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0737.70 ▼3.83
Dashboard /wp-admin3.37 ▲0.0747.11 ▼4.00
Posts /wp-admin/edit.php3.48 ▲0.1351.09 ▼3.93
Add New Post /wp-admin/post-new.php6.00 ▲0.1198.40 ▲1.53
Media Library /wp-admin/upload.php3.29 ▲0.0637.33 ▲2.60

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Simple URL Tracker - By Projekt15
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲11613.99 ▼0.304.58 ▲2.7641.08 ▼1.43
Dashboard /wp-admin2,204 ▲135.85 ▲0.04109.83 ▲0.6539.34 ▼1.40
Posts /wp-admin/edit.php2,093 ▲41.99 ▲0.0040.27 ▲3.5534.97 ▼2.30
Add New Post /wp-admin/post-new.php6,353 ▲4,83926.17 ▲8.73880.89 ▲210.8964.75 ▲6.06
Media Library /wp-admin/upload.php1,389 ▲14.22 ▲0.03101.98 ▼12.3545.53 ▼0.64

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 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
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/simple-url-tracker/public/partials/simple-track-public-display.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_permalink() in wp-content/plugins/simple-url-tracker/admin/partials/simple-track-admin-display.php:59
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-url-tracker/admin/class-simple-track-admin.php:122

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 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
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (Field Options. screenshot1.jpg), #2 (Generated Link screenshot2.jpg)
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
  • Screenshots: These screenshots lack descriptions #0, #0 in simple-url-tracker/assets to your readme.txt
You can take inspiration from this readme.txt

simple-url-tracker/simple-track.php 85% from 13 tests

Analyzing the main PHP file in "Simple URL Tracker - By Projekt15" version 1.0.0
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-url-tracker.php" instead of "simple-track.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin303 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12150543297
JavaScript28276
CSS20110

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.21
Average class complexity1.43
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.13
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods23
▷ Static methods28.70%
▷ Public methods1878.26%
▷ Protected methods00.00%
▷ Private methods521.74%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin