83% jeba-cute-carousel

Code Review | Jeba tiny carousel

WordPress plugin Jeba tiny carousel scored83%from 54 tests.

About plugin

  • Plugin page: jeba-cute-carousel
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: Sep 12, 2014
  • Latest release: Sep 13, 2014
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: jahed (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /861 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.44ms] Passed 4 tests

Server-side resources used by Jeba tiny carousel
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.71 ▼3.51
Dashboard /wp-admin3.33 ▼0.0253.46 ▼12.27
Posts /wp-admin/edit.php3.38 ▲0.0248.86 ▼7.50
Add New Post /wp-admin/post-new.php5.91 ▲0.0297.74 ▼2.48
Media Library /wp-admin/upload.php3.25 ▲0.0238.33 ▲1.85
JebaCarousels /wp-admin/edit.php?post_type=jeba-carousel3.2938.43
Add New /wp-admin/post-new.php?post_type=jeba-carousel3.3154.12

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Jeba tiny carousel
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,939 ▲17813.66 ▼0.639.66 ▲7.7841.11 ▲0.59
Dashboard /wp-admin2,255 ▲585.90 ▲0.95103.07 ▼19.2341.53 ▼2.31
Posts /wp-admin/edit.php2,131 ▲282.06 ▼0.0439.30 ▼2.4135.99 ▲0.05
Add New Post /wp-admin/post-new.php1,553 ▲2721.12 ▲3.50695.09 ▲71.4056.07 ▲4.18
Media Library /wp-admin/upload.php1,434 ▲374.21 ▼0.00102.74 ▼4.8546.24 ▼1.46
JebaCarousels /wp-admin/edit.php?post_type=jeba-carousel1,1012.0037.0830.54
Add New /wp-admin/post-new.php?post_type=jeba-carousel1,7443.6174.3237.53

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jeba-cute-carousel/jeba-cute-carousel.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jeba-cute-carousel/jeba-tiny-carousel.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Contributors: The plugin contributors field is missing
  • Screenshots: These screenshots require images: #1 (Installed in demo server.), #2 (Another demo.)
The official readme.txt might help

jeba-cute-carousel/jeba-cute-carousel.php 92% from 13 tests

Analyzing the main PHP file in "Jeba tiny carousel" version 1.0
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 391 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin574 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript24746260
PHP21816248
CSS17166

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
js/button-next.png0.58KB0.49KB▼ 15.45%
js/button-previous.png0.59KB0.49KB▼ 17.08%