84% ia-salt-regeneration

Code Review | IA Salt Regeneration

WordPress plugin IA Salt Regeneration scored84%from 54 tests.

About plugin

  • Plugin page: ia-salt-regeneration
  • Plugin version: 1.0.3
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Nov 2, 2023
  • Latest release: Nov 26, 2023
  • Number of updates: 14
  • Update frequency: every 1.8 days
  • Top authors: gosuccess (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /139 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼6.91ms] Passed 4 tests

A check of server-side resources used by IA Salt Regeneration
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.50 ▼6.55
Dashboard /wp-admin3.31 ▼0.0446.76 ▼15.48
Posts /wp-admin/edit.php3.36 ▲0.0047.18 ▲2.04
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.25 ▼2.42
Media Library /wp-admin/upload.php3.23 ▲0.0032.32 ▼3.17

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 110 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for IA Salt Regeneration
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲5414.67 ▲0.541.63 ▼0.1542.60 ▼1.65
Dashboard /wp-admin2,192 ▲115.64 ▼0.0690.35 ▼23.0338.20 ▼7.19
Posts /wp-admin/edit.php2,103 ▲32.00 ▲0.0439.06 ▲2.8334.62 ▲0.35
Add New Post /wp-admin/post-new.php1,531 ▲523.37 ▼0.08726.04 ▲8.8353.62 ▲2.89
Media Library /wp-admin/upload.php1,400 ▼34.21 ▲0.0297.92 ▲0.2640.73 ▼2.22

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 47× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_Schedule' not found in wp-content/plugins/ia-salt-regeneration/libraries/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Abstract_RecurringSchedule.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_ListTable' not found in wp-content/plugins/ia-salt-regeneration/libraries/vendor/woocommerce/action-scheduler/classes/ActionScheduler_ListTable.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Logger' not found in wp-content/plugins/ia-salt-regeneration/libraries/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_wpCommentLogger.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/ia-salt-regeneration/libraries/vendor/woocommerce/action-scheduler/lib/cron-expression/CronExpression_DayOfWeekField.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/ia-salt-regeneration/libraries/vendor/woocommerce/action-scheduler/lib/cron-expression/CronExpression_MinutesField.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_QueueRunner' not found in wp-content/plugins/ia-salt-regeneration/libraries/vendor/woocommerce/action-scheduler/classes/ActionScheduler_QueueRunner.php:6
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ia-salt-regeneration/libraries/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Abstract_ListTable.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_Schema' not found in wp-content/plugins/ia-salt-regeneration/libraries/vendor/woocommerce/action-scheduler/classes/schema/ActionScheduler_LoggerSchema.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Logger' not found in wp-content/plugins/ia-salt-regeneration/libraries/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_DBLogger.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Action_Scheduler\\Migration\\ActionMigrator' not found in wp-content/plugins/ia-salt-regeneration/libraries/vendor/woocommerce/action-scheduler/classes/migration/DryRun_ActionMigrator.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: analytics, statistics, regenerate salt, google analytics, wordpress analytics...

ia-salt-regeneration/ia-salt-regeneration.php 92% from 13 tests

The main PHP script in "IA Salt Regeneration" version 1.0.3 is automatically included on every request by WordPress
It is important to fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.5" instead of "6.0")

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
Success! There were no dangerous files found in this plugin7,350 lines of code in 100 files:
LanguageFilesBlank linesComment linesLines of code
PHP961,7845,6647,206
Markdown237090
JSON20054

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity11.29
▷ Minimum class complexity1.00
▷ Maximum class complexity97.00
Average method complexity2.41
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces5
Interfaces3
Traits0
Classes83
▷ Abstract classes1518.07%
▷ Concrete classes6881.93%
▷ Final classes11.47%
Methods652
▷ Static methods8513.04%
▷ Public methods48073.62%
▷ Protected methods13921.32%
▷ Private methods335.06%
Functions29
▷ Named functions1862.07%
▷ Anonymous functions1137.93%
Constants36
▷ Global constants38.33%
▷ Class constants3391.67%
▷ Public constants33100.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