78% tc-flexslider

Code Review | TC flexslider

WordPress plugin TC flexslider scored78%from 54 tests.

About plugin

  • Plugin page: tc-flexslider
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3.1
  • WordPress version: 6.3.1
  • First release: Dec 27, 2015
  • Latest release: Apr 9, 2016
  • Number of updates: 5
  • Update frequency: every 20.8 days
  • Top authors: imranemu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,109 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.01MB] [CPU: ▼7.02ms] Passed 4 tests

This is a short check of server-side resources used by TC flexslider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.57 ▼3.90
Dashboard /wp-admin3.33 ▼0.0246.47 ▼13.97
Posts /wp-admin/edit.php3.38 ▲0.0246.21 ▲0.44
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.34 ▼10.64
Media Library /wp-admin/upload.php3.25 ▲0.0234.87 ▲0.74
Add New Slider /wp-admin/post-new.php?post_type=tcflexslider3.3960.48
Help & Upgrade /wp-admin/edit.php?post_type=tcflexslider&page=tc_flexslider_menu_help3.2429.20
All Sliders /wp-admin/edit.php?post_type=tcflexslider3.3035.16

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for TC flexslider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,947 ▲17613.63 ▼0.776.53 ▲4.4642.74 ▼0.51
Dashboard /wp-admin2,240 ▲524.85 ▼0.03109.16 ▼6.1937.10 ▼8.07
Posts /wp-admin/edit.php2,120 ▲311.99 ▼0.0539.35 ▲3.5335.15 ▲1.51
Add New Post /wp-admin/post-new.php1,540 ▲2617.78 ▼5.86623.93 ▼57.7554.41 ▼3.02
Media Library /wp-admin/upload.php1,422 ▲314.28 ▲0.01102.56 ▼0.5943.82 ▼2.95
Add New Slider /wp-admin/post-new.php?post_type=tcflexslider1,6983.7969.6332.05
Help & Upgrade /wp-admin/edit.php?post_type=tcflexslider&page=tc_flexslider_menu_help7822.1826.3025.49
All Sliders /wp-admin/edit.php?post_type=tcflexslider1,1091.9330.2531.36

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% 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 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 fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/tc-flexslider/lib/tc-flexslider-help-upgrade.php
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tc-flexslider/public/tc-flexslider-view-old.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tc-flexslider/public/tc-flexslider-view.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/tc-flexslider/lib/tc-flexslider-column.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tc-flexslider/lib/tc-flexslider-cpt.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/tc-flexslider/tc-flexslider.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Final output after adding shortcode .), #2 (TC flexslider > Add New Logo. Then fill the respective fields.), #3 (Add the [tc-flexslider] shortcode in any page . .)
The official readme.txt might help

tc-flexslider/tc-flexslider.php Passed 13 tests

The main file in "TC flexslider" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
13 characters long description:
TC flexslider

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
No dangerous file extensions were detected1,407 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1131124940
CSS2226263
PHP77330185
SVG10019

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions11
▷ Named functions11100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
vendors/flexslider/images/bg_play_pause.png1.51KB0.52KB▼ 65.52%