83% jeba-divas-slider

Code Review | Jeba Divas Slider

WordPress plugin Jeba Divas Slider scored83%from 54 tests.

About plugin

  • Plugin page: jeba-divas-slider
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1
  • WordPress version: 6.3.1
  • First release: Dec 17, 2014
  • Latest release: Dec 17, 2014
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: jahed (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /790 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Jeba Divas Slider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.98 ▼7.32
Dashboard /wp-admin3.33 ▲0.0245.78 ▼6.27
Posts /wp-admin/edit.php3.38 ▲0.0248.36 ▲1.55
Add New Post /wp-admin/post-new.php5.91 ▲0.0282.10 ▼18.93
Media Library /wp-admin/upload.php3.25 ▲0.0243.03 ▲8.90
Add New /wp-admin/post-new.php?post_type=jeba-eitems3.3850.68
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=jeba-eitems3.2437.73
JebaSliders /wp-admin/edit.php?post_type=jeba-eitems3.3034.91
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=jeba-eitems3.2431.88

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
category_children
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Jeba Divas Slider
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,938 ▲20314.06 ▼0.626.49 ▲4.6239.76 ▼4.92
Dashboard /wp-admin2,247 ▲596.03 ▲0.20107.29 ▼10.4836.98 ▼8.24
Posts /wp-admin/edit.php2,133 ▲412.02 ▲0.0039.28 ▼0.7635.87 ▲1.71
Add New Post /wp-admin/post-new.php1,712 ▲19824.80 ▲7.29604.19 ▼59.0867.56 ▲10.01
Media Library /wp-admin/upload.php1,429 ▲474.22 ▲0.0598.20 ▲2.2944.61 ▲1.84
Add New /wp-admin/post-new.php?post_type=jeba-eitems2,3837.87178.4769.19
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=jeba-eitems1,4812.1928.5432.06
JebaSliders /wp-admin/edit.php?post_type=jeba-eitems1,1461.9632.0331.13
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=jeba-eitems1,3482.1830.7030.05

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • category_children
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

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
Even though no errors were found, 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jeba-divas-slider/jeba-index.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (How to use shortcode in editor.), #2 (Another demo.)
  • Contributors: The plugin contributors field is missing
The official readme.txt is a good inspiration

jeba-divas-slider/jeba-index.php 85% from 13 tests

The main file in "Jeba Divas Slider" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("jeba-divas-slider.php" instead of "jeba-index.php")
  • Description: The description should be shorter than 140 characters (currently 355 characters long)

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
No dangerous file extensions were detected446 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS25756332
PHP120884
SVG50429
JavaScript1011

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.04
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
js/images/prev.png0.29KB0.20KB▼ 29.83%
js/images/next.png0.29KB0.21KB▼ 27.57%
js/images/backup_img.png2.97KB2.78KB▼ 6.60%
js/images/DivasSliderLogo.png8.69KB6.37KB▼ 26.73%