78% awesome-tracker

Code Review | Awesome Tracker

WordPress plugin Awesome Tracker scored78%from 54 tests.

About plugin

  • Plugin page: awesome-tracker
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.3
  • WordPress version: 6.3.1
  • First release: Nov 17, 2019
  • Latest release: Dec 1, 2019
  • Number of updates: 6
  • Update frequency: every 2.7 days
  • Top authors: moreiradev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /655 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 gracefully, with no errors

Server metrics [RAM: ▲0.39MB] [CPU: ▼3.30ms] Passed 4 tests

Server-side resources used by Awesome Tracker
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2642.81 ▼1.43
Dashboard /wp-admin3.76 ▲0.4157.33 ▼12.10
Posts /wp-admin/edit.php3.81 ▲0.4552.87 ▲5.11
Add New Post /wp-admin/post-new.php6.35 ▲0.46101.54 ▼4.79
Media Library /wp-admin/upload.php3.68 ▲0.4543.93 ▲7.22
Tracked Records /wp-admin/admin.php?page=awesome-tracker3.5737.73
Settings /wp-admin/admin.php?page=awesometracker-settings3.6037.44
API Routes /wp-admin/admin.php?page=at-routes5.1041.07

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 34 new files
Database: 1 new table, 7 new options
New tables
wp_awesome_tracker_visits
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
awesome_tracker_version
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Awesome Tracker
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.28 ▼0.131.62 ▼0.3844.27 ▲0.09
Dashboard /wp-admin2,224 ▲445.58 ▼0.0491.80 ▼8.5044.00 ▲2.02
Posts /wp-admin/edit.php2,129 ▲322.15 ▲0.1841.34 ▲6.0139.70 ▲4.39
Add New Post /wp-admin/post-new.php1,564 ▲3622.99 ▼0.16672.10 ▼2.6763.27 ▼1.85
Media Library /wp-admin/upload.php1,432 ▲324.20 ▼0.05103.01 ▼7.9946.19 ▲0.13
Tracked Records /wp-admin/admin.php?page=awesome-tracker1,2211.8232.2431.43
Settings /wp-admin/admin.php?page=awesometracker-settings1,12610.74197.1930.57
API Routes /wp-admin/admin.php?page=at-routes1,10210.3982.1225.83

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=awesome-tracker
    • > Notice in wp-content/plugins/awesome-tracker/inc/tables/class-at-log-table.php+205
    Undefined index: orderby
    • > GET request to /wp-admin/admin.php?page=awesome-tracker
    • > Notice in wp-content/plugins/awesome-tracker/inc/tables/class-at-log-table.php+207
    Undefined index: order

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=at-routes
    • > Console-api (warning) in wp-includes/js/dist/deprecated.min.js?ver=73ad3591e7bc95f4777a+1:627
    Button isDefault prop is deprecated since version 5.4 and will be removed in version 6.2. Please use variant=\"secondary\" instead.

Optimizations

Plugin configuration 96% from 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
2 plugin tags: analytics, tracking

awesome-tracker/awesome-tracker.php 92% from 13 tests

The main file in "Awesome Tracker" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin2,588 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP187958872,307
PO File1104113236
JavaScript35120
Markdown14019
CSS4285
JSON1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity19.39
▷ Minimum class complexity1.00
▷ Maximum class complexity124.00
Average method complexity3.22
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes18
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes00.00%
Methods149
▷ Static methods7449.66%
▷ Public methods10570.47%
▷ Protected methods2416.11%
▷ Private methods2013.42%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants19.09%
▷ Class constants1090.91%
▷ Public constants10100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
js/external/chosen/chosen-sprite@2x.png0.72KB0.83KB0.00%
js/external/chosen/chosen-sprite.png0.53KB0.88KB0.00%