79% custom-css-for-elementor

Code Review | Custom CSS for Elementor

WordPress plugin Custom CSS for Elementor scored79%from 54 tests.

About plugin

  • Plugin page: custom-css-for-el...
  • Plugin version: 2.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.2
  • WordPress version: 6.3.1
  • First release: Oct 19, 2021
  • Latest release: Oct 15, 2023
  • Number of updates: 15
  • Update frequency: every 48.4 days
  • Top authors: sayedulsayem (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

2,000+ active /10,277 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
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼6.37ms] Passed 4 tests

A check of server-side resources used by Custom CSS for Elementor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0937.07 ▼1.65
Dashboard /wp-admin3.39 ▲0.0445.52 ▼12.19
Posts /wp-admin/edit.php3.50 ▲0.1544.48 ▼0.78
Add New Post /wp-admin/post-new.php5.97 ▲0.0884.04 ▼10.87
Media Library /wp-admin/upload.php3.31 ▲0.0837.17 ▲3.41

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

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

Browser metrics Passed 4 tests

Custom CSS for Elementor: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲4714.27 ▼0.261.58 ▼0.0140.22 ▼0.95
Dashboard /wp-admin2,217 ▲365.62 ▼0.0783.04 ▼16.7936.89 ▼1.58
Posts /wp-admin/edit.php2,119 ▲192.01 ▼0.0135.05 ▼0.8335.21 ▼0.24
Add New Post /wp-admin/post-new.php1,540 ▲1423.34 ▲0.18648.21 ▲1.2759.46 ▼0.40
Media Library /wp-admin/upload.php1,419 ▲194.21 ▲0.0399.14 ▲3.6744.42 ▲0.47

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 0% 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
Please take a closer look at the following
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/custom-css-for-elementor/vendor/wikimedia/utfnormal/scripts/generate.php
    • > /wp-content/plugins/custom-css-for-elementor/vendor/wikimedia/utfnormal/scripts/memstress.php
    • > /wp-content/plugins/custom-css-for-elementor/vendor/wikimedia/utfnormal/scripts/benchmark.php
  • 51× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Wikimedia\\CSS\\Objects\\CSSObjectList' not found in wp-content/plugins/custom-css-for-elementor/vendor/wikimedia/css-sanitizer/src/Objects/TokenList.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'Wikimedia\\CSS\\Objects\\CSSObject' not found in wp-content/plugins/custom-css-for-elementor/vendor/wikimedia/css-sanitizer/src/Objects/ComponentValue.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Wikimedia\\CSS\\Sanitizer\\Sanitizer' not found in wp-content/plugins/custom-css-for-elementor/vendor/wikimedia/css-sanitizer/src/Sanitizer/StylesheetSanitizer.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Wikimedia\\CSS\\Sanitizer\\RuleSanitizer' not found in wp-content/plugins/custom-css-for-elementor/vendor/wikimedia/css-sanitizer/src/Sanitizer/PageAtRuleSanitizer.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'Wikimedia\\CSS\\Sanitizer\\RuleSanitizer' not found in wp-content/plugins/custom-css-for-elementor/vendor/wikimedia/css-sanitizer/src/Sanitizer/KeyframesAtRuleSanitizer.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'Wikimedia\\CSS\\Grammar\\Matcher' not found in wp-content/plugins/custom-css-for-elementor/vendor/wikimedia/css-sanitizer/src/Grammar/NoWhitespace.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Wikimedia\\CSS\\Objects\\ComponentValue' not found in wp-content/plugins/custom-css-for-elementor/vendor/wikimedia/css-sanitizer/src/Objects/SimpleBlock.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Wikimedia\\CSS\\Grammar\\Matcher' not found in wp-content/plugins/custom-css-for-elementor/vendor/wikimedia/css-sanitizer/src/Grammar/Alternative.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Wikimedia\\CSS\\Grammar\\Matcher' not found in wp-content/plugins/custom-css-for-elementor/vendor/wikimedia/css-sanitizer/src/Grammar/FunctionMatcher.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'Wikimedia\\CSS\\Grammar\\Matcher' not found in wp-content/plugins/custom-css-for-elementor/vendor/wikimedia/css-sanitizer/src/Grammar/NothingMatcher.php:14

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: custom css, elementor addons, responsive css, elementor, css

custom-css-for-elementor/custom-css-for-elementor.php Passed 13 tests

Analyzing the main PHP file in "Custom CSS for Elementor" version 2.0.0
129 characters long description:
A lightweight plugin that open an option to add custom CSS code for each device (desktop, tablets, mobiles) by elementor widgets.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin8,995 lines of code in 94 files:
LanguageFilesBlank linesComment linesLines of code
PHP841,5133,8838,473
Markdown71430320
JSON100172
JavaScript28230

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity16.75
▷ Minimum class complexity1.00
▷ Maximum class complexity198.00
Average method complexity3.45
▷ Minimum method complexity1.00
▷ Maximum method complexity70.00
Code structure
Namespaces12
Interfaces4
Traits0
Classes67
▷ Abstract classes57.46%
▷ Concrete classes6292.54%
▷ Final classes11.61%
Methods469
▷ Static methods8918.98%
▷ Public methods33671.64%
▷ Protected methods11825.16%
▷ Private methods153.20%
Functions47
▷ Named functions1123.40%
▷ Anonymous functions3676.60%
Constants81
▷ Global constants89.88%
▷ Class constants7390.12%
▷ Public constants7298.63%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin