78% tc-post-carousel

Code Review | TC Post Carousel

WordPress plugin TC Post Carousel scored 78% from 54 tests.

About plugin

  • Plugin page: tc-post-carousel
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.5
  • WordPress version: 6.3.1
  • First release: Apr 19, 2016
  • Latest release: Sep 27, 2016
  • Number of updates: 6
  • Update frequency: every 27.0 days
  • Top authors: themescode (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 1,430 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by TC Post Carousel
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.25 ▼2.45
Dashboard /wp-admin3.38 ▲0.0851.16 ▲1.73
Posts /wp-admin/edit.php3.50 ▲0.1455.43 ▲12.88
Add New Post /wp-admin/post-new.php5.94 ▲0.0684.22 ▼18.77
Media Library /wp-admin/upload.php3.28 ▲0.0636.04 ▼1.28
TC Post Carousel /wp-admin/admin.php?page=tc-post-carousel3.2838.88
Help & Upgrade /wp-admin/admin.php?page=tc_post_carousel_menu_help3.3033.61

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
tc_post_carousel_advanced
tc_post_carousel_styling
can_compress_scripts
theysaidso_admin_options
tc_post_carousel_basics

Browser metrics Passed 4 tests

TC Post Carousel: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,099 ▲35315.33 ▲0.965.88 ▲3.9938.12 ▼6.69
Dashboard /wp-admin2,382 ▲1976.62 ▲1.75159.89 ▲44.9748.36 ▲2.10
Posts /wp-admin/edit.php2,294 ▲2023.51 ▲1.5155.98 ▲16.8235.49 ▼1.52
Add New Post /wp-admin/post-new.php1,554 ▲1023.41 ▲5.04643.43 ▲25.1230.83 ▼22.15
Media Library /wp-admin/upload.php1,427 ▲424.32 ▲0.0883.21 ▼24.2241.39 ▼2.52
TC Post Carousel /wp-admin/admin.php?page=tc-post-carousel1,4803.5665.0626.04
Help & Upgrade /wp-admin/admin.php?page=tc_post_carousel_menu_help1,0083.1639.7625.99

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • tc_post_carousel_advanced
    • db_upgraded
    • widget_theysaidso_widget
    • tc_post_carousel_basics
    • tc_post_carousel_styling
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/tc-post-carousel/lib/tc-help-upgrade.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/tc-post-carousel/tc-post-carousel.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tc-post-carousel/public/view.php:40

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: post carousel, responsive carousel, post carousel wordpress

tc-post-carousel/tc-post-carousel.php 92% from 13 tests

The principal PHP file in "TC Post Carousel" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,128 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP5207210652
CSS54944429
JavaScript10047

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity26.00
▷ Minimum class complexity3.00
▷ Maximum class complexity49.00
Average method complexity2.43
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods35
▷ Static methods00.00%
▷ Public methods35100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/icon.png3.42KB0.77KB▼ 77.58%
vendors/owl-carousel/grabbing.png0.11KB0.14KB0.00%