68% progress-tracker

Code Review | Progress Tracker

WordPress plugin Progress Tracker scored68%from 54 tests.

About plugin

  • Plugin page: progress-tracker
  • Plugin version: 0.9.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.3.2
  • WordPress version: 6.3.1
  • First release: Oct 1, 2015
  • Latest release: Mar 31, 2020
  • Number of updates: 48
  • Update frequency: every 34.3 days
  • Top authors: alexfurr (75%)simon.ward (27.08%)

Code review

54 tests

User reviews

8 reviews

Install metrics

80+ active /4,932 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.26MB] [CPU: ▲0.28ms] Passed 4 tests

Analyzing server-side resources used by Progress Tracker
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.86 ▲0.3949.34 ▲0.23
Dashboard /wp-admin3.54 ▲0.2468.03 ▲0.41
Posts /wp-admin/edit.php3.66 ▲0.3053.99 ▲1.30
Add New Post /wp-admin/post-new.php6.15 ▲0.2698.71 ▼0.82
Media Library /wp-admin/upload.php3.47 ▲0.2343.02 ▲4.14
Progress Tracker /wp-admin/tools.php?page=ptracker-settings3.4440.85

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 35 new files
Database: 1 new table, 8 new options
New tables
wp_as_progress_tracker_users
New WordPress options
widget_recent-posts
widget_ptracker_widget
as_progress_tracker_ops
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Progress Tracker: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,936 ▲17513.46 ▼0.719.29 ▲7.4546.05 ▼0.97
Dashboard /wp-admin2,196 ▲195.62 ▲0.0890.83 ▼10.4141.64 ▼0.28
Posts /wp-admin/edit.php2,104 ▲42.16 ▲0.1837.10 ▲0.4236.48 ▼0.96
Add New Post /wp-admin/post-new.php1,536 ▲1023.12 ▲0.04661.61 ▼13.5666.29 ▲5.41
Media Library /wp-admin/upload.php1,404 ▲74.26 ▲0.05101.64 ▼9.9846.16 ▼3.13
Progress Tracker /wp-admin/tools.php?page=ptracker-settings1,4762.2245.9260.85

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie tables were found after uninstall: 1 table
    • wp_as_progress_tracker_users
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_ptracker_widget
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • as_progress_tracker_ops
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

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
These errors were triggered by the plugin
    • > GET request to /wp-admin/tools.php?page=ptracker-settings
    • > Notice in wp-content/plugins/progress-tracker/settings-tabs.php+217
    Trying to get property 'ID' of non-object

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/progress-tracker/progress-tracker.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: academic, progression, pages, progress

progress-tracker/progress-tracker.php Passed 13 tests

The entry point to "Progress Tracker" version 0.9.3 is a PHP file that has certain tags in its header comment area
81 characters long description:
Keep track of your progress through a site, allowing you to mark pages as 'read'.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected6,802 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
CSS6106443,344
JavaScript43461801,751
PHP85982251,707

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity36.00
▷ Minimum class complexity8.00
▷ Maximum class complexity60.00
Average method complexity4.18
▷ Minimum method complexity1.00
▷ Maximum method complexity49.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods44
▷ Static methods1125.00%
▷ Public methods44100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
15 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/buttons/button1_next.png5.12KB2.69KB▼ 47.55%
images/buttons/button2_back.png5.09KB2.65KB▼ 47.99%
css/images/slidebutton-red.png2.95KB2.06KB▼ 30.35%
images/buttons/button3_back.png8.60KB4.28KB▼ 50.27%
css/images/slidebutton-green.png2.72KB2.03KB▼ 25.47%