78% tallykit

Code Review | TallyKit

WordPress plugin TallyKit scored78%from 54 tests.

About plugin

  • Plugin page: tallykit
  • Plugin version: 5.9
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 28, 2014
  • Latest release: Jul 9, 2016
  • Number of updates: 74
  • Update frequency: every 10.0 days
  • Top authors: tallythemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /3,541 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
Install script ran successfully

Server metrics [RAM: ▲0.72MB] [CPU: ▲0.91ms] Passed 4 tests

Server-side resources used by TallyKit
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.20 ▲0.7446.87 ▲1.99
Dashboard /wp-admin4.02 ▲0.7158.27 ▲4.62
Posts /wp-admin/edit.php4.13 ▲0.7756.64 ▲4.91
Add New Post /wp-admin/post-new.php6.62 ▲0.7395.98 ▼7.87
Media Library /wp-admin/upload.php3.94 ▲0.7144.10 ▲7.94

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 414 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

TallyKit: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,991 ▲22013.54 ▼0.8613.48 ▲11.1947.57 ▲2.60
Dashboard /wp-admin2,228 ▲374.84 ▼0.04108.12 ▲5.8738.09 ▼6.38
Posts /wp-admin/edit.php2,111 ▲252.06 ▲0.0640.95 ▲0.2737.93 ▲1.19
Add New Post /wp-admin/post-new.php1,533 ▲1423.27 ▼0.11664.83 ▲40.7047.67 ▼7.37
Media Library /wp-admin/upload.php1,407 ▲254.20 ▼0.02100.68 ▲2.0049.13 ▲4.64

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

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
Even though everything seems fine, this is not 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 fix the following
  • 15× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/tallykit/components/FrontPage/blocks/#counter_circle/output.php
    • > /wp-content/plugins/tallykit/components/slideshow/templates/content/content-image.php
    • > /wp-content/plugins/tallykit/components/doc/templates/_content-single-nav.php
    • > /wp-content/plugins/tallykit/components/FrontPage/blocks/#buddypress_groups/output.php
    • > /wp-content/plugins/tallykit/components/FrontPage/blocks/#buddypress_members/form.php
    • > /wp-content/plugins/tallykit/components/FrontPage/blocks/#blog_timeline/output.php
    • > /wp-content/plugins/tallykit/components/FrontPage/blocks/#blog_timeline/form.php
    • > /wp-content/plugins/tallykit/components/FrontPage/blocks/#counter_circle/form.php
    • > /wp-content/plugins/tallykit/components/slideshow/templates/content/content-content.php
    • > /wp-content/plugins/tallykit/components/FrontPage/blocks/#progress_bar/form.php
  • 341× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tallykit/components/people/people-script.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/tallykit/components/portfolio/portfolio-metabox.php:15
    • > PHP Warning
      include(ACOC_DRIfields/select.php): failed to open stream: No such file or directory in wp-content/plugins/tallykit/acoc/fields/_init.php on line 8
    • > PHP Warning
      include(): Failed opening 'TALLYKIT_FRONTPAGE_COMPONENT_BLOCKS_DRIvideo/output.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/tallykit/components/FrontPage/blocks/blocks.php on line 15
    • > PHP Notice
      Undefined variable: slider_item in wp-content/plugins/tallykit/components/slideshow/templates/content/content-image.php on line 2
    • > PHP Notice
      Undefined variable: slider_item in wp-content/plugins/tallykit/components/slideshow/templates/content/content-content.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tallykit/components/shortcodes/shortcodes-color.php:2
    • > PHP Warning
      include(TALLYKIT_FRONTPAGE_COMPONENT_BLOCKS_DRIpeople_slideshow/output.php): failed to open stream: No such file or directory in wp-content/plugins/tallykit/components/FrontPage/blocks/blocks.php on line 57
    • > PHP Warning
      Use of undefined constant ACOC_DRI - assumed 'ACOC_DRI' (this will throw an Error in a future version of PHP) in wp-content/plugins/tallykit/acoc/fields/_init.php on line 9
    • > PHP Warning
      include(TALLYKIT_FRONTPAGE_COMPONENT_BLOCKS_DRIpeople_carousel/form.php): failed to open stream: No such file or directory in wp-content/plugins/tallykit/components/FrontPage/blocks/blocks.php on line 50

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Requires at least: Invalid version format
The official readme.txt is a good inspiration

tallykit/tallykit.php Passed 13 tests

The main PHP script in "TallyKit" version 5.9 is automatically included on every request by WordPress
69 characters long description:
A collection of features and functionality for Tally Framework theme.

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
No dangerous file extensions were detected33,882 lines of code in 296 files:
LanguageFilesBlank linesComment linesLines of code
PHP2453,3922,93124,244
CSS228512575,068
JavaScript277709034,031
SVG200539

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity12.62
▷ Minimum class complexity1.00
▷ Maximum class complexity179.00
Average method complexity3.30
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes98
▷ Abstract classes00.00%
▷ Concrete classes98100.00%
▷ Final classes00.00%
Methods496
▷ Static methods346.85%
▷ Public methods49499.60%
▷ Protected methods20.40%
▷ Private methods00.00%
Functions184
▷ Named functions184100.00%
▷ Anonymous functions00.00%
Constants37
▷ Global constants3697.30%
▷ Class constants12.70%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
24 compressed PNG files occupy 0.06MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
acoc/vandors/cmb/images/ui-bg_glass_75_e6e6e6_1x400.png0.11KB0.14KB0.00%
components/buddypress/assets/images/buddypress-shortcode-icon.png23.82KB10.90KB▼ 54.22%
acoc/vandors/cmb/images/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%
acoc/vandors/cmb/images/ui-bg_glass_55_fbf9ee_1x400.png0.12KB0.14KB0.00%
acoc/vandors/cmb/images/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%