68% techworm-image-slider

Code Review | Techworm Image Slider

WordPress plugin Techworm Image Slider scored68%from 54 tests.

About plugin

  • Plugin page: techworm-image-sl...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: May 24, 2018
  • Latest release: May 24, 2018
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: techworm (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /550 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.90MB] [CPU: ▼34.54ms] Passed 4 tests

Analyzing server-side resources used by Techworm Image Slider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0636.93 ▼5.14
Dashboard /wp-admin3.04 ▼0.2624.26 ▼25.39
Posts /wp-admin/edit.php3.04 ▼0.3225.31 ▼23.32
Add New Post /wp-admin/post-new.php3.04 ▼2.8523.42 ▼79.58
Media Library /wp-admin/upload.php3.04 ▼0.1926.17 ▼9.87
Add New /wp-admin/post-new.php?post_type=tisimage3.0424.51
Add Carousel Category /wp-admin/edit-tags.php?taxonomy=Carousel_categories&post_type=tisimage3.0423.74
Carousel Settings /wp-admin/edit.php?post_type=tisimage&page=tis_reading3.0424.05
Manage Slider /wp-admin/edit.php?post_type=tisimage3.0423.00

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Techworm Image Slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,961 ▲17513.42 ▼1.207.93 ▲6.1541.76 ▲3.25
Dashboard /wp-admin2,240 ▲635.58 ▲0.0881.11 ▼7.0739.25 ▼3.10
Posts /wp-admin/edit.php2,127 ▲272.03 ▲0.0234.44 ▼3.0435.75 ▼0.36
Add New Post /wp-admin/post-new.php1,719 ▲18222.44 ▲4.32652.50 ▲27.7158.78 ▼12.38
Media Library /wp-admin/upload.php1,445 ▲454.23 ▲0.03103.78 ▲9.4550.31 ▲8.12
Add New /wp-admin/post-new.php?post_type=tisimage2,4087.60189.6874.27
Add Carousel Category /wp-admin/edit-tags.php?taxonomy=Carousel_categories&post_type=tisimage1,3192.1429.2030.10
Carousel Settings /wp-admin/edit.php?post_type=tisimage&page=tis_reading8502.0524.3830.10
Manage Slider /wp-admin/edit.php?post_type=tisimage1,1261.9430.5132.62

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=tisimage
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

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 items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/techworm-image-slider/views/carasoul_setting.php:1

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
These attributes need your attention:
  • Contributors: Contributors not specified
Please take inspiration from this readme.txt

techworm-image-slider/tis_image_function.php 92% from 13 tests

Analyzing the main PHP file in "Techworm Image Slider" version 1.0
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("techworm-image-slider.php" instead of "tis_image_function.php")

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
Good job! No executable or dangerous file extensions detected466 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS41833268
PHP24628151
JavaScript10047

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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