78% tally-homepage-control

Code Review | Tally Homepage Control

WordPress plugin Tally Homepage Control scored78%from 54 tests.

About plugin

  • Plugin page: tally-homepage-co...
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.4
  • WordPress version: 6.3.1
  • First release: Feb 5, 2016
  • Latest release: Feb 18, 2016
  • Number of updates: 21
  • Update frequency: every 0.7 days
  • Top authors: tallythemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,359 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 gracefully, with no errors

Server metrics [RAM: ▲0.28MB] [CPU: ▲1.60ms] Passed 4 tests

A check of server-side resources used by Tally Homepage Control
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2643.75 ▲7.81
Dashboard /wp-admin3.64 ▲0.3452.35 ▲1.51
Posts /wp-admin/edit.php3.69 ▲0.3356.39 ▲9.92
Add New Post /wp-admin/post-new.php6.15 ▲0.2789.83 ▼6.05
Media Library /wp-admin/upload.php3.47 ▲0.2538.84 ▲3.12
All Builder Content /wp-admin/edit.php?post_type=tally_builder_c3.5444.17

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

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

Browser metrics Passed 4 tests

Tally Homepage Control: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,094 ▲35915.55 ▲1.159.11 ▲7.0361.06 ▲13.25
Dashboard /wp-admin2,365 ▲1746.71 ▲1.79140.51 ▲37.2690.46 ▲49.05
Posts /wp-admin/edit.php2,286 ▲1973.59 ▲1.4353.59 ▲20.3171.66 ▲38.07
Add New Post /wp-admin/post-new.php1,549 ▲1623.46 ▲0.29631.51 ▼46.1734.81 ▼21.52
Media Library /wp-admin/upload.php1,428 ▲434.30 ▲0.0683.36 ▼22.2479.10 ▲33.89
All Builder Content /wp-admin/edit.php?post_type=tally_builder_c1,2523.6648.4474.88

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/tally-homepage-control/tally-homepage-control.php
  • 7× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tally-homepage-control/frontend.php:64
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tally-homepage-control/script-loader.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tally-homepage-control/functions.php:341
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tally-homepage-control/post-type.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tally-homepage-control/metabox.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/tally-homepage-control/sections.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tally-homepage-control/admin-pages.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: home content changes, tallythemes, pagebuilder, content change

tally-homepage-control/tally-homepage-control.php 92% from 13 tests

The main PHP file in "Tally Homepage Control" ver. 1.6 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin4,631 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
CSS4545273,088
PHP92301391,234
SVG100288
JavaScript451521

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions57
▷ Named functions57100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
assets/images/icon-light.png1.42KB0.91KB▼ 35.68%