79% tally-theme-setup

Code Review | Tally Theme Setup

WordPress plugin Tally Theme Setup scored79%from 54 tests.

About plugin

  • Plugin page: tally-theme-setup
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.8.1
  • WordPress version: 6.3.1
  • First release: Feb 11, 2016
  • Latest release: Aug 10, 2017
  • Number of updates: 23
  • Update frequency: every 23.8 days
  • Top authors: tallythemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /7,677 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.94ms] Passed 4 tests

This is a short check of server-side resources used by Tally Theme Setup
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.91 ▼5.82
Dashboard /wp-admin3.31 ▲0.0144.55 ▼1.85
Posts /wp-admin/edit.php3.36 ▲0.0148.90 ▼2.91
Add New Post /wp-admin/post-new.php5.91 ▲0.0392.17 ▼9.16
Media Library /wp-admin/upload.php3.24 ▲0.0135.71 ▲1.88
Sample Data /wp-admin/themes.php?page=tallythemesetup-demo-importer3.2030.07

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Tally Theme Setup
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲9513.27 ▼1.131.73 ▼0.7741.60 ▼0.66
Dashboard /wp-admin2,236 ▲455.85 ▲0.94106.67 ▲6.0244.90 ▲3.77
Posts /wp-admin/edit.php2,119 ▲272.18 ▲0.1740.59 ▼4.7741.58 ▲5.24
Add New Post /wp-admin/post-new.php1,551 ▲2318.67 ▲0.35590.20 ▼14.1853.02 ▲3.57
Media Library /wp-admin/upload.php1,418 ▲304.24 ▲0.06100.47 ▼1.5746.90 ▲5.25
Sample Data /wp-admin/themes.php?page=tallythemesetup-demo-importer8342.0222.8734.48

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/tally-theme-setup/tally-theme-setup.php
  • 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/tally-theme-setup/inc/import-xml.php on line 18
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/import.php): failed to open stream: No such file or directory in wp-content/plugins/tally-theme-setup/inc/import-xml.php on line 18
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/import.php' (include_path='.:/usr/share/php') in wp-content/plugins/tally-theme-setup/inc/import-xml.php on line 18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_term_by() in wp-content/plugins/tally-theme-setup/demo-sample/menu-config.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tally-theme-setup/inc/script-loader.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_theme() in wp-content/plugins/tally-theme-setup/loader-v1.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/tally-theme-setup/loader-v2.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tally-theme-setup/inc/notice.php:2

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 Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: tallythemes, sample data, sample data importer, importer

tally-theme-setup/tally-theme-setup.php Passed 13 tests

"Tally Theme Setup" version 2.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
36 characters long description:
Import demo content for Tally Themes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected3,546 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP156545973,417
JavaScript13165
CSS13064

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity48.69
▷ Minimum class complexity1.00
▷ Maximum class complexity179.00
Average method complexity6.39
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods115
▷ Static methods00.00%
▷ Public methods115100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants13100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected