94% slate

Code Review | SVG Logo and Text Effects

WordPress plugin SVG Logo and Text Effects scored 94% from 54 tests.

About plugin

  • Plugin page: slate
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.8
  • WordPress version: 5.8.1
  • First release: Nov 4, 2016
  • Latest release: Nov 1, 2019
  • Number of updates: 34
  • Update frequency: every 32.1 days
  • Top authors: dashedslug (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 4,406 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.33MB] [CPU: ▼137.65ms] Passed 4 tests

Server-side resources used by SVG Logo and Text Effects
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.17 ▲0.3339.65 ▲4.78
Dashboard /wp-admin3.39 ▲0.3450.62 ▲3.12
Posts /wp-admin/edit.php3.50 ▲0.3948.13 ▲1.15
Add New Post /wp-admin/post-new.php5.75 ▲0.3294.91 ▼551.01
Media Library /wp-admin/upload.php3.33 ▲0.3329.98 ▼3.84
SVG Logo and Text Effects /wp-admin/options-general.php?page=slate_settings_page3.3033.04

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 49 new files
Database: no new tables, 2 new options
New WordPress options
slate-opt-plugin-version
slate-opt-cache

Browser metrics Passed 4 tests

This is an overview of browser requirements for SVG Logo and Text Effects
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,845 ▲1,24923.11 ▲7.4844.83 ▲32.6048.25 ▼5.83
Dashboard /wp-admin3,955 ▲1,02113.63 ▲7.68339.82 ▲190.71154.33 ▲43.29
Posts /wp-admin/edit.php2,749 ▲102.73 ▲0.0266.89 ▲7.9584.25 ▼2.53
Add New Post /wp-admin/post-new.php1,681 ▲6618.84 ▼3.03403.35 ▲108.89106.04 ▲1.18
Media Library /wp-admin/upload.php1,820 ▲135.09 ▲0.04148.67 ▼13.58118.43 ▲0.74
SVG Logo and Text Effects /wp-admin/options-general.php?page=slate_settings_page1,1632.3763.0182.08

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 18× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/slate/resources/fill/gradient_radial.php
    • > /wp-content/plugins/slate/resources/shape/shadow.php
    • > /wp-content/plugins/slate/resources/fill/stripes.php
    • > /wp-content/plugins/slate/resources/fill/color.php
    • > /wp-content/plugins/slate/resources/fill/gradient_linear.php
    • > /wp-content/plugins/slate/popups/slate-shapes.php
    • > /wp-content/plugins/slate/resources/shape/plain.php
    • > /wp-content/plugins/slate/resources/fill/dots.php
    • > /wp-content/plugins/slate/resources/filter/shadow.php
    • > /wp-content/plugins/slate/popups/slate-raster.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
4 plugin tags: artistic text, filters, effects, svg

slate/slate.php Passed 13 tests

This is the main PHP file of "SVG Logo and Text Effects" version 1.3.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
72 characters long description:
Insert text with visually stunning SVG effects into your WordPress site.

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
Success! There were no dangerous files found in this plugin1,332 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP203642951,205
JavaScript63434114
CSS41213

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity144.00
▷ Minimum class complexity144.00
▷ Maximum class complexity144.00
Average method complexity4.40
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods42
▷ Static methods1330.95%
▷ Public methods3173.81%
▷ Protected methods00.00%
▷ Private methods1126.19%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants00.00%
▷ Class constants7100.00%
▷ Public constants7100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/sprites/logo-114x154.png3.96KB4.20KB0.00%
assets/sprites/logo-32x32.png0.76KB1.07KB0.00%