78% tracktoact

Code Review | TrackToAct

WordPress plugin TrackToAct scored78%from 54 tests.

About plugin

  • Plugin page: tracktoact
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0-3.5.1
  • WordPress version: 6.3.1
  • First release: Jun 21, 2013
  • Latest release: Jun 26, 2013
  • Number of updates: 8
  • Update frequency: every 0.6 days
  • Top authors: tracktoact (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,014 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.28ms] Passed 4 tests

Analyzing server-side resources used by TrackToAct
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.45 ▼0.0138.32 ▼4.83
Dashboard /wp-admin3.32 ▲0.0253.31 ▼0.79
Posts /wp-admin/edit.php3.37 ▲0.0249.06 ▼5.20
Add New Post /wp-admin/post-new.php5.90 ▲0.0283.94 ▼18.28
Media Library /wp-admin/upload.php3.24 ▲0.0239.61 ▲3.82
TrackToAct /wp-admin/options-general.php?page=tracktoact_options3.1933.21

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by TrackToAct
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3314.74 ▲0.441.85 ▼0.1043.90 ▲0.27
Dashboard /wp-admin2,210 ▲224.82 ▼0.97118.71 ▲13.3642.91 ▲4.51
Posts /wp-admin/edit.php2,093 ▲41.97 ▼0.0837.78 ▼4.4538.02 ▲2.06
Add New Post /wp-admin/post-new.php1,546 ▲1218.08 ▼5.25645.85 ▲42.4560.06 ▲2.14
Media Library /wp-admin/upload.php1,392 ▲44.19 ▲0.0299.87 ▼6.6342.94 ▼3.06
TrackToAct /wp-admin/options-general.php?page=tracktoact_options7842.0624.7924.29

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=tracktoact_options
    • > Notice in wp-content/plugins/tracktoact/tracktoact.php+70
    Trying to access array offset on value of type bool

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tracktoact/tracktoact.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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
Please fix the following attributes:
  • Donate link: Invalid url: "tracktoact.com"
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

tracktoact/tracktoact.php 92% from 13 tests

The entry point to "TrackToAct" version 1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 363 characters long)

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
Good job! No executable or dangerous file extensions detected61 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1281861

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin