90% safelayout-elegant-icons

Code Review | Safelayout Elegant Icons - WordPress icon block

WordPress plugin Safelayout Elegant Icons - WordPress icon block scored90%from 54 tests.

About plugin

  • Plugin page: safelayout-elegan...
  • Plugin version: 1.0.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.2-6.4
  • WordPress version: 6.3.1
  • First release: Oct 29, 2023
  • Latest release: Nov 29, 2023
  • Number of updates: 9
  • Update frequency: every 3.5 days
  • Top authors: safelayout (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /159 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼4.07ms] Passed 4 tests

This is a short check of server-side resources used by Safelayout Elegant Icons - WordPress icon block
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1539.46 ▼3.14
Dashboard /wp-admin3.44 ▲0.0948.29 ▼12.96
Posts /wp-admin/edit.php3.55 ▲0.2045.55 ▼1.24
Add New Post /wp-admin/post-new.php6.04 ▲0.1595.03 ▲1.08
Media Library /wp-admin/upload.php3.36 ▲0.1334.75 ▲3.94
Safelayout Icons /wp-admin/options-general.php?page=safelayout-elegant-icons3.3331.51

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
safelayout_icons_packs
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
safelayout_icons_options_rate

Browser metrics Passed 4 tests

Safelayout Elegant Icons - WordPress icon block: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲3814.37 ▲0.021.72 ▲0.0343.00 ▼0.65
Dashboard /wp-admin2,199 ▲215.64 ▲0.01135.00 ▲19.0358.02 ▲15.57
Posts /wp-admin/edit.php2,104 ▲41.94 ▼0.0335.47 ▼0.5633.77 ▼1.89
Add New Post /wp-admin/post-new.php1,558 ▲3223.90 ▲0.72723.58 ▲23.8436.62 ▼19.27
Media Library /wp-admin/upload.php1,404 ▲14.16 ▼0.0394.31 ▼8.8840.77 ▼3.25
Safelayout Icons /wp-admin/options-general.php?page=safelayout-elegant-icons8512.0126.9429.19

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
The following items require your attention
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • safelayout_icons_options_rate
    • theysaidso_admin_options
    • safelayout_icons_packs

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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 a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: icon, svg icon, wordpress icons, icon box, icon block

safelayout-elegant-icons/safelayout-elegant-icons.php Passed 13 tests

The principal PHP file in "Safelayout Elegant Icons - WordPress icon block" v. 1.0.5 is loaded by WordPress automatically on each request
20 characters long description:
Beautiful SVG icons.

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 detected1,070 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP34535420
JSON300316
CSS7321249
JavaScript70085

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity1.90
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin