83% instana-eum

Code Review | Instana End User Monitoring

WordPress plugin Instana End User Monitoring scored83%from 54 tests.

About plugin

  • Plugin page: instana-eum
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 19, 2017
  • Latest release: Nov 6, 2017
  • Number of updates: 9
  • Update frequency: every 12.2 days
  • Top authors: instana (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,023 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.96ms] Passed 4 tests

A check of server-side resources used by Instana End User Monitoring
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.05 ▲2.72
Dashboard /wp-admin3.33 ▲0.0348.61 ▼6.68
Posts /wp-admin/edit.php3.38 ▲0.0252.03 ▲4.50
Add New Post /wp-admin/post-new.php5.91 ▲0.0297.97 ▲0.24
Media Library /wp-admin/upload.php3.25 ▲0.0236.03 ▼4.10
Instana EUM /wp-admin/options-general.php?page=instana-eum3.2234.38

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Instana End User Monitoring
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.31 ▼0.661.88 ▼0.3639.98 ▼8.39
Dashboard /wp-admin2,207 ▲195.89 ▼0.02106.69 ▼13.1942.26 ▼3.08
Posts /wp-admin/edit.php2,090 ▲12.04 ▲0.0439.50 ▲0.8234.84 ▼0.54
Add New Post /wp-admin/post-new.php1,517 ▼1117.52 ▼1.01684.43 ▲53.9454.80 ▲0.17
Media Library /wp-admin/upload.php1,395 ▲104.22 ▲0.01100.27 ▼5.4449.32 ▲4.58
Instana EUM /wp-admin/options-general.php?page=instana-eum8442.0523.2534.67

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Instana\\add_action() in wp-content/plugins/instana-eum/wp-instana-eum.php:58

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

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Requires at least: The plugin version is formatted incorrectly
  • Screenshots: A description for screenshot #1 is required in instana-eum/assets to your readme.txt
You can take inspiration from this readme.txt

instana-eum/wp-instana-eum.php 92% from 13 tests

The entry point to "Instana End User Monitoring" version 1.0.4 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("instana-eum.php" instead of "wp-instana-eum.php")

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
There were no executable files found in this plugin185 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11610185

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions18.33%
▷ Anonymous functions1191.67%
Constants8
▷ Global constants00.00%
▷ Class constants8100.00%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin