74% process-log

Code Review | Process Log

WordPress plugin Process Log scored74%from 54 tests.

About plugin

  • Plugin page: process-log
  • Plugin version: 1.3.4
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2.0
  • WordPress version: 6.3.1
  • First release: Jun 4, 2021
  • Latest release: May 3, 2023
  • Number of updates: 13
  • Update frequency: every 53.9 days
  • Top authors: EdwardBock (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /726 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
Installer ran successfully

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

This is a short check of server-side resources used by Process Log
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.74 ▼11.49
Dashboard /wp-admin3.31 ▲0.0046.18 ▼7.56
Posts /wp-admin/edit.php3.36 ▲0.0048.32 ▼3.39
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.95 ▼6.95
Media Library /wp-admin/upload.php3.23 ▲0.0035.01 ▲1.86

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 50 new files
Database: 2 new tables, 6 new options
New tables
wp_process_log_items
wp_process_logs
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Process Log
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▲0.091.78 ▲0.0941.88 ▼4.19
Dashboard /wp-admin2,206 ▲185.85 ▼0.03114.83 ▲3.4740.92 ▼5.51
Posts /wp-admin/edit.php2,086 ▼32.01 ▼0.0540.99 ▲0.6838.74 ▲4.44
Add New Post /wp-admin/post-new.php1,514 ▼1923.53 ▲0.45720.60 ▲14.3455.37 ▼5.27
Media Library /wp-admin/upload.php1,391 ▼04.20 ▲0.0196.55 ▼8.2042.86 ▼2.64

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure failed, leaving 2 tables in the database
    • wp_process_logs
    • wp_process_log_items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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 fix the following items
  • 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'Palasthotel\\ProcessLog\\Component\\Component' not found in wp-content/plugins/process-log/classes/View/CommentMetaBoxView.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Palasthotel\\ProcessLog\\Model\\DatabaseItem' not found in wp-content/plugins/process-log/classes/Model/Process.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Palasthotel\\ProcessLog\\Component\\Update' not found in wp-content/plugins/process-log/classes/Updates.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Palasthotel\\ProcessLog\\Component\\plugin_dir_path() in wp-content/plugins/process-log/classes/Component/Plugin.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'Palasthotel\\ProcessLog\\Component\\Database' not found in wp-content/plugins/process-log/classes/Database.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Palasthotel\\ProcessLog\\Model\\DatabaseItem' not found in wp-content/plugins/process-log/classes/Model/ProcessLog.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Palasthotel\\ProcessLog\\Component\\Component' not found in wp-content/plugins/process-log/classes/Views.php:12

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: debug, log

process-log/plugin.php 92% from 13 tests

Analyzing the main PHP file in "Process Log" version 1.3.4
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("process-log.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin2,618 lines of code in 41 files:
LanguageFilesBlank linesComment linesLines of code
PHP366719402,173
JavaScript25676310
PO File1303285
CSS137145
JSON1005

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity8.43
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity2.13
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes30
▷ Abstract classes413.33%
▷ Concrete classes2686.67%
▷ Final classes00.00%
Methods194
▷ Static methods199.79%
▷ Public methods18595.36%
▷ Protected methods00.00%
▷ Private methods94.64%
Functions8
▷ Named functions225.00%
▷ Anonymous functions675.00%
Constants29
▷ Global constants26.90%
▷ Class constants2793.10%
▷ Public constants27100.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 files were detected