66% minitek-slider

Code Review | Minitek Slider

WordPress plugin Minitek Slider scored66%from 54 tests.

About plugin

  • Plugin page: minitek-slider
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Jan 31, 2020
  • Latest release: Jul 11, 2022
  • Number of updates: 11
  • Update frequency: every 81.1 days
  • Top authors: minitekgr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /654 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼5.86ms] Passed 4 tests

A check of server-side resources used by Minitek Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0543.02 ▲1.64
Dashboard /wp-admin3.35 ▲0.0544.20 ▼3.01
Posts /wp-admin/edit.php3.40 ▲0.0445.79 ▼0.83
Add New Post /wp-admin/post-new.php5.96 ▲0.0786.54 ▼20.67
Media Library /wp-admin/upload.php3.27 ▲0.0436.55 ▲1.08
Dashboard /wp-admin/edit.php?post_type=mslider&page=minitek-slider-dashboard3.3130.56
Sliders /wp-admin/edit.php?post_type=mslider3.3134.97
Add New Slider /wp-admin/post-new.php?post_type=mslider3.4443.20

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 76 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Minitek Slider
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,943 ▲18613.99 ▼0.399.60 ▲7.6388.71 ▲35.79
Dashboard /wp-admin2,260 ▲724.88 ▼1.01134.20 ▲23.4473.76 ▲31.66
Posts /wp-admin/edit.php2,151 ▲622.04 ▲0.0440.19 ▼1.4051.75 ▲17.58
Add New Post /wp-admin/post-new.php1,551 ▲823.39 ▲5.06655.77 ▲49.7649.72 ▼5.25
Media Library /wp-admin/upload.php1,434 ▲464.22 ▼0.0095.52 ▼6.7058.70 ▲11.32
Dashboard /wp-admin/edit.php?post_type=mslider&page=minitek-slider-dashboard1,0652.1727.8451.64
Sliders /wp-admin/edit.php?post_type=mslider1,0991.9535.5028.67
Add New Slider /wp-admin/post-new.php?post_type=mslider4,7383.9078.8589.72

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/post-new.php?post_type=mslider
    • > User deprecated in wp-includes/functions.php+5737
    Function WP_User_Query was called with an argument that is deprecated since version 5.9.0! who is deprecated. Use capability instead.

SRP 0% 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
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/minitek-slider/admin/partials/fields/minitek-slider-admin-field-slider-themes.php
    • > /wp-content/plugins/minitek-slider/public/partials/sliders/media-slider.php
  • 59× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: items in wp-content/plugins/minitek-slider/public/partials/sliders/article-slider-4.php on line 10
    • > PHP Notice
      Undefined variable: items in wp-content/plugins/minitek-slider/public/partials/sliders/image-slider.php on line 10
    • > PHP Notice
      Undefined index: selections in wp-content/plugins/minitek-slider/admin/partials/fields/minitek-slider-admin-field-radio.php on line 22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/minitek-slider/admin/partials/metabox/minitek-slider-admin-metabox-slider-options-detail-box.php:35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/minitek-slider/public/partials/minitek-slider-public-items.php:10
    • > PHP Notice
      Undefined variable: slider_options in wp-content/plugins/minitek-slider/public/partials/minitek-slider-public-items-wrapper.php on line 17
    • > PHP Notice
      Undefined variable: atts in wp-content/plugins/minitek-slider/admin/partials/fields/minitek-slider-admin-field-checkbox.php on line 17
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/minitek-slider/public/partials/minitek-slider-public-items-wrapper.php on line 17
    • > PHP Notice
      Undefined variable: items in wp-content/plugins/minitek-slider/public/partials/sliders/article-slider-5.php on line 10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/minitek-slider/admin/partials/metabox/minitek-slider-admin-metabox-slider-options-responsive.php:10

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
    • > GET request to /wp-admin/edit.php?post_type=mslider&page=minitek-slider-dashboard
    • > Network (severe)
    wp-content/plugins/minitek-slider/admin/js/minitek-slider-admin-update.js?ver=1.2.0 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === minitek-slider === )
  • Tags: There are too many tags (11 tag instead of maximum 10)
You can look at the official readme.txt

minitek-slider/minitek-slider.php Passed 13 tests

The primary PHP file in "Minitek Slider" version 1.2.0 is used by WordPress to initiate all plugin functionality
43 characters long description:
A powerful responsive slider for WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin8,487 lines of code in 59 files:
LanguageFilesBlank linesComment linesLines of code
PHP471,6731,2856,817
CSS52781141,146
JavaScript5106125506
SVG10011
Markdown1607

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity16.83
▷ Minimum class complexity1.00
▷ Maximum class complexity80.00
Average method complexity4.11
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods61
▷ Static methods34.92%
▷ Public methods4980.33%
▷ Protected methods00.00%
▷ Private methods1219.67%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/images/logo.png2.96KB0.12KB▼ 95.81%