10% wp-simple-tracker

Code Review | WP Simple Tracker

WordPress plugin WP Simple Tracker scored 10% from 54 tests.

About plugin

  • Plugin page: wp-simple-tracker
  • Plugin version: 0.33
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.0.1
  • WordPress version: 5.8.1
  • First release: Sep 24, 2012
  • Latest release: Nov 26, 2014
  • Number of updates: 9
  • Update frequency: every 88.2 days
  • Top authors: CiaranG (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,542 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/wp-simple-tracker/wp-simpletracker.php+14
    Methods with the same name as their class will not be constructors in a future version of PHP; SimpleTracker has a deprecated constructor

Server metrics [RAM: ▼1.57MB] [CPU: ▼180.99ms] Passed 4 tests

An overview of server-side resources used by WP Simple Tracker
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼0.669.47 ▼24.55
Dashboard /wp-admin2.07 ▼0.986.68 ▼32.40
Posts /wp-admin/edit.php2.08 ▼1.036.95 ▼34.59
Add New Post /wp-admin/post-new.php2.07 ▼3.365.96 ▼629.40
Media Library /wp-admin/upload.php2.07 ▼0.936.25 ▼27.58
Simple Tracker /wp-admin/options-general.php?page=wp-simpletracker2.085.49

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: 6 new tables, 1 new option
New tables
wp_it_tracker
wp_it_issue
wp_it_starred
wp_it_comment
wp_it_type
wp_it_status
New WordPress options
simpletracker_version

Browser metrics Passed 4 tests

An overview of browser requirements for WP Simple Tracker
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲11215.81 ▼0.037.79 ▼0.2250.03 ▲3.20
Dashboard /wp-admin2,978 ▲475.91 ▼0.32138.17 ▼32.10106.92 ▲3.77
Posts /wp-admin/edit.php2,744 ▲52.69 ▲0.0065.93 ▼1.6295.10 ▲5.28
Add New Post /wp-admin/post-new.php1,673 ▲17319.21 ▲0.48378.35 ▲18.45109.11 ▼4.34
Media Library /wp-admin/upload.php1,830 ▲235.02 ▼0.01149.68 ▼20.51124.81 ▲2.10
Simple Tracker /wp-admin/options-general.php?page=wp-simpletracker1,2712.3655.2767.49

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/wp-simple-tracker/wp-simpletracker.php+14
    Methods with the same name as their class will not be constructors in a future version of PHP; SimpleTracker has a deprecated constructor
  • Zombie tables detected upon uninstall: 6 tables
    • wp_it_type
    • wp_it_comment
    • wp_it_starred
    • wp_it_tracker
    • wp_it_issue
    • wp_it_status
  • Zombie WordPress options were found after uninstall: 1 option
    • simpletracker_version

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=wp-simpletracker
    • > Deprecated in wp-content/plugins/wp-simple-tracker/wp-simpletracker.php+14
    Methods with the same name as their class will not be constructors in a future version of PHP; SimpleTracker has a deprecated constructor

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-simple-tracker/wp-simpletracker.php:902

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: tracker, issue tracker

wp-simple-tracker/wp-simpletracker.php 92% from 13 tests

"WP Simple Tracker" version 0.33's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-simple-tracker.php" instead of "wp-simpletracker.php")

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
Success! There were no dangerous files found in this plugin1,017 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP18962753
JavaScript329127239
CSS22025

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.28
Average class complexity86.00
▷ Minimum class complexity86.00
▷ Maximum class complexity86.00
Average method complexity4.40
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods25
▷ Static methods00.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin