84% howdy-tweaks

Code Review | Howdy Tweaks

WordPress plugin Howdy Tweaks scored84%from 54 tests.

About plugin

  • Plugin page: howdy-tweaks
  • Plugin version: 2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.6
  • WordPress version: 6.3.1
  • First release: Sep 9, 2010
  • Latest release: Sep 8, 2016
  • Number of updates: 28
  • Update frequency: every 78.3 days
  • Top authors: trepmal (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /4,851 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.02MB] [CPU: ▼3.58ms] Passed 4 tests

A check of server-side resources used by Howdy Tweaks
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.87 ▼0.52
Dashboard /wp-admin3.32 ▲0.0244.67 ▼2.67
Posts /wp-admin/edit.php3.37 ▲0.0247.27 ▼2.47
Add New Post /wp-admin/post-new.php5.90 ▲0.0290.23 ▼7.58
Media Library /wp-admin/upload.php3.24 ▲0.0233.05 ▼1.60
Howdy Tweaks /wp-admin/options-general.php?page=howdy-tweaks3.2132.33

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

Browser metrics Passed 4 tests

A check of browser resources used by Howdy Tweaks
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.28 ▼1.104.62 ▲2.7146.34 ▲1.40
Dashboard /wp-admin2,205 ▲174.86 ▼0.93108.81 ▲1.6540.56 ▼0.99
Posts /wp-admin/edit.php2,091 ▲52.06 ▲0.0139.13 ▲2.0835.23 ▲2.21
Add New Post /wp-admin/post-new.php1,536 ▲823.35 ▼0.24581.06 ▼94.4646.85 ▼23.76
Media Library /wp-admin/upload.php1,390 ▲24.22 ▲0.0395.35 ▼8.7641.43 ▼3.94
Howdy Tweaks /wp-admin/options-general.php?page=howdy-tweaks9502.0241.5928.95

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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 take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/howdy-tweaks/howdy-greeting-tweaks.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Please add descriptions for these screenshots #3, #4 in howdy-tweaks/assets to your readme.txt
You can look at the official readme.txt

howdy-tweaks/howdy-greeting-tweaks.php 92% from 13 tests

The principal PHP file in "Howdy Tweaks" v. 2.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("howdy-tweaks.php" instead of "howdy-greeting-tweaks.php")

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
Everything looks great! No dangerous files found in this plugin220 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15295207
JavaScript14113

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity2.83
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.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

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin