84% gvs-jcarousellite

Code Review | GVSoft jCarouselLite

WordPress plugin GVSoft jCarouselLite scored84%from 54 tests.

About plugin

  • Plugin page: gvs-jcarousellite
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.0
  • WordPress version: 6.3.1
  • First release: Jan 28, 2019
  • Latest release: Jan 28, 2019
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: vlad172 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /656 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Server-side resources used by GVSoft jCarouselLite
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0447.39 ▲7.09
Dashboard /wp-admin3.35 ▲0.0552.30 ▲2.25
Posts /wp-admin/edit.php3.40 ▲0.0450.28 ▲1.34
Add New Post /wp-admin/post-new.php5.93 ▲0.0487.96 ▼14.20
Media Library /wp-admin/upload.php3.27 ▲0.0436.06 ▼1.27
GVSoft jCarouselLite /wp-admin/options-general.php?page=GVSjCarouselLite3.2433.78

Server storage [IO: ▲0.03MB] [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: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for GVSoft jCarouselLite
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲16613.59 ▼1.066.22 ▲4.3045.22 ▲1.66
Dashboard /wp-admin2,213 ▲394.86 ▼1.03112.02 ▼6.9741.71 ▼5.80
Posts /wp-admin/edit.php2,090 ▲12.01 ▼0.0036.74 ▼0.5933.68 ▼1.23
Add New Post /wp-admin/post-new.php1,536 ▲323.13 ▼0.04648.45 ▼68.1451.16 ▼5.18
Media Library /wp-admin/upload.php1,389 ▼24.19 ▼0.0295.89 ▼4.6644.21 ▲3.20
GVSoft jCarouselLite /wp-admin/options-general.php?page=GVSjCarouselLite8152.0326.2327.26

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 did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
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/gvs-jcarousellite/admin.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: carousel, photos, images, gallery

gvs-jcarousellite/plugin.php 92% from 13 tests

Analyzing the main PHP file in "GVSoft jCarouselLite" version 1.0
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gvs-jcarousellite.php" instead of "plugin.php")

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
Everything looks great! No dangerous files found in this plugin461 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript47045260
PHP32336189
CSS10112

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
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%
Functions7
▷ Named functions228.57%
▷ Anonymous functions571.43%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin