52% wp-changes-tracker

Code Review | WP Changes Tracker

WordPress plugin WP Changes Tracker scored52%from 54 tests.

About plugin

  • Plugin page: wp-changes-tracker
  • Plugin version: 2.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.2-3.4.3
  • WordPress version: 6.3.1
  • First release: May 28, 2012
  • Latest release: Nov 13, 2012
  • Number of updates: 29
  • Update frequency: every 5.8 days
  • Top authors: pixeline (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /6,287 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.84MB] [CPU: ▼30.58ms] Passed 4 tests

Analyzing server-side resources used by WP Changes Tracker
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1241.89 ▼0.05
Dashboard /wp-admin3.10 ▼0.2024.07 ▼20.78
Posts /wp-admin/edit.php3.10 ▼0.2523.64 ▼28.21
Add New Post /wp-admin/post-new.php3.10 ▼2.7830.34 ▼62.35
Media Library /wp-admin/upload.php3.10 ▼0.1324.25 ▼10.98

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: 1 new table, 7 new options
New tables
wp_changes_tracker
New WordPress options
wp_changes_tracker_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by WP Changes Tracker
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,907 ▲17213.23 ▼1.201.68 ▼0.2139.09 ▼8.49
Dashboard /wp-admin2,313 ▲1254.96 ▼0.93110.54 ▼2.3043.95 ▼2.34
Posts /wp-admin/edit.php2,102 ▲102.21 ▲0.2138.18 ▼3.6335.64 ▼3.24
Add New Post /wp-admin/post-new.php1,523 ▲917.64 ▼0.05599.46 ▼109.2251.95 ▼4.73
Media Library /wp-admin/upload.php1,401 ▲134.29 ▲0.0996.88 ▼3.4940.78 ▼2.20
WP Changes Tracker /wp-admin/wp-changes-tracker.php260.440.1214.59

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie tables detected upon uninstall: 1 table
    • wp_changes_tracker
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • wp_changes_tracker_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 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
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-changes-tracker/uninstall.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_locale() in wp-content/plugins/wp-changes-tracker/wp-changes-tracker.php:37

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
    • > GET request to /wp-admin/wp-changes-tracker.php
    • > Network (severe)
    wp-admin/wp-changes-tracker.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add an image for screenshot #1 (The changelog as a filterable/sortable/scrollable table.)
The official readme.txt might help

wp-changes-tracker/wp-changes-tracker.php Passed 13 tests

The entry point to "WP Changes Tracker" version 2.0.3 is a PHP file that has certain tags in its header comment area
60 characters long description:
Maintain a log of all themes, plugins and wordpress changes.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin1,729 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS63512081,158
PHP316089405
JavaScript1621166

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity17.50
▷ Minimum class complexity3.00
▷ Maximum class complexity32.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods37
▷ Static methods00.00%
▷ Public methods3697.30%
▷ Protected methods00.00%
▷ Private methods12.70%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
12 PNG files occupy 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/sort_desc_disabled.png1.02KB0.25KB▼ 75.98%
screenshot-1.png75.31KB26.90KB▼ 64.28%
images/sort_desc.png1.10KB0.25KB▼ 77.73%
images/sort_asc.png1.09KB0.25KB▼ 77.46%
images/back_disabled.png1.33KB0.60KB▼ 55.11%