84% custom-howdy

Code Review | Custom Howdy

WordPress plugin Custom Howdy scored84%from 54 tests.

About plugin

  • Plugin page: custom-howdy
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.1-4.7
  • WordPress version: 6.3.1
  • First release: Jan 4, 2017
  • Latest release: Jan 4, 2017
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: csheridan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,341 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼0.00ms] Passed 4 tests

Server-side resources used by Custom Howdy
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.48 ▼6.93
Dashboard /wp-admin3.33 ▲0.0354.31 ▼0.91
Posts /wp-admin/edit.php3.38 ▲0.0257.06 ▲6.80
Add New Post /wp-admin/post-new.php5.91 ▲0.02100.06 ▲1.04
Media Library /wp-admin/upload.php3.25 ▲0.0243.18 ▲7.24
Custom Howdy /wp-admin/options-general.php?page=customhowdy-op3.2235.40

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: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
customhowdy_plugin_op

Browser metrics Passed 4 tests

An overview of browser requirements for Custom Howdy
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.38 ▲0.011.80 ▲0.0147.69 ▲1.35
Dashboard /wp-admin2,202 ▲225.60 ▼0.0484.89 ▼15.2938.60 ▼5.24
Posts /wp-admin/edit.php2,104 ▲41.96 ▼0.0439.33 ▲0.7036.19 ▲0.79
Add New Post /wp-admin/post-new.php1,529 ▲323.59 ▼0.01665.99 ▲7.5673.62 ▲14.24
Media Library /wp-admin/upload.php1,401 ▲14.42 ▲0.23100.52 ▼5.5743.80 ▼3.65
Custom Howdy /wp-admin/options-general.php?page=customhowdy-op8152.0024.8528.21

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 did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • customhowdy_plugin_op
    • db_upgraded

Smoke tests 75% 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at 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/custom-howdy/customhowdy.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: A description for screenshot #1 is missing in custom-howdy/assets to your readme.txt
Please take inspiration from this readme.txt

custom-howdy/customhowdy.php 92% from 13 tests

The main file in "Custom Howdy" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("custom-howdy.php" instead of "customhowdy.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
Success! There were no dangerous files found in this plugin111 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP18725111

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions9
▷ Named functions9100.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