90% soivigol-block-slider

Code Review | Soivigol Block Slider

WordPress plugin Soivigol Block Slider scored90%from 54 tests.

About plugin

  • Plugin page: soivigol-block-sl...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.3.1
  • WordPress version: 6.3.1
  • First release: Jun 1, 2023
  • Latest release: Sep 12, 2023
  • Number of updates: 5
  • Update frequency: every 20.6 days
  • Top authors: soivigol (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /319 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
This plugin's installer ran successfully

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

Server-side resources used by Soivigol Block Slider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.70 ▼0.92
Dashboard /wp-admin3.32 ▲0.0248.26 ▼10.90
Posts /wp-admin/edit.php3.37 ▲0.0246.52 ▲0.65
Add New Post /wp-admin/post-new.php5.91 ▲0.0281.10 ▼4.76
Media Library /wp-admin/upload.php3.25 ▲0.0236.79 ▲4.50

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Soivigol Block Slider: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.12 ▼1.261.89 ▲0.0343.59 ▲4.98
Dashboard /wp-admin2,206 ▲175.76 ▼0.1497.16 ▼32.7737.78 ▼9.23
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0637.51 ▼4.6037.19 ▼0.65
Add New Post /wp-admin/post-new.php6,360 ▲4,82728.15 ▲4.75890.65 ▲215.5641.80 ▼10.15
Media Library /wp-admin/upload.php1,391 ▼04.16 ▼0.03108.82 ▲1.8846.99 ▲0.38

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention: The official readme.txt is a good inspiration

soivigol-block-slider/soivigol-block-slider.php Passed 13 tests

The entry point to "Soivigol Block Slider" version 1.0.1 is a PHP file that has certain tags in its header comment area
74 characters long description:
This a block to create a slider with any elements introduced in each item.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected695 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1045130275
Sass4170210
JSON400168
PHP332737
CSS5005

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin