10% vertical-client-carousel

Code Review | Vertical Client Carousel

WordPress plugin Vertical Client Carousel scored10%from 54 tests.

About plugin

  • Plugin page: vertical-client-c...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.6
  • WordPress version: 6.3.1
  • First release: Aug 11, 2015
  • Latest release: Aug 20, 2016
  • Number of updates: 9
  • Update frequency: every 41.8 days
  • Top authors: NetAttingo Technologies (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /2,526 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/vertical-client-carousel/vertical-client-carousel.php+11
    Constant WP_DEBUG already defined

Server metrics [RAM: ▼1.89MB] [CPU: ▼49.17ms] Passed 4 tests

A check of server-side resources used by Vertical Client Carousel
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.365.09 ▼32.83
Dashboard /wp-admin2.11 ▼1.199.92 ▼37.43
Posts /wp-admin/edit.php2.12 ▼1.245.57 ▼41.92
Add New Post /wp-admin/post-new.php2.11 ▼3.776.24 ▼84.50
Media Library /wp-admin/upload.php2.11 ▼1.115.98 ▼29.16
About Us /wp-admin/edit.php?post_type=vertical_client&page=about-us2.125.65
Add New Client /wp-admin/post-new.php?post_type=vertical_client2.126.07
Carousel Setting /wp-admin/edit.php?post_type=vertical_client&page=carousel-page-setting2.126.17
All Clients /wp-admin/edit.php?post_type=vertical_client2.126.89

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Vertical Client Carousel
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,878 ▲14313.36 ▼1.012.62 ▲0.9443.97 ▲5.39
Dashboard /wp-admin2,249 ▲615.83 ▼0.1195.86 ▼9.0037.88 ▼3.16
Posts /wp-admin/edit.php2,144 ▲552.02 ▼0.0239.90 ▼0.6236.14 ▲1.44
Add New Post /wp-admin/post-new.php1,570 ▲3423.28 ▲0.20586.27 ▼72.7257.30 ▼4.25
Media Library /wp-admin/upload.php1,434 ▲494.22 ▲0.0296.56 ▼6.5141.54 ▼2.45
About Us /wp-admin/edit.php?post_type=vertical_client&page=about-us8422.0327.1630.60
Add New Client /wp-admin/post-new.php?post_type=vertical_client1,6843.6064.1032.83
Carousel Setting /wp-admin/edit.php?post_type=vertical_client&page=carousel-page-setting8812.0623.6830.54
All Clients /wp-admin/edit.php?post_type=vertical_client1,1161.9529.6628.22

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/vertical-client-carousel/vertical-client-carousel.php+11
    Constant WP_DEBUG already defined
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=vertical_client
    • > POST request to /wp-admin/admin-ajax.php
    • > Notice in wp-content/plugins/vertical-client-carousel/vertical-client-carousel.php+11
    Constant WP_DEBUG already defined
    • > GET request to /wp-admin/edit.php?post_type=vertical_client&page=carousel-page-setting
    • > Notice in wp-content/plugins/vertical-client-carousel/pages/carousel-page-setting.php+13
    Undefined index: add_opt_submit
    • > GET request to /wp-admin/edit.php?post_type=vertical_client&page=carousel-page-setting
    • > Notice in wp-content/plugins/vertical-client-carousel/pages/carousel-page-setting.php+38
    Undefined variable: message

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
Almost there! Just fix the following items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/vertical-client-carousel/pages/carousel-page-setting.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/vertical-client-carousel/pages/about-us.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/vertical-client-carousel/vertical-client-carousel.php:12

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 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: These screenshots do not have images: #1 (Back end client carousel setting), #2 (Back end Add New Client), #3 (Front end slider look)
The official readme.txt is a good inspiration

vertical-client-carousel/vertical-client-carousel.php Passed 13 tests

The principal PHP file in "Vertical Client Carousel" v. 1.0.0 is loaded by WordPress automatically on each request
76 characters long description:
This plugin will add vertical client carousel slider in your wordpress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin609 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP38442273
JavaScript15221208
CSS23611128

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
3 PNG files occupy 0.27MB with 0.16MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png37.50KB17.98KB▼ 52.06%
screenshot-3.png198.61KB47.49KB▼ 76.09%
screenshot-1.png36.21KB16.44KB▼ 54.60%