68% stalkfish

Code Review | Stalkfish - Error Monitoring and Activity Log Monitoring

WordPress plugin Stalkfish - Error Monitoring and Activity Log Monitoring scored68%from 54 tests.

About plugin

  • Plugin page: stalkfish
  • Plugin version: 1.2.1
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3
  • WordPress version: 6.3.1
  • First release: Jan 27, 2022
  • Latest release: Aug 8, 2023
  • Number of updates: 20
  • Update frequency: every 27.9 days
  • Top authors: mauryaratan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,405 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.26MB] [CPU: ▲1.17ms] Passed 4 tests

An overview of server-side resources used by Stalkfish - Error Monitoring and Activity Log Monitoring
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2547.02 ▲3.95
Dashboard /wp-admin3.56 ▲0.2551.82 ▼6.26
Posts /wp-admin/edit.php3.67 ▲0.3252.38 ▲6.72
Add New Post /wp-admin/post-new.php6.14 ▲0.2693.03 ▲0.27
Media Library /wp-admin/upload.php3.48 ▲0.2542.59 ▲7.74
Scheduled Actions /wp-admin/tools.php?page=action-scheduler3.6548.44
Setup Stalkfish /wp-admin/admin.php?page=stalkfish-setup3.5137.15
Stalkfish /wp-admin/options-general.php?page=sf-settings3.4937.15

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 662 new files
Database: 4 new tables, 14 new options
New tables
wp_actionscheduler_actions
wp_actionscheduler_logs
wp_actionscheduler_claims
wp_actionscheduler_groups
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
sf_request_type
sf_app_api_key
action_scheduler_lock_async-request-runner
sf_options
schema-ActionScheduler_StoreSchema
widget_recent-comments
action_scheduler_hybrid_store_demarkation
can_compress_scripts
...

Browser metrics Passed 4 tests

An overview of browser requirements for Stalkfish - Error Monitoring and Activity Log Monitoring
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲8313.20 ▼1.231.91 ▲0.1542.59 ▼6.82
Dashboard /wp-admin2,224 ▲335.80 ▲0.8898.79 ▼10.9942.70 ▼4.66
Posts /wp-admin/edit.php2,106 ▲202.02 ▼0.0338.95 ▲2.8735.51 ▼0.83
Add New Post /wp-admin/post-new.php1,551 ▲1723.15 ▲0.08614.39 ▲1.5650.47 ▼10.66
Media Library /wp-admin/upload.php1,400 ▲184.18 ▼0.0897.64 ▼0.1941.83 ▼1.24
Scheduled Actions /wp-admin/tools.php?page=action-scheduler1,2141.9728.4429.00
Setup Stalkfish /wp-admin/admin.php?page=stalkfish-setup9442.0826.8721.77
Stalkfish /wp-admin/options-general.php?page=sf-settings8912.1829.2428.09

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% 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
  • Zombie tables detected upon uninstall: 4 tables
    • wp_actionscheduler_groups
    • wp_actionscheduler_claims
    • wp_actionscheduler_logs
    • wp_actionscheduler_actions
  • This plugin does not fully uninstall, leaving 14 options in the database
    • theysaidso_admin_options
    • schema-ActionScheduler_LoggerSchema
    • sf_app_api_key
    • db_upgraded
    • action_scheduler_lock_async-request-runner
    • action_scheduler_hybrid_store_demarkation
    • widget_recent-comments
    • sf_request_type
    • widget_theysaidso_widget
    • sf_options
    • ...

Smoke tests 50% 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/stalkfish/third-party/vendor/symfony/mime/Resources/bin/update_mime_types.php
  • 285× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Trait 'Stalkfish\\Dependencies\\Illuminate\\Support\\Traits\\Macroable' not found in wp-content/plugins/stalkfish/third-party/vendor/illuminate/support/Optional.php on line 8
    • > PHP Fatal error
      Uncaught Error: Class 'Stalkfish\\ErrorTracker\\Truncation\\Abstract_Truncation_Strategy' not found in wp-content/plugins/stalkfish/includes/ErrorTracker/Truncation/class-trim-strings-strategy.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Stalkfish\\Dependencies\\Illuminate\\Support\\Facades\\Facade' not found in wp-content/plugins/stalkfish/third-party/vendor/illuminate/support/Facades/Bus.php:35
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_FinishedAction' not found in wp-content/plugins/stalkfish/libraries/action-scheduler/classes/actions/ActionScheduler_CanceledAction.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'Stalkfish\\Dependencies\\Symfony\\Component\\HttpFoundation\\Session\\SessionBagInterface' not found in wp-content/plugins/stalkfish/third-party/vendor/symfony/http-foundation/Session/Flash/FlashBagInterface.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Stalkfish\\Dependencies\\Symfony\\Component\\HttpFoundation\\Response' not found in wp-content/plugins/stalkfish/third-party/vendor/symfony/http-foundation/JsonResponse.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'Stalkfish\\Dependencies\\Symfony\\Component\\HttpFoundation\\File\\File' not found in wp-content/plugins/stalkfish/third-party/vendor/symfony/http-foundation/File/UploadedFile.php:30
    • > PHP Fatal error
      Uncaught Error: Interface 'Stalkfish\\Dependencies\\Illuminate\\Contracts\\Cookie\\Factory' not found in wp-content/plugins/stalkfish/third-party/vendor/illuminate/contracts/Cookie/QueueingFactory.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Stalkfish\\Dependencies\\Illuminate\\Support\\Facades\\Facade' not found in wp-content/plugins/stalkfish/third-party/vendor/illuminate/support/Facades/URL.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_Schedule' not found in wp-content/plugins/stalkfish/libraries/action-scheduler/classes/abstracts/ActionScheduler_Abstract_RecurringSchedule.php:6

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: tracking, user log, security, monitoring, audit log...

stalkfish/stalkfish.php Passed 13 tests

The principal PHP file in "Stalkfish - Error Monitoring and Activity Log Monitoring" v. 1.2.1 is loaded by WordPress automatically on each request
125 characters long description:
Stalkfish actively tracks error, crashes, and activity log on your WordPress site and sends them to your Stalkfish dashboard.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected47,818 lines of code in 650 files:
LanguageFilesBlank linesComment linesLines of code
PHP5914,20227,72737,654
JavaScript552,4966629,581
CSS4893583

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity9.58
▷ Minimum class complexity1.00
▷ Maximum class complexity242.00
Average method complexity2.53
▷ Minimum method complexity1.00
▷ Maximum method complexity73.00
Code structure
Namespaces89
Interfaces146
Traits12
Classes413
▷ Abstract classes317.51%
▷ Concrete classes38292.49%
▷ Final classes5614.66%
Methods3,833
▷ Static methods51913.54%
▷ Public methods3,27385.39%
▷ Protected methods42110.98%
▷ Private methods1393.63%
Functions260
▷ Named functions7026.92%
▷ Anonymous functions19073.08%
Constants235
▷ Global constants83.40%
▷ Class constants22796.60%
▷ Public constants18983.26%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/app-logo.png8.64KB3.92KB▼ 54.63%