83% webico-timline-flatsome-addons

Code Review | Webico Timeline Flatsome Addons

WordPress plugin Webico Timeline Flatsome Addons scored 83% from 54 tests.

About plugin

  • Plugin page: webico-timline-fl...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.0-4.8.9
  • WordPress version: 6.3.1
  • First release: Sep 22, 2018
  • Latest release: Sep 23, 2018
  • Number of updates: 14
  • Update frequency: every 0.1 days
  • Top authors: tranbinhcse (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

80+ active / 1,120 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
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.93ms] Passed 4 tests

Server-side resources used by Webico Timeline Flatsome Addons
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.03 ▼8.18
Dashboard /wp-admin3.33 ▲0.0344.45 ▼6.29
Posts /wp-admin/edit.php3.39 ▲0.0348.14 ▲4.60
Add New Post /wp-admin/post-new.php5.92 ▲0.0394.30 ▼0.98
Media Library /wp-admin/upload.php3.26 ▲0.0333.25 ▼0.27
Add New /wp-admin/post-new.php?post_type=timeline3.3848.12
Categories /wp-admin/edit-tags.php?taxonomy=timeline_cat&post_type=timeline3.2534.26
Timelines /wp-admin/edit.php?post_type=timeline3.3035.39

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Webico Timeline Flatsome Addons
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,859 ▲12414.76 ▲0.131.79 ▲0.0843.92 ▲2.58
Dashboard /wp-admin2,234 ▲436.02 ▲1.1295.52 ▼14.3837.68 ▼3.93
Posts /wp-admin/edit.php2,117 ▲282.14 ▲0.1533.37 ▼0.5136.27 ▲2.73
Add New Post /wp-admin/post-new.php1,540 ▲1917.74 ▼5.40587.87 ▼88.8461.52 ▲2.85
Media Library /wp-admin/upload.php1,419 ▲314.18 ▼0.0497.18 ▼4.7641.99 ▼2.03
Add New /wp-admin/post-new.php?post_type=timeline2,2577.62187.4265.02
Categories /wp-admin/edit-tags.php?taxonomy=timeline_cat&post_type=timeline1,2652.1427.5726.84
Timelines /wp-admin/edit.php?post_type=timeline1,0841.9531.1630.89

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 25× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: repeater_columns in wp-content/plugins/webico-timline-flatsome-addons/builder/commons/repeater-options.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/webico-timline-flatsome-addons/builder/commons/slide.php:4
    • > PHP Notice
      Undefined variable: repeater_columns in wp-content/plugins/webico-timline-flatsome-addons/builder/commons/title-options.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/webico-timline-flatsome-addons/builder/commons/repeater-options.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/webico-timline-flatsome-addons/shortcodes/wbc-timeline.php:153
    • > PHP Notice
      Undefined variable: repeater_type in wp-content/plugins/webico-timline-flatsome-addons/builder/commons/repeater-options.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/webico-timline-flatsome-addons/builder/commons/title-options.php:9
    • > PHP Notice
      Undefined variable: repeater_type in wp-content/plugins/webico-timline-flatsome-addons/builder/commons/title-options.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/webico-timline-flatsome-addons/builder/wbc-timeline.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/webico-timline-flatsome-addons/builder/helpers/colors.php:14

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention: The official readme.txt is a good inspiration

webico-timline-flatsome-addons/wbc-timeline.php 69% from 13 tests

Analyzing the main PHP file in "Webico Timeline Flatsome Addons" version 1.0.0
It is important to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Domain Path: The domain path folder does not exist ("/languages")
  • Main file name: Name the main plugin file the same as the plugin slug ("webico-timline-flatsome-addons.php" instead of "wbc-timeline.php")
  • Requires PHP: Required version does not match the one declared in readme.txt ("5.6.30" instead of "5.6")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin7,222 lines of code in 195 files:
LanguageFilesBlank linesComment linesLines of code
SVG12501255,060
PHP47129661,470
HTML21300375
CSS1367312
JavaScript1005

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin