68% rs-change-howdy-verbiage

Code Review | Change Howdy Verbiage - Raineri Software, LLC

WordPress plugin Change Howdy Verbiage - Raineri Software, LLC scored68%from 54 tests.

About plugin

  • Plugin page: rs-change-howdy-v...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.3-4.8.2
  • WordPress version: 6.3.1
  • First release: Oct 18, 2017
  • Latest release: Oct 18, 2017
  • Number of updates: 5
  • Update frequency: every 6.4 days
  • Top authors: zacharyraineri (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,211 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼1.83MB] [CPU: ▼54.16ms] Passed 4 tests

This is a short check of server-side resources used by Change Howdy Verbiage - Raineri Software, LLC
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.47 ▼1.53
Dashboard /wp-admin2.12 ▼1.195.97 ▼41.76
Posts /wp-admin/edit.php2.12 ▼1.247.93 ▼41.85
Add New Post /wp-admin/post-new.php2.12 ▼3.776.67 ▼103.77
Media Library /wp-admin/upload.php2.12 ▼1.118.18 ▼29.24
Raineri Software /wp-admin/admin.php?page=raineri-software2.126.41
Change Howdy /wp-admin/admin.php?page=rschv_options_group2.127.10

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Change Howdy Verbiage - Raineri Software, LLC: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,852 ▲11713.22 ▼1.461.92 ▲0.3138.12 ▼9.07
Dashboard /wp-admin2,233 ▲425.87 ▲1.02113.12 ▲7.5742.56 ▼2.88
Posts /wp-admin/edit.php2,119 ▲301.99 ▲0.0040.15 ▼2.0836.05 ▼2.73
Add New Post /wp-admin/post-new.php1,536 ▲817.53 ▼0.50655.96 ▲39.3059.63 ▲12.57
Media Library /wp-admin/upload.php1,415 ▲274.21 ▲0.01102.54 ▼4.0942.48 ▼1.98
Raineri Software /wp-admin/admin.php?page=raineri-software7862.0527.7729.36
Change Howdy /wp-admin/admin.php?page=rschv_options_group7992.0326.1327.93

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/rs-change-howdy-verbiage/functions.php+6
    Trying to access array offset on value of type bool
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
  • 1333 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=rschv_options_group
    • > Notice in wp-content/plugins/rs-change-howdy-verbiage/functions.php+6
    Trying to access array offset on value of type bool

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
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rs-change-howdy-verbiage/menu.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/rs-change-howdy-verbiage/deactivation.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rs-change-howdy-verbiage/rs-menu.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/rs-change-howdy-verbiage/functions.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/rs-change-howdy-verbiage/activation.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/rs-change-howdy-verbiage/activation.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === rs-change-howdy-verbiage === )
The official readme.txt is a good inspiration

rs-change-howdy-verbiage/primary.php 92% from 13 tests

Analyzing the main PHP file in "Change Howdy Verbiage - Raineri Software, LLC" version 1.0
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("rs-change-howdy-verbiage.php" instead of "primary.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin107 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP7228107

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions10
▷ Named functions10100.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