83% tuxedo-responsive-widget-columns

Code Review | Tuxedo Responsive Widget Columns

WordPress plugin Tuxedo Responsive Widget Columns scored83%from 54 tests.

About plugin

  • Plugin page: tuxedo-responsive...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.5.2
  • WordPress version: 6.3.1
  • First release: Jan 29, 2016
  • Latest release: Jun 16, 2016
  • Number of updates: 5
  • Update frequency: every 27.8 days
  • Top authors: andtrev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active /14,939 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.76ms] Passed 4 tests

An overview of server-side resources used by Tuxedo Responsive Widget Columns
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0539.51 ▼5.52
Dashboard /wp-admin3.36 ▲0.0545.24 ▼7.71
Posts /wp-admin/edit.php3.41 ▲0.0544.94 ▲1.42
Add New Post /wp-admin/post-new.php5.94 ▲0.0583.78 ▼5.56
Media Library /wp-admin/upload.php3.28 ▲0.0536.86 ▼0.25

Server storage [IO: ▲0.01MB] [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: 3 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_tux_col
widget_tux_row
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Tuxedo Responsive Widget Columns
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.59 ▼1.001.60 ▼0.3338.89 ▼4.29
Dashboard /wp-admin2,200 ▲125.83 ▲0.93103.96 ▼16.8542.34 ▼4.45
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0540.97 ▲5.0036.28 ▲0.28
Add New Post /wp-admin/post-new.php1,536 ▼022.98 ▼0.11636.83 ▼62.1846.63 ▼13.70
Media Library /wp-admin/upload.php1,382 ▼34.21 ▲0.0298.28 ▼0.0842.46 ▼1.40

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 8 options in the database
    • widget_recent-comments
    • widget_tux_col
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_tux_row

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tuxedo-responsive-widget-columns/tuxedo_responsive_widget_columns.php:80

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 86% 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 to be fixed:
  • Tags: You are using too many tags: 17 tag instead of maximum 10
You can look at the official readme.txt

tuxedo-responsive-widget-columns/tuxedo_responsive_widget_columns.php 77% from 13 tests

This is the main PHP file of "Tuxedo Responsive Widget Columns" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("tuxedo-responsive-widget-columns.php" instead of "tuxedo_responsive_widget_columns.php")
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected177 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP249111177

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity5.00
▷ Minimum class complexity1.00
▷ Maximum class complexity13.00
Average method complexity1.86
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods14
▷ Static methods17.14%
▷ Public methods14100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin