84% tm-replace-howdy

Code Review | TM Replace Howdy

WordPress plugin TM Replace Howdy scored 84% from 54 tests.

About plugin

  • Plugin page: tm-replace-howdy
  • Plugin version: 1.4.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 13, 2010
  • Latest release: Nov 20, 2015
  • Number of updates: 24
  • Update frequency: every 80.2 days
  • Top authors: technical_mastermind (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active / 11,755 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by TM Replace Howdy
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0636.36 ▼5.07
Dashboard /wp-admin3.36 ▲0.0547.61 ▼1.59
Posts /wp-admin/edit.php3.41 ▲0.0544.95 ▼1.67
Add New Post /wp-admin/post-new.php5.94 ▲0.0594.36 ▼6.72
Media Library /wp-admin/upload.php3.28 ▲0.0537.35 ▲3.13
Replace Howdy /wp-admin/options-general.php?page=tm_replace_howdy3.2631.39

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
tm_replace_howdy_ver
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for TM Replace Howdy
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.32 ▼1.481.82 ▼0.0742.34 ▼11.96
Dashboard /wp-admin2,210 ▲195.86 ▼0.02110.94 ▲8.9743.80 ▲1.76
Posts /wp-admin/edit.php2,093 ▲42.04 ▲0.0240.20 ▼2.3036.43 ▼4.99
Add New Post /wp-admin/post-new.php1,517 ▼1917.82 ▼5.35676.39 ▲62.7552.12 ▲0.86
Media Library /wp-admin/upload.php1,395 ▲74.22 ▼0.21100.90 ▲1.2543.58 ▼1.24
Replace Howdy /wp-admin/options-general.php?page=tm_replace_howdy9622.0328.9128.24

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • tm_replace_howdy_ver
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% 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
Almost there! Just fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/tm-replace-howdy/options.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/tm-replace-howdy/index.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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
There were no plugin tags found

tm-replace-howdy/index.php 85% from 13 tests

"TM Replace Howdy" version 1.4.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 618 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("tm-replace-howdy.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected322 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23263322

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity36.00
▷ Minimum class complexity36.00
▷ Maximum class complexity36.00
Average method complexity3.92
▷ Minimum method complexity1.00
▷ Maximum method complexity17.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%
Constants3
▷ Global constants3100.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