94% hello-dolly

Code Review | Hello Dolly

WordPress plugin Hello Dolly scored 94% from 54 tests.

About plugin

  • Plugin page: hello-dolly
  • Plugin version: 1.7.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.8
  • WordPress version: 5.8.1
  • First release: Jul 6, 2008
  • Latest release: Sep 16, 2021
  • Number of updates: 25
  • Update frequency: every 194.3 days
  • Top authors: nacin (40%)Otto42 (24%)yoavf (16%)tellyworth (12%)pento (12%)

Code review

54 tests

User reviews

267 reviews

Install metrics

800,000+ active / 10,022,920 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

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

Server-side resources used by Hello Dolly
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1238.74 ▲15.31
Dashboard /wp-admin3.06 ▲0.0151.55 ▼3.70
Posts /wp-admin/edit.php3.12 ▲0.0153.28 ▲0.11
Add New Post /wp-admin/post-new.php5.42 ▼0.0194.99 ▼561.39
Media Library /wp-admin/upload.php3.01 ▲0.0133.62 ▼5.19

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Hello Dolly
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,689 ▲10715.88 ▲0.0414.02 ▲5.4448.95 ▼10.77
Dashboard /wp-admin2,977 ▲415.93 ▼0.00154.82 ▼17.03116.05 ▲1.96
Posts /wp-admin/edit.php2,749 ▲102.71 ▼0.0179.26 ▲9.8297.30 ▼4.55
Add New Post /wp-admin/post-new.php1,691 ▲818.68 ▲0.42442.96 ▲8.06115.59 ▼0.92
Media Library /wp-admin/upload.php1,817 ▲105.03 ▲0.01176.30 ▲19.88126.48 ▲8.49

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
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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 fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hello-dolly/hello.php:69

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

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
No tags were found

hello-dolly/hello.php 85% from 13 tests

This is the main PHP file of "Hello Dolly" version 1.7.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("hello-dolly.php" instead of "hello.php")
  • Description: The description should be shorter than 140 characters (currently 295 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 detected72 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP182072

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.10
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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin