10% wp-changelog

Code Review | WordPress Changelog

WordPress plugin WordPress Changelog scored10%from 54 tests.

About plugin

  • Plugin page: wp-changelog
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.4
  • WordPress version: 6.3.1
  • First release: Jun 21, 2017
  • Latest release: Feb 20, 2018
  • Number of updates: 34
  • Update frequency: every 7.2 days
  • Top authors: skochwm (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /1,878 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • Install procedure had errors
    • > Error in wp-content/plugins/wp-changelog/classes/class.wordpress-changelog.php+435
    Uncaught ArgumentCountError: Too few arguments to function WordPress_Changelog_Class::write_log(), 6 passed in wp-content/plugins/wp-changelog/classes/class.wordpress-changelog.php on line 510 and exactly 7 expected in wp-content/plugins/wp-changelog/classes/class.wordpress-changelog.php:435
    Stack trace:
    #0 wp-content/plugins/wp-changelog/classes/class.wordpress-changelog.php(510): WordPress_Changelog_Class::write_log()
    #1 wp-content/plugins/wp-changelog/wordpress-changelog.php(92): WordPress_Changelog_Class::setup()
    #2 wp-includes/class-wp-hook.php(310): WP_Changelog_Init::activation()
    #3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #4 wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 wp-admin/includes/plugin.php(693): do_action()

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.27ms] Passed 4 tests

Analyzing server-side resources used by WordPress Changelog
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.69 ▲1.62
Dashboard /wp-admin3.31 ▲0.0042.15 ▼10.43
Posts /wp-admin/edit.php3.36 ▲0.0048.27 ▲1.43
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.57 ▼17.68
Media Library /wp-admin/upload.php3.23 ▲0.0033.65 ▲2.77

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: 1 new table, 7 new options
New tables
wp_webolatory_changelog
New WordPress options
db_upgraded
wordpress_changelog_version
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

WordPress Changelog: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.62 ▼0.961.71 ▼0.5042.30 ▲1.79
Dashboard /wp-admin2,200 ▲125.82 ▲0.94106.92 ▼1.3739.51 ▲3.00
Posts /wp-admin/edit.php2,092 ▲32.04 ▲0.0039.44 ▲0.5837.47 ▲4.90
Add New Post /wp-admin/post-new.php1,537 ▼523.25 ▲4.99693.59 ▲59.3465.44 ▲3.50
Media Library /wp-admin/upload.php1,391 ▲34.22 ▲0.0499.78 ▲3.2942.69 ▼0.90

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: You are using too many tags: 18 tag instead of maximum 10
You can look at the official readme.txt

wp-changelog/wordpress-changelog.php 77% from 13 tests

"WordPress Changelog" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-changelog.php" instead of "wordpress-changelog.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 144 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin2,680 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript22752281,487
CSS2101524
PHP4201265459
SVG242210

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity28.00
▷ Minimum class complexity2.00
▷ Maximum class complexity71.00
Average method complexity5.50
▷ Minimum method complexity1.00
▷ Maximum method complexity45.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods18
▷ Static methods422.22%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
dist/media/logo.png8.84KB3.73KB▼ 57.76%
dist/media/minilogo.png1.26KB0.61KB▼ 51.63%