84% event-insight

Code Review | Event Insight

WordPress plugin Event Insight scored84%from 54 tests.

About plugin

  • Plugin page: event-insight
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.5.1
  • WordPress version: 6.3.1
  • First release: Oct 2, 2020
  • Latest release: Oct 3, 2020
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: opensums (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /376 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼1.64ms] Passed 4 tests

A check of server-side resources used by Event Insight
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0434.97 ▼10.20
Dashboard /wp-admin3.44 ▲0.1445.97 ▼4.78
Posts /wp-admin/edit.php3.55 ▲0.2047.88 ▲2.23
Add New Post /wp-admin/post-new.php6.04 ▲0.16101.57 ▲15.41
Media Library /wp-admin/upload.php3.36 ▲0.1336.80 ▲6.19
Event Insight /wp-admin/admin.php?page=event-insight-data3.3332.52
Secrets /wp-admin/admin.php?page=event-insight-secrets3.3333.42
Settings /wp-admin/admin.php?page=event-insight-settings3.3332.01

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Event Insight
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8513.20 ▼1.451.56 ▼0.4942.84 ▼1.01
Dashboard /wp-admin2,237 ▲465.87 ▲0.99108.44 ▼10.5739.10 ▼3.65
Posts /wp-admin/edit.php2,120 ▲342.06 ▲0.0539.46 ▲2.6537.80 ▲3.04
Add New Post /wp-admin/post-new.php1,539 ▲617.77 ▼5.31646.07 ▼16.2062.81 ▲6.02
Media Library /wp-admin/upload.php1,419 ▲344.28 ▲0.0994.63 ▼6.7742.37 ▼1.94
Event Insight /wp-admin/admin.php?page=event-insight-data8712.3832.6731.22
Secrets /wp-admin/admin.php?page=event-insight-secrets8312.0525.7326.40
Settings /wp-admin/admin.php?page=event-insight-settings8002.0324.5726.66

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Almost there! Just fix the following items
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'EventInsight\\WpPlugin\\AdminPage' not found in wp-content/plugins/event-insight/src/DataPage.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'EventInsight\\WpPlugin\\AdminPage' not found in wp-content/plugins/event-insight/src/SettingsPage.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'EventInsight\\WpPlugin\\AdminPage' not found in wp-content/plugins/event-insight/src/SecretsPage.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'EventInsight\\WpPlugin\\OptionsGroup' not found in wp-content/plugins/event-insight/src/SecretOptions.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'EventInsight\\WpPlugin\\Plugin' not found in wp-content/plugins/event-insight/src/Plugin.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'EventInsight\\WpPlugin\\Routes' not found in wp-content/plugins/event-insight/src/Routes.php:20

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 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === event-insight === )
You can take inspiration from this readme.txt

event-insight/event-insight.php 92% from 13 tests

The principal PHP file in "Event Insight" v. 1.0.1 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected873 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP22272557859
JavaScript20513
CSS1021

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity5.53
▷ Minimum class complexity1.00
▷ Maximum class complexity31.00
Average method complexity2.07
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes15
▷ Abstract classes213.33%
▷ Concrete classes1386.67%
▷ Final classes00.00%
Methods63
▷ Static methods00.00%
▷ Public methods4774.60%
▷ Protected methods1625.40%
▷ Private methods00.00%
Functions8
▷ Named functions225.00%
▷ Anonymous functions675.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin