10% eventflow-keyword-extraction

Code Review | Eventflow Keyword Extraction

WordPress plugin Eventflow Keyword Extraction scored10%from 54 tests.

About plugin

  • Plugin page: eventflow-keyword...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.3.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.7.1
  • WordPress version: 6.3.1
  • First release: May 12, 2021
  • Latest release: May 13, 2021
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: vtqveant (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /377 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/eventflow-keyword-extraction/includes/Client/Request_Builder.php+96
    Undefined index: query

Server metrics [RAM: ▲0.13MB] [CPU: ▼9.72ms] Passed 4 tests

Server-side resources used by Eventflow Keyword Extraction
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1434.39 ▼3.32
Dashboard /wp-admin3.44 ▲0.0945.98 ▼12.39
Posts /wp-admin/edit.php3.55 ▲0.1947.28 ▼1.20
Add New Post /wp-admin/post-new.php6.04 ▲0.1581.94 ▼21.95
Media Library /wp-admin/upload.php3.36 ▲0.1334.16 ▼0.21
Keywords /wp-admin/edit-tags.php?taxonomy=keyword3.3534.25

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Eventflow Keyword Extraction: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.28 ▼0.071.79 ▲0.1840.71 ▲1.07
Dashboard /wp-admin2,199 ▲195.51 ▼0.0888.15 ▲2.3737.07 ▼5.51
Posts /wp-admin/edit.php2,133 ▲332.16 ▲0.1936.80 ▼5.8234.12 ▼3.57
Add New Post /wp-admin/post-new.php1,534 ▲823.61 ▲0.78632.32 ▼18.9966.30 ▲10.68
Media Library /wp-admin/upload.php1,404 ▲44.25 ▲0.02107.26 ▲8.6141.94 ▼5.49
Keywords /wp-admin/edit-tags.php?taxonomy=keyword1,2472.1225.9729.76

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Interface 'Eventflow\\Interlink\\Client\\Invoker' not found in wp-content/plugins/eventflow-keyword-extraction/includes/Client/Abstract_Invoker.php:6
    • > PHP Fatal error
      Uncaught Error: Interface 'Eventflow\\Interlink\\OAuth\\Signature_Method' not found in wp-content/plugins/eventflow-keyword-extraction/includes/OAuth/Base_Signature_Method.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Eventflow\\Interlink\\Client\\Abstract_Invoker' not found in wp-content/plugins/eventflow-keyword-extraction/includes/Client/CURL_Invoker.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Eventflow\\Interlink\\OAuth\\Base_Signature_Method' not found in wp-content/plugins/eventflow-keyword-extraction/includes/OAuth/Signature_Method_HMAC_SHA1.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Eventflow\\Interlink\\Client\\Abstract_Invoker' not found in wp-content/plugins/eventflow-keyword-extraction/includes/Client/WP_Http_Invoker.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: keywords, seo

eventflow-keyword-extraction/eventflow-keyword-extraction.php 92% from 13 tests

"Eventflow Keyword Extraction" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,355 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP273505061,230
PO File2263293
JavaScript12032

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity9.15
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.53
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces2
Traits0
Classes18
▷ Abstract classes211.11%
▷ Concrete classes1688.89%
▷ Final classes00.00%
Methods114
▷ Static methods1614.04%
▷ Public methods10491.23%
▷ Protected methods32.63%
▷ Private methods76.14%
Functions7
▷ Named functions342.86%
▷ Anonymous functions457.14%
Constants16
▷ Global constants1062.50%
▷ Class constants637.50%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin