84% slithy-web

Code Review | Slithy Web

WordPress plugin Slithy Web scored 84% from 54 tests.

About plugin

  • Plugin page: slithy-web
  • Plugin version: 1.19.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 6.3.1
  • First release: Apr 25, 2020
  • Latest release: May 8, 2021
  • Number of updates: 20
  • Update frequency: every 20.4 days
  • Top authors: wrey75 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 817 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▼3.10ms] Passed 4 tests

An overview of server-side resources used by Slithy Web
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.78 ▼1.77
Dashboard /wp-admin3.40 ▲0.0947.24 ▼6.33
Posts /wp-admin/edit.php3.51 ▲0.1548.66 ▼5.42
Add New Post /wp-admin/post-new.php5.98 ▲0.0994.90 ▲5.31
Media Library /wp-admin/upload.php3.32 ▲0.0935.34 ▲1.11
Slithy web /wp-admin/options-general.php?page=slithyweb_admin_menu3.2831.33

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Slithy Web
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.16 ▼1.481.62 ▼0.2338.25 ▼5.94
Dashboard /wp-admin2,207 ▲195.86 ▼0.0297.82 ▼18.2638.45 ▼8.11
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0438.75 ▼0.7833.67 ▼2.38
Add New Post /wp-admin/post-new.php1,517 ▼1617.62 ▼5.71591.52 ▼93.2153.34 ▼6.74
Media Library /wp-admin/upload.php1,395 ▲74.23 ▲0.0595.13 ▼10.2342.65 ▼4.36
Slithy web /wp-admin/options-general.php?page=slithyweb_admin_menu8332.0522.1226.97

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 9 options
    • slithyweb_maxage
    • db_upgraded
    • widget_recent-posts
    • slithyweb_last_modified
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • slithyweb_etag
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Undefined index: PHP_AUTH_USER in wp-content/plugins/slithy-web/inc/backuper.php on line 24
    • > PHP Notice
      Undefined index: PHP_AUTH_PW in wp-content/plugins/slithy-web/inc/backuper.php on line 25
    • > PHP Notice
      Undefined index: login in wp-content/plugins/slithy-web/inc/backuper.php on line 26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif).), #2 (This is the second screen shot)
You can look at the official readme.txt

slithy-web/slithyweb.php 92% from 13 tests

The main file in "Slithy Web" v. 1.19.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("slithy-web.php" instead of "slithyweb.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected671 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP895169549
Markdown3560101
CSS14119
JavaScript1302

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity20.75
▷ Minimum class complexity8.00
▷ Maximum class complexity43.00
Average method complexity3.47
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods21
▷ Static methods419.05%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions27
▷ Named functions1037.04%
▷ Anonymous functions1762.96%
Constants9
▷ Global constants111.11%
▷ Class constants888.89%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin