83% post-types-carousel-slider

Code Review | Post Carousel & Slider

WordPress plugin Post Carousel & Slider scored83%from 54 tests.

About plugin

  • Plugin page: post-types-carous...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.9
  • WordPress version: 6.3.1
  • First release: Jul 8, 2017
  • Latest release: May 31, 2023
  • Number of updates: 86
  • Update frequency: every 25.1 days
  • Top authors: aeonianin (83.72%)tarakpatel18 (17.44%)

Code review

54 tests

User reviews

4 reviews

Install metrics

400+ active /6,772 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
Install script ran successfully

Server metrics [RAM: ▲0.21MB] [CPU: ▼2.91ms] Passed 4 tests

An overview of server-side resources used by Post Carousel & Slider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2146.69 ▲5.31
Dashboard /wp-admin3.51 ▲0.2152.11 ▲0.81
Posts /wp-admin/edit.php3.63 ▲0.2750.11 ▲1.61
Add New Post /wp-admin/post-new.php6.11 ▲0.2290.17 ▼19.37
Media Library /wp-admin/upload.php3.43 ▲0.2144.96 ▲10.46
Post carousel & slider /wp-admin/admin.php?page=postcs3.4034.27
Common setting /wp-admin/admin.php?page=postcssetting3.4034.71

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

Browser metrics Passed 4 tests

A check of browser resources used by Post Carousel & Slider
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,946 ▲16013.85 ▼0.529.41 ▲7.4737.01 ▼6.41
Dashboard /wp-admin2,229 ▲555.52 ▼0.1190.38 ▼10.0140.96 ▼4.18
Posts /wp-admin/edit.php2,140 ▲402.02 ▼0.0137.18 ▼0.9734.04 ▼2.77
Add New Post /wp-admin/post-new.php1,564 ▲3623.11 ▲0.02711.13 ▲62.9150.82 ▼2.30
Media Library /wp-admin/upload.php1,443 ▲434.25 ▼0.15109.89 ▼6.4647.43 ▼0.09
Post carousel & slider /wp-admin/admin.php?page=postcs8652.0426.2227.02
Common setting /wp-admin/admin.php?page=postcssetting8412.0525.7725.54

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • 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
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'postcsCls' not found in wp-content/plugins/post-types-carousel-slider/includes/shortcode.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'postcsCls' not found in wp-content/plugins/post-types-carousel-slider/includes/admin.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'postcsCls' not found in wp-content/plugins/post-types-carousel-slider/includes/front.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'postcsCls' not found in wp-content/plugins/post-types-carousel-slider/includes/css_js.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'postcsCls' not found in wp-content/plugins/post-types-carousel-slider/includes/ajax.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: post slider, responsive slider, post carousel, content slider, slideshow...

post-types-carousel-slider/post-cs.php 77% from 13 tests

This is the main PHP file of "Post Carousel & Slider" version 1.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("post-types-carousel-slider.php" instead of "post-cs.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Description: Please keep the plugin description shorter than 140 characters (currently 155 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin3,024 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP6118701,588
CSS2332301,327
JavaScript3633109

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity49.17
▷ Minimum class complexity3.00
▷ Maximum class complexity102.00
Average method complexity13.57
▷ Minimum method complexity1.00
▷ Maximum method complexity98.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods23
▷ Static methods00.00%
▷ Public methods23100.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

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/prev.png0.39KB0.28KB▼ 29.35%
assets/img/next.png0.38KB0.25KB▼ 33.08%
assets/img/no-img.png8.85KB2.56KB▼ 71.06%