84% elevio

Code Review | Elevio

WordPress plugin Elevio scored 84% from 54 tests.

About plugin

  • Plugin page: elevio
  • Plugin version: 4.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-5.9.2
  • WordPress version: 6.3.1
  • First release: Sep 14, 2014
  • Latest release: Apr 4, 2022
  • Number of updates: 59
  • Update frequency: every 46.8 days
  • Top authors: elevio (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30+ active / 5,514 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Elevio
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.38 ▼3.57
Dashboard /wp-admin3.33 ▲0.0248.33 ▲0.54
Posts /wp-admin/edit.php3.38 ▲0.0243.22 ▼7.08
Add New Post /wp-admin/post-new.php5.91 ▲0.0286.60 ▼9.07
Media Library /wp-admin/upload.php3.25 ▲0.0236.46 ▲2.57
Settings /wp-admin/admin.php?page=elevio_settings3.2741.51

Server storage [IO: ▲0.04MB] [DB: ▲0.33MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Elevio
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲6713.15 ▼1.601.79 ▼0.4142.76 ▼8.10
Dashboard /wp-admin2,218 ▲275.83 ▲0.9397.25 ▼8.0381.15 ▲42.10
Posts /wp-admin/edit.php2,116 ▲272.02 ▼0.0235.27 ▼4.3132.67 ▼3.17
Add New Post /wp-admin/post-new.php1,541 ▲723.33 ▲0.01700.79 ▲70.4353.00 ▼2.72
Media Library /wp-admin/upload.php1,406 ▲214.23 ▲0.0799.19 ▲2.0074.89 ▲33.60
Settings /wp-admin/admin.php?page=elevio_settings1,0952.1526.7576.74

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • 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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/elevio/elevio.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (Knowledge base - powered by Zendesk / Desk.com / Uservoice / Custom articles), #2 (Live Chat - Powered by Olark, LiveChat, Zopim), #3 (Support - Powered by Zendesk / Desk.com / Uservoice), #4 (Existing support tickets), #5 (View support ticket history), #6 (RSS Feed)
You can look at the official readme.txt

elevio/elevio.php Passed 13 tests

The primary PHP file in "Elevio" version 4.4.1 is used by WordPress to initiate all plugin functionality
57 characters long description:
A better way for your users to access the help they need.

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
Good job! No executable or dangerous file extensions detected891 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP12206199877
CSS13014

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity9.64
▷ Minimum class complexity1.00
▷ Maximum class complexity25.00
Average method complexity2.98
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes19.09%
▷ Concrete classes1090.91%
▷ Final classes110.00%
Methods49
▷ Static methods36.12%
▷ Public methods4183.67%
▷ Protected methods612.24%
▷ Private methods24.08%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
plugin_files/images/favicon.png1.15KB0.81KB▼ 29.82%
plugin_files/images/logo.png1.24KB1.40KB0.00%