73% history-log-by-click5

Code Review | History Log by click5

WordPress plugin History Log by click5 scored73%from 54 tests.

About plugin

  • Plugin page: history-log-by-cl...
  • Plugin version: 1.0.13
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.3
  • WordPress version: 6.3.1
  • First release: Jan 24, 2022
  • Latest release: Sep 29, 2023
  • Number of updates: 53
  • Update frequency: every 11.6 days
  • Top authors: click5 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

800+ active /6,744 total downloads

Benchmarks

Plugin footprint 65% 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: ▲2.61MB] [CPU: ▲19.09ms] Passed 4 tests

This is a short check of server-side resources used by History Log by click5
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /6.18 ▲2.7263.28 ▲16.74
Dashboard /wp-admin6.20 ▲2.9068.57 ▲19.54
Posts /wp-admin/edit.php6.20 ▲2.8574.33 ▲26.79
Add New Post /wp-admin/post-new.php7.84 ▲1.96106.02 ▲13.29
Media Library /wp-admin/upload.php6.20 ▲2.9774.91 ▲38.46

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 35 new files
Database: 1 new table, 77 new options
New tables
wp_c5_history
New WordPress options
click5_history_log_google-site-kit/google-site-kit.php
click5_history_log_wpf-add-on-by-click5/wpf-addon-by-click5.php
click5_history_log_history-log-by-click5/history-log-by-click5.php
my_db_version
click5_history_log_all-in-one-seo-pack-pro/all_in_one_seo_pack.php
version_theme_twentytwenty
version_theme_twentynineteen
click5_history_log_advanced-custom-fields/acf.php
click5_history_log_cf7-add-on-by-click5/cf7-addon-by-click5.php
click5_history_log_clear_date
...

Browser metrics Passed 4 tests

Checking browser requirements for History Log by click5
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,871 ▲13613.66 ▼0.691.70 ▼0.6128.89 ▼21.34
Dashboard /wp-admin2,277 ▲894.87 ▼0.02105.71 ▼11.2842.84 ▼0.00
Posts /wp-admin/edit.php2,102 ▲102.05 ▲0.0438.80 ▲2.8535.85 ▲2.19
Add New Post /wp-admin/post-new.php1,531 ▲1721.91 ▲4.44694.60 ▼10.5249.71 ▼7.79
Media Library /wp-admin/upload.php1,404 ▲194.19 ▼0.02112.25 ▲0.9347.12 ▲0.48

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_c5_history
  • This plugin does not fully uninstall, leaving 77 options in the database
    • click5_history_log_wordfence/wordfence.php
    • click5_history_log_cf7-add-on-by-click5/cf7-addon-by-click5.php
    • click5_history_log_wpforms/wpforms.php
    • click5_history_log_acf-repeater/acf-repeater.php
    • click5_log_store_time
    • click5_history_log_module_users
    • click5_history_log_module_404_error
    • click5_history_log_technical_issue
    • click5_history_log_classic-editor/classic-editor.php
    • theysaidso_admin_options
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 14× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Warning
      require_once(ABSPATHwp-includes/pluggable.php): failed to open stream: No such file or directory in wp-content/plugins/history-log-by-click5/history-log-by-click5.php on line 16
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-includes/pluggable.php' (include_path='.:/usr/share/php') in wp-content/plugins/history-log-by-click5/history-log-by-click5.php on line 16
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/screen.php): failed to open stream: No such file or directory in wp-content/plugins/history-log-by-click5/click5_grid_modules.php on line 4
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/screen.php): failed to open stream: No such file or directory in wp-content/plugins/history-log-by-click5/click5_grid.php on line 3
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/history-log-by-click5/history-log-by-click5.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/history-log-by-click5/api.php:2
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/screen.php' (include_path='.:/usr/share/php') in wp-content/plugins/history-log-by-click5/click5_grid_modules.php on line 4
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/screen.php): failed to open stream: No such file or directory in wp-content/plugins/history-log-by-click5/click5_grid_plugins.php on line 4
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/history-log-by-click5/click5_grid_modules.php on line 4
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/screen.php' (include_path='.:/usr/share/php') in wp-content/plugins/history-log-by-click5/click5_grid_plugins.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Please add an image for screenshot #1 (History Log report of events tracked by our plugin. Easy to navigate, filter and search.)
You can look at the official readme.txt

history-log-by-click5/history-log-by-click5.php 92% from 13 tests

The primary PHP file in "History Log by click5" version 1.0.13 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Domain Path: The domain path folder was not found ("/languages")

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
Success! There were no dangerous files found in this plugin10,044 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP71,0395959,287
CSS212253596
JavaScript1255144
JSON11017

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.71
Average class complexity39.00
▷ Minimum class complexity7.00
▷ Maximum class complexity90.00
Average method complexity3.56
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods27
▷ Static methods00.00%
▷ Public methods27100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions164
▷ Named functions9960.37%
▷ Anonymous functions6539.63%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
10 PNG files occupy 1.56MB with 0.89MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png74.58KB27.42KB▼ 63.23%
assets/screenshot-2.png281.03KB92.89KB▼ 66.95%
assets/banner-1544x500.png87.57KB44.04KB▼ 49.72%
assets/banner-300x515-sitemap-plugin.png142.17KB59.35KB▼ 58.25%
assets/icon-256x256.png14.63KB7.52KB▼ 48.58%