88% my-hello-dolly

Code Review | My Hello Dolly

WordPress plugin My Hello Dolly scored 88% from 54 tests.

About plugin

  • Plugin page: my-hello-dolly
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9
  • WordPress version: 5.8.1
  • First release: May 4, 2014
  • Latest release: May 4, 2014
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: wphigh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,168 total downloads

Benchmarks

Plugin footprint Passed 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: ▼141.66ms] Passed 4 tests

An overview of server-side resources used by My Hello Dolly
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0232.07 ▲1.24
Dashboard /wp-admin3.09 ▲0.0343.26 ▼12.53
Posts /wp-admin/edit.php3.14 ▲0.0348.81 ▲6.59
Add New Post /wp-admin/post-new.php5.44 ▲0.0196.39 ▼555.83
Media Library /wp-admin/upload.php3.03 ▲0.0333.00 ▲0.50

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for My Hello Dolly
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,711 ▲11516.11 ▲0.4411.29 ▼4.7045.66 ▲6.14
Dashboard /wp-admin2,975 ▲425.92 ▼0.29143.25 ▼20.74106.39 ▼3.48
Posts /wp-admin/edit.php2,747 ▲82.72 ▼0.1180.39 ▲16.5990.31 ▲1.13
Add New Post /wp-admin/post-new.php1,510 ▼17318.56 ▲0.06362.32 ▼20.77109.65 ▲0.28
Media Library /wp-admin/upload.php1,815 ▲85.04 ▲0.03152.75 ▲3.29115.46 ▲1.54
My Hello Dolly /wp-admin/my-hello-dolly.php260.900.0511.04

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
  • 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/my-hello-dolly/my-hello.php:48

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
    • > GET request to /wp-admin/my-hello-dolly.php
    • > Network (severe)
    wp-admin/my-hello-dolly.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: admin notices, funny, hell dolly

my-hello-dolly/my-hello.php 77% from 13 tests

This is the main PHP file of "My Hello Dolly" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("my-hello-dolly.php" instead of "my-hello.php")
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Description: Please don't use more than 140 characters for the plugin description (currently 141 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected154 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14063117
PO File17737

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
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

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin