10% view-template-widget-for-toolset-types-views

Code Review | Content Template Widget for Toolset Views

WordPress plugin Content Template Widget for Toolset Views scored10%from 54 tests.

About plugin

  • Plugin page: view-template-wid...
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.8
  • WordPress version: 6.3.1
  • First release: Jul 2, 2013
  • Latest release: Jul 29, 2016
  • Number of updates: 17
  • Update frequency: every 91.5 days
  • Top authors: khromov (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /7,413 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/view-template-widget-for-toolset-types-views/wp-views-view-template-widget.php+178
    Function create_function() is deprecated

Server metrics [RAM: ▼1.91MB] [CPU: ▼56.59ms] Passed 4 tests

Server-side resources used by Content Template Widget for Toolset Views
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.384.67 ▼39.00
Dashboard /wp-admin2.10 ▼1.246.74 ▼57.36
Posts /wp-admin/edit.php2.10 ▼1.256.48 ▼42.13
Add New Post /wp-admin/post-new.php2.10 ▼3.786.48 ▼87.86
Media Library /wp-admin/upload.php2.10 ▼1.136.48 ▼26.00

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_view_template_widget
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Content Template Widget for Toolset Views: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7914.44 ▲0.231.83 ▲0.0041.16 ▼1.30
Dashboard /wp-admin2,206 ▲154.84 ▼0.06109.86 ▼5.5338.13 ▼6.38
Posts /wp-admin/edit.php2,089 ▲182.04 ▲0.0239.01 ▲2.0734.72 ▲0.64
Add New Post /wp-admin/post-new.php1,547 ▲2518.36 ▼4.81585.64 ▼51.3467.48 ▲9.94
Media Library /wp-admin/upload.php1,391 ▲34.21 ▲0.0595.40 ▼1.0743.95 ▼2.09

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/view-template-widget-for-toolset-types-views/wp-views-view-template-widget.php+178
    Function create_function() is deprecated
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_view_template_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/view-template-widget-for-toolset-types-views/wp-views-view-template-widget.php:13

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: views, toolset, view-templates, wp-compatibility, types...

view-template-widget-for-toolset-types-views/wp-views-view-template-widget.php 92% from 13 tests

The main PHP file in "Content Template Widget for Toolset Views" ver. 1.2.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("view-template-widget-for-toolset-types-views.php" instead of "wp-views-view-template-widget.php")

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
Success! There were no dangerous files found in this plugin137 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12219137

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity5.25
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin