74% dlm-changelog

Code Review | DLM Changelog Add-on

WordPress plugin DLM Changelog Add-on scored74%from 54 tests.

About plugin

  • Plugin page: dlm-changelog
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.4
  • WordPress version: 6.3.1
  • First release: Jan 17, 2014
  • Latest release: Jan 6, 2019
  • Number of updates: 19
  • Update frequency: every 95.6 days
  • Top authors: ErinMorelli (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,502 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

This is a short check of server-side resources used by DLM Changelog Add-on
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.38 ▼0.91
Dashboard /wp-admin3.31 ▼0.0451.46 ▼11.27
Posts /wp-admin/edit.php3.36 ▲0.0044.06 ▼7.48
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.07 ▼10.91
Media Library /wp-admin/upload.php3.23 ▲0.0034.12 ▼0.26

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

Browser metrics Passed 4 tests

Checking browser requirements for DLM Changelog Add-on
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.34 ▼0.011.63 ▲0.0542.25 ▲3.27
Dashboard /wp-admin2,192 ▲245.51 ▼0.0792.19 ▲0.5040.06 ▲1.01
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0835.65 ▼0.2033.90 ▼1.49
Add New Post /wp-admin/post-new.php1,528 ▲223.07 ▼0.55644.73 ▼16.0667.33 ▲12.85
Media Library /wp-admin/upload.php1,397 ▼64.19 ▼0.00102.89 ▼0.2645.85 ▲2.11

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin cannot be uninstalled
    • > Warning in wp-content/plugins/dlm-changelog/dlm-changelog.php+297
    Use of undefined constant DLMCL_VERSION_KEY - assumed 'DLMCL_VERSION_KEY' (this will throw an Error in a future version of PHP)
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • dlmcl_version
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
The following issues need your attention
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dlm-changelog/includes/dlmcl-admin.php:48
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/dlm-changelog/dlm-changelog.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/dlm-changelog/includes/dlmcl-shortcode.php:49

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

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: changelog, download monitor, downloads, versions

dlm-changelog/dlm-changelog.php Passed 13 tests

The principal PHP file in "DLM Changelog Add-on" v. 1.2.1 is loaded by WordPress automatically on each request
87 characters long description:
An add-on for Mike Jolley's Download Monitor that adds version changelog functionality.

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 detected631 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP3124258412
JavaScript23091126
CSS2135293

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin