10% flyt-sales-tracker

Code Review | Flyt URL Shortener and Sales Tracker

WordPress plugin Flyt URL Shortener and Sales Tracker scored10%from 54 tests.

About plugin

  • Plugin page: flyt-sales-tracker
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0.4-1.0.4
  • WordPress version: 6.3.1
  • First release: Nov 19, 2016
  • Latest release: Nov 19, 2016
  • Number of updates: 3
  • Update frequency: every 21.7 days
  • Top authors: ginosesto (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /713 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'flyt_install' not found or invalid function name

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.94ms] Passed 4 tests

Server-side resources used by Flyt URL Shortener and Sales Tracker
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.04 ▼4.13
Dashboard /wp-admin3.31 ▲0.0046.37 ▼3.03
Posts /wp-admin/edit.php3.36 ▲0.0052.74 ▲2.93
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.45 ▼7.52
Media Library /wp-admin/upload.php3.23 ▲0.0040.95 ▲6.64

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Flyt URL Shortener and Sales Tracker
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.31 ▼0.221.85 ▲0.0548.31 ▲0.78
Dashboard /wp-admin2,189 ▲125.55 ▼0.1286.41 ▼2.3640.92 ▼1.53
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0538.23 ▲1.2937.27 ▲0.74
Add New Post /wp-admin/post-new.php1,526 ▼523.13 ▼0.15666.07 ▲51.6462.05 ▲10.65
Media Library /wp-admin/upload.php1,403 ▲64.12 ▼0.03101.59 ▲0.3144.74 ▼0.93

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% 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)
Even though everything seems fine, this is not 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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/flyt-sales-tracker/flyt.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: sales traker, url shortner

flyt-sales-tracker/flyt.php 92% from 13 tests

Analyzing the main PHP file in "Flyt URL Shortener and Sales Tracker" version 1.0.4
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("flyt-sales-tracker.php" instead of "flyt.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin255 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15910255

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
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
Namespaces0
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin