84% haq-tabed-slider

Code Review | HAQ Tabed Slider

WordPress plugin HAQ Tabed Slider scored84%from 54 tests.

About plugin

  • Plugin page: haq-tabed-slider
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.0.1
  • WordPress version: 6.3.1
  • First release: May 1, 2019
  • Latest release: Aug 4, 2022
  • Number of updates: 11
  • Update frequency: every 108.4 days
  • Top authors: husainahmedqureshi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /624 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.10MB] [CPU: ▼6.40ms] Passed 4 tests

This is a short check of server-side resources used by HAQ Tabed Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1042.26 ▼5.82
Dashboard /wp-admin3.40 ▲0.1051.32 ▼4.91
Posts /wp-admin/edit.php3.52 ▲0.1648.57 ▼4.34
Add New Post /wp-admin/post-new.php5.98 ▲0.1089.43 ▼10.54
Media Library /wp-admin/upload.php3.33 ▲0.1040.75 ▼0.61
Add New Slider /wp-admin/post-new.php?post_type=haq_tabed_slider3.3752.43
All Sliders /wp-admin/edit.php?post_type=haq_tabed_slider3.3735.84

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
HAQTS_default_settings
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by HAQ Tabed Slider
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6414.42 ▼0.232.76 ▲0.8944.30 ▼0.61
Dashboard /wp-admin2,219 ▲425.62 ▼0.0786.04 ▼11.9342.31 ▲0.18
Posts /wp-admin/edit.php2,130 ▲302.00 ▼0.0135.77 ▼6.1036.72 ▲0.44
Add New Post /wp-admin/post-new.php1,568 ▲3723.24 ▲0.09673.52 ▼11.4255.38 ▲1.51
Media Library /wp-admin/upload.php1,427 ▲304.26 ▲0.04108.70 ▲2.0145.81 ▼1.09
Add New Slider /wp-admin/post-new.php?post_type=haq_tabed_slider1,8083.8365.5235.25
All Sliders /wp-admin/edit.php?post_type=haq_tabed_slider1,1121.9634.7330.14

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • HAQTS_default_settings

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/haq-tabed-slider/haq-tabed-slider.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5 in haq-tabed-slider/assets to your readme.txt
The official readme.txt might help

haq-tabed-slider/haq-tabed-slider.php Passed 13 tests

This is the main PHP file of "HAQ Tabed Slider" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
107 characters long description:
This plugin creates an image slideshow from the images you upload using the jQuery HAQ Tabed Slider plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin4,641 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript319064,096
PHP37226380
CSS2262165

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity1.92
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods17.69%
▷ Public methods1292.31%
▷ Protected methods00.00%
▷ Private methods17.69%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
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
css/delete-icon.png3.62KB1.97KB▼ 45.65%