72% release-notes

Code Review | Release Notes

WordPress plugin Release Notes scored72%from 54 tests.

About plugin

  • Plugin page: release-notes
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-5.2
  • WordPress version: 6.3.1
  • First release: Sep 26, 2017
  • Latest release: Apr 29, 2019
  • Number of updates: 13
  • Update frequency: every 44.7 days
  • Top authors: jordanleven (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /16,155 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.74ms] Passed 4 tests

Server-side resources used by Release Notes
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0535.76 ▼5.11
Dashboard /wp-admin3.36 ▲0.0645.72 ▼4.39
Posts /wp-admin/edit.php3.41 ▲0.0547.72 ▲0.85
Add New Post /wp-admin/post-new.php5.94 ▲0.0589.35 ▼6.29
Media Library /wp-admin/upload.php3.28 ▲0.0536.35 ▲4.60
Release notes /wp-admin/index.php?page=release_notes3.2229.82

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Release Notes
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲9613.63 ▼0.751.63 ▼0.0643.87 ▼0.57
Dashboard /wp-admin2,248 ▲604.95 ▼0.93108.05 ▼2.6840.94 ▼2.65
Posts /wp-admin/edit.php2,096 ▲42.05 ▲0.0440.30 ▲3.2034.34 ▲1.31
Add New Post /wp-admin/post-new.php1,545 ▲2618.00 ▼5.34601.04 ▼47.8351.76 ▼11.80
Media Library /wp-admin/upload.php1,392 ▲44.25 ▲0.0095.24 ▼0.9141.24 ▼0.12
Release notes /wp-admin/index.php?page=release_notes7862.0225.4229.82

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/index.php?page=release_notes
    • > Notice in wp-content/plugins/release-notes/filter-release-notes.php+252
    Undefined variable: this_release_note_theme_slug

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× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function JordanLeven\\Plugins\\ReleaseNotes\\add_action() in wp-content/plugins/release-notes/filter-release-notes.php:15

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
    • > GET request to /wp-admin/index.php?page=release_notes
    • > Javascript (severe) in unknown
    /wp-content/plugins/release-notes/library/dist/frameworks/bootstrap/bootstrap.3.3.5.min.js?ver=6.3.1 17:10 Uncaught Error: Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3

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: themes, notes, release, versions

release-notes/filter-release-notes.php 92% from 13 tests

The primary PHP file in "Release Notes" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("release-notes.php" instead of "filter-release-notes.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin6,830 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS11,346114,926
JavaScript15812001,585
PHP118149201
Markdown121082
JSON11036

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
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
Namespaces1
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%
Functions7
▷ Named functions571.43%
▷ Anonymous functions228.57%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin