73% changes

Code Review | Changes

WordPress plugin Changes scored73%from 54 tests.

About plugin

  • Plugin page: changes
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.6.1
  • WordPress version: 6.3.1
  • First release: Feb 9, 2013
  • Latest release: Sep 16, 2013
  • Number of updates: 8
  • Update frequency: every 127.1 days
  • Top authors: seoroma (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,905 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
Installer ran successfully

Server metrics [RAM: ▼0.71MB] [CPU: ▼24.69ms] Passed 4 tests

Analyzing server-side resources used by Changes
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.29 ▼0.67
Dashboard /wp-admin3.32 ▼0.0352.48 ▼13.27
Posts /wp-admin/edit.php3.37 ▲0.0150.73 ▼1.27
Add New Post /wp-admin/post-new.php3.05 ▼2.8426.98 ▼83.53
Media Library /wp-admin/upload.php3.24 ▲0.0138.58 ▲4.43
Changes /wp-admin/options-general.php?page=changes/changes.php3.35352.94

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

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

Browser metrics Passed 4 tests

Changes: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.27 ▼0.102.16 ▲0.4345.59 ▲3.46
Dashboard /wp-admin2,202 ▲255.63 ▼0.0795.26 ▲5.2845.24 ▼1.68
Posts /wp-admin/edit.php2,104 ▲12.00 ▼0.0035.47 ▼5.0034.69 ▼1.73
Add New Post /wp-admin/post-new.php6,244 ▲4,71818.92 ▲1.21918.03 ▲266.9166.57 ▲12.04
Media Library /wp-admin/upload.php1,404 ▲14.24 ▲0.00112.57 ▲11.2248.09 ▲0.59
Changes /wp-admin/options-general.php?page=changes/changes.php7832.0326.4927.13

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • changes
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=changes/changes.php
    • > Notice in wp-content/plugins/changes/changes.php+215
    Undefined variable: out

SRP 0% 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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/changes/uninstall.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/changes/changes.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
Please take inspiration from this readme.txt

changes/changes.php Passed 13 tests

Analyzing the main PHP file in "Changes" version 1.0.3
84 characters long description:
Checks your posts against the original content, providing the percentage of changes.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin230 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP44743188
CSS11222
JavaScript16220

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin