84% carousel-without-jetpack

Code Review | Gallery Carousel Without JetPack

WordPress plugin Gallery Carousel Without JetPack scored84%from 54 tests.

About plugin

  • Plugin page: carousel-without-...
  • Plugin version: 0.7.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.1-4.3
  • WordPress version: 6.3.1
  • First release: Jul 20, 2012
  • Latest release: Aug 10, 2015
  • Number of updates: 37
  • Update frequency: every 30.2 days
  • Top authors: smub (64.86%)n7studios (37.84%)

Code review

54 tests

User reviews

39 reviews

Install metrics

7,000+ active /217,294 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼1.78ms] Passed 4 tests

Analyzing server-side resources used by Gallery Carousel Without JetPack
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1242.93 ▲3.70
Dashboard /wp-admin3.44 ▲0.1350.49 ▼0.66
Posts /wp-admin/edit.php3.55 ▲0.1949.41 ▼4.43
Add New Post /wp-admin/post-new.php6.02 ▲0.1383.80 ▼2.26
Media Library /wp-admin/upload.php3.36 ▲0.1335.07 ▲0.25

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Gallery Carousel Without JetPack
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.35 ▼0.032.18 ▲0.1445.48 ▲2.07
Dashboard /wp-admin2,189 ▲125.56 ▼0.0889.22 ▼1.8038.74 ▼2.82
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0334.54 ▼4.3238.28 ▲0.11
Add New Post /wp-admin/post-new.php1,526 ▼923.13 ▲4.83611.64 ▼42.3147.95 ▼29.99
Media Library /wp-admin/upload.php1,400 ▲34.21 ▲0.0297.25 ▼17.7642.42 ▼2.05

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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 fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/carousel-without-jetpack/carousel/jetpack-carousel.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/carousel-without-jetpack/carousel-without-jetpack.php:33

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

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (Gallery Carousel.) image required
You can look at the official readme.txt

carousel-without-jetpack/carousel-without-jetpack.php Passed 13 tests

The primary PHP file in "Gallery Carousel Without JetPack" version 0.7.5 is used by WordPress to initiate all plugin functionality
124 characters long description:
Transform your standard galleries into an immersive full-screen experience without requiring you to connect to WordPress.com

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin4,334 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
CSS3324271,951
JavaScript33011751,526
PHP3128137503
PO File3137271354

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity31.33
▷ Minimum class complexity3.00
▷ Maximum class complexity73.00
Average method complexity3.68
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods34
▷ Static methods514.71%
▷ Public methods34100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
9 compressed PNG files occupy 0.36MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
carousel/images/carousel-likereblog.png0.53KB0.78KB0.00%
carousel/images/carousel-link-2x.png0.85KB1.64KB0.00%
carousel/images/carousel-sprite-2x.png2.03KB2.34KB0.00%
carousel/images/carousel-link.png0.42KB0.84KB0.00%
carousel/images/arrows-2x.png9.83KB8.15KB▼ 17.02%