89% inline-svg-elementor

Code Review | Elementor Inline SVG

WordPress plugin Elementor Inline SVG scored89%from 54 tests.

About plugin

  • Plugin page: inline-svg-elementor
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.8.1
  • WordPress version: 6.3.1
  • First release: Apr 6, 2017
  • Latest release: Dec 22, 2017
  • Number of updates: 21
  • Update frequency: every 12.4 days
  • Top authors: namogo (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

1,000+ active /23,987 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.32ms] Passed 4 tests

An overview of server-side resources used by Elementor Inline SVG
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.47 ▼8.19
Dashboard /wp-admin3.31 ▲0.0148.12 ▼3.69
Posts /wp-admin/edit.php3.36 ▲0.0050.28 ▲2.26
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.04 ▼1.92
Media Library /wp-admin/upload.php3.23 ▲0.0039.25 ▲0.51

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Elementor Inline SVG: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6414.34 ▲0.061.96 ▼0.0841.14 ▼6.13
Dashboard /wp-admin2,206 ▲265.49 ▼0.0986.12 ▼9.7939.23 ▼15.81
Posts /wp-admin/edit.php2,111 ▲112.05 ▲0.0941.10 ▲7.9737.31 ▼0.27
Add New Post /wp-admin/post-new.php1,532 ▲422.94 ▼0.11679.50 ▼32.4649.52 ▼4.75
Media Library /wp-admin/upload.php1,411 ▲84.10 ▼0.15111.38 ▲6.0047.11 ▲1.03

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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
3 plugin tags: inline, svg, elementor

inline-svg-elementor/elementor-inline-svg.php 85% from 13 tests

The primary PHP file in "Elementor Inline SVG" version 1.2.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • 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
  • Main file name: Name the main plugin file the same as the plugin slug ("inline-svg-elementor.php" instead of "elementor-inline-svg.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected467 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP497168376
JavaScript2281682
CSS2009

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity6.50
▷ Minimum class complexity5.00
▷ Maximum class complexity8.00
Average method complexity1.65
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods1164.71%
▷ Protected methods317.65%
▷ Private methods317.65%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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