78% replace-howdy-with-other-word

Code Review | SM Replace Howdy

WordPress plugin SM Replace Howdy scored 78% from 54 tests.

About plugin

  • Plugin page: replace-howdy-wit...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.7
  • WordPress version: 6.3.1
  • First release: Jun 11, 2016
  • Latest release: Sep 27, 2016
  • Number of updates: 11
  • Update frequency: every 18.8 days
  • Top authors: mahabubs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active / 2,986 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

This is a short check of server-side resources used by SM Replace Howdy
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.85 ▼6.89
Dashboard /wp-admin3.31 ▲0.0146.84 ▼3.37
Posts /wp-admin/edit.php3.36 ▲0.0151.48 ▲7.65
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.75 ▼3.96
Media Library /wp-admin/upload.php3.24 ▲0.0133.94 ▼0.42

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

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

Browser metrics Passed 4 tests

SM Replace Howdy: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4714.48 ▲0.191.64 ▼0.3440.08 ▼3.84
Dashboard /wp-admin2,210 ▲224.86 ▲0.03109.05 ▼6.7644.05 ▼1.48
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0239.78 ▲6.7437.28 ▲2.73
Add New Post /wp-admin/post-new.php1,537 ▲1823.18 ▼0.19677.63 ▲65.1345.95 ▼7.95
Media Library /wp-admin/upload.php1,395 ▲74.23 ▲0.02103.09 ▲7.6945.79 ▲2.92
SM Replace Howdy /wp-admin/replace-howdy-with-other.php260.440.1414.07

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, 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 fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/replace-howdy-with-other-word/replace-howdy-with-other.php:12

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
    • > GET request to /wp-admin/replace-howdy-with-other.php
    • > Network (severe)
    wp-admin/replace-howdy-with-other.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: plugin, howdy

replace-howdy-with-other-word/replace-howdy-with-other.php 92% from 13 tests

The main file in "SM Replace Howdy" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
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 ("replace-howdy-with-other-word.php" instead of "replace-howdy-with-other.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 plugin53 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16953

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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 are no PNG files in this plugin