78% vertically-client-carousel

Code Review | Vertically Client Carousel

WordPress plugin Vertically Client Carousel scored78%from 54 tests.

About plugin

  • Plugin page: vertically-client...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.9.1
  • WordPress version: 6.3.1
  • First release: Jan 8, 2018
  • Latest release: Jan 9, 2018
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: cynob (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /750 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼7.44ms] Passed 4 tests

Analyzing server-side resources used by Vertically Client Carousel
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0643.26 ▼3.07
Dashboard /wp-admin3.38 ▲0.0349.03 ▼16.79
Posts /wp-admin/edit.php3.42 ▲0.0650.61 ▲0.18
Add New Post /wp-admin/post-new.php5.96 ▲0.0791.72 ▼10.06
Media Library /wp-admin/upload.php3.29 ▲0.0639.69 ▲5.14
All Clients /wp-admin/edit.php?post_type=vertically_client3.3436.76
About Us /wp-admin/edit.php?post_type=vertically_client&page=about-us3.2637.79
Carousel Setting /wp-admin/edit.php?post_type=vertically_client&page=carousel-page-setting3.2733.87
Add New Client /wp-admin/post-new.php?post_type=vertically_client3.3649.42

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Vertically Client Carousel
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,867 ▲12114.36 ▼0.202.70 ▲0.7845.40 ▲2.50
Dashboard /wp-admin2,241 ▲675.58 ▲0.0084.82 ▲0.0542.90 ▲3.15
Posts /wp-admin/edit.php2,155 ▲551.98 ▲0.0139.51 ▼2.0536.65 ▼1.56
Add New Post /wp-admin/post-new.php1,575 ▲4018.15 ▼0.10610.91 ▼31.4372.46 ▲6.02
Media Library /wp-admin/upload.php1,443 ▲434.14 ▼0.06101.47 ▼2.5545.36 ▲1.36
All Clients /wp-admin/edit.php?post_type=vertically_client1,1271.9732.8630.40
About Us /wp-admin/edit.php?post_type=vertically_client&page=about-us8532.0325.9734.33
Carousel Setting /wp-admin/edit.php?post_type=vertically_client&page=carousel-page-setting8732.0025.3529.97
Add New Client /wp-admin/post-new.php?post_type=vertically_client1,6543.5662.7633.66

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/edit.php?post_type=vertically_client&page=carousel-page-setting
    • > Notice in wp-content/plugins/vertically-client-carousel/pages/carousel-page-setting.php+14
    Undefined index: add_opt_submit
    • > GET request to /wp-admin/edit.php?post_type=vertically_client&page=carousel-page-setting
    • > Notice in wp-content/plugins/vertically-client-carousel/pages/carousel-page-setting.php+34
    Undefined variable: message

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/vertically-client-carousel/pages/about-us.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% 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 require attention:
  • Screenshots: These screenshots require images: #1 (Back end client carousel setting), #2 (Back end Add New Client), #3 (Front end slider look)
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
Please take inspiration from this readme.txt

vertically-client-carousel/cb-vertically-client-carousel.php 92% from 13 tests

The main PHP script in "Vertically Client Carousel" version 1.0.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("vertically-client-carousel.php" instead of "cb-vertically-client-carousel.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin607 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP35743271
JavaScript15221208
CSS23311128

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Constants2
▷ Global constants2100.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
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-3.png198.61KB47.49KB▼ 76.09%
screenshot-2.png37.50KB17.98KB▼ 52.06%
screenshot-1.png36.21KB16.44KB▼ 54.60%