84% changelogger

Code Review | Changelogger

WordPress plugin Changelogger scored84%from 54 tests.

About plugin

  • Plugin page: changelogger
  • Plugin version: 1.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-6.3.99
  • WordPress version: 6.3.1
  • First release: Jun 21, 2009
  • Latest release: Jul 25, 2023
  • Number of updates: 111
  • Update frequency: every 46.4 days
  • Top authors: Alphawolf (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /12,905 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼0.82ms] Passed 4 tests

An overview of server-side resources used by Changelogger
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0636.72 ▼7.84
Dashboard /wp-admin3.37 ▲0.0747.25 ▲2.41
Posts /wp-admin/edit.php3.42 ▲0.0753.17 ▲2.46
Add New Post /wp-admin/post-new.php5.95 ▲0.0798.14 ▲5.90
Media Library /wp-admin/upload.php3.30 ▲0.0736.44 ▼0.30

Server storage [IO: ▲0.08MB] [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: 22 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Changelogger
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.17 ▼1.211.75 ▼0.8040.63 ▼2.03
Dashboard /wp-admin2,206 ▲185.87 ▲0.97111.41 ▼9.5440.38 ▼12.87
Posts /wp-admin/edit.php2,086 ▼32.05 ▲0.0639.37 ▼1.3036.03 ▼0.10
Add New Post /wp-admin/post-new.php1,537 ▲1818.27 ▼4.95608.38 ▼12.0966.38 ▲7.58
Media Library /wp-admin/upload.php1,388 ▲34.24 ▲0.0994.60 ▼4.4442.90 ▼1.13

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following items
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Undefined index: wp_version in wp-content/plugins/changelogger/changelogger.php on line 43
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/changelogger/changelogger.php:458
    • > PHP Notice
      Undefined index: wp_version in wp-content/plugins/changelogger/changelogger.php on line 48
    • > PHP Notice
      Undefined index: wp_version in wp-content/plugins/changelogger/changelogger.php on line 53

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: control, changelogger, version, changelog

changelogger/changelogger.php 92% from 13 tests

The main file in "Changelogger" v. 1.3.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 318 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected723 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PO File887119431
PHP166143252
CSS17030
JavaScript10010

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity57.00
▷ Minimum class complexity57.00
▷ Maximum class complexity57.00
Average method complexity5.31
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
No PNG files were detected