84% wp-theme-changelogs

Code Review | WP Theme Changelogs

WordPress plugin WP Theme Changelogs scored84%from 54 tests.

About plugin

  • Plugin page: wp-theme-changelogs
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.4
  • WordPress version: 6.3.1
  • First release: Aug 2, 2016
  • Latest release: Apr 1, 2020
  • Number of updates: 8
  • Update frequency: every 167.3 days
  • Top authors: ThemeZee (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active /32,421 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.50ms] Passed 4 tests

Server-side resources used by WP Theme Changelogs
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0337.70 ▼3.62
Dashboard /wp-admin3.34 ▲0.0447.44 ▼6.52
Posts /wp-admin/edit.php3.40 ▲0.0346.20 ▼7.45
Add New Post /wp-admin/post-new.php5.93 ▲0.0390.29 ▼12.39
Media Library /wp-admin/upload.php3.27 ▲0.0338.59 ▲3.68

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for WP Theme Changelogs
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.35 ▼0.031.90 ▲0.3141.60 ▲2.11
Dashboard /wp-admin2,198 ▲305.61 ▲0.0284.16 ▼5.7841.23 ▼2.12
Posts /wp-admin/edit.php2,100 ▼31.94 ▼0.0838.29 ▼2.9836.83 ▲1.53
Add New Post /wp-admin/post-new.php1,526 ▼1123.68 ▲5.35677.46 ▲28.3760.79 ▼22.59
Media Library /wp-admin/upload.php1,397 ▼64.18 ▼0.0398.85 ▼7.8047.60 ▲2.38

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'Michelf\\Markdown' not found in wp-content/plugins/wp-theme-changelogs/includes/markdown/Michelf/MarkdownExtra.php:16
    • > PHP Fatal error
      Uncaught Error: Interface 'Michelf\\MarkdownInterface' not found in wp-content/plugins/wp-theme-changelogs/includes/markdown/Michelf/Markdown.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: theme update, theme, update, theme version, changelog...

wp-theme-changelogs/wp-theme-changelogs.php Passed 13 tests

This is the main PHP file of "WP Theme Changelogs" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
52 characters long description:
Adding changelogs for themes hosted on wordpress.org

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected2,750 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP75831,4412,453
Markdown21190287
JavaScript110810

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity41.17
▷ Minimum class complexity1.00
▷ Maximum class complexity112.00
Average method complexity3.10
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces1
Interfaces1
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods117
▷ Static methods1311.11%
▷ Public methods2521.37%
▷ Protected methods9278.63%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants685.71%
▷ Class constants114.29%
▷ 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
No PNG images were found in this plugin