83% jeba-plus-multi-slider

Code Review | Jeba Plus Multi Slider

WordPress plugin Jeba Plus Multi Slider scored83%from 54 tests.

About plugin

  • Plugin page: jeba-plus-multi-s...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3
  • WordPress version: 6.3.1
  • First release: Sep 7, 2015
  • Latest release: Sep 7, 2015
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: jahed (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /812 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.23ms] Passed 4 tests

Server-side resources used by Jeba Plus Multi Slider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0535.64 ▼1.58
Dashboard /wp-admin3.35 ▲0.0544.25 ▼1.17
Posts /wp-admin/edit.php3.40 ▲0.0450.85 ▲3.82
Add New Post /wp-admin/post-new.php5.93 ▲0.0480.52 ▼9.23
Media Library /wp-admin/upload.php3.27 ▲0.0432.69 ▼0.92
Add New /wp-admin/post-new.php?post_type=jeba-pitems3.4047.72
JebaSliders /wp-admin/edit.php?post_type=jeba-pitems3.3237.38
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=jeba-pitems3.2635.52
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=jeba-pitems3.2633.70

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Jeba Plus Multi Slider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,970 ▲22413.77 ▼0.6011.41 ▲9.5241.01 ▲0.75
Dashboard /wp-admin2,247 ▲735.88 ▲0.0399.09 ▼7.7839.72 ▼11.38
Posts /wp-admin/edit.php2,130 ▲412.03 ▼0.0237.01 ▼2.2733.57 ▼1.88
Add New Post /wp-admin/post-new.php1,549 ▲1617.68 ▼5.39655.56 ▲11.5052.05 ▼3.82
Media Library /wp-admin/upload.php1,426 ▲384.23 ▼0.1799.43 ▼1.5144.09 ▼1.50
Add New /wp-admin/post-new.php?post_type=jeba-pitems2,3807.80191.9464.34
JebaSliders /wp-admin/edit.php?post_type=jeba-pitems1,1461.9830.5933.29
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=jeba-pitems1,4812.1829.7731.88
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=jeba-pitems1,3452.1530.1028.99

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • category_children
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions 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 add_action() in wp-content/plugins/jeba-plus-multi-slider/jeba-index.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues 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
These attributes need to be fixed:
  • Contributors: Plugin contributors field is missing
  • Screenshots: Please add images for these screenshots: #1 (How to use shortcode in editor.), #2 (Another demo.)
Please take inspiration from this readme.txt

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

The main file in "Jeba Plus Multi Slider" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 349 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("jeba-plus-multi-slider.php" instead of "jeba-index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin751 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2151177584
PHP14010166
CSS1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.06
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in 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
js/img/plus-sprite.png3.34KB2.58KB▼ 22.62%