94% hello-pinky

Code Review | Hello Pinky

WordPress plugin Hello Pinky scored 94% from 54 tests.

About plugin

  • Plugin page: hello-pinky
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8.1
  • WordPress version: 5.8.1
  • First release: Dec 21, 2013
  • Latest release: Apr 3, 2014
  • Number of updates: 7
  • Update frequency: every 14.7 days
  • Top authors: neoloki (71.43%)james.w.lane (42.86%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 674 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.01MB] [CPU: ▼142.69ms] Passed 4 tests

Server-side resources used by Hello Pinky
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0237.48 ▲3.58
Dashboard /wp-admin3.08 ▲0.0244.01 ▼0.20
Posts /wp-admin/edit.php3.13 ▲0.0252.32 ▲6.43
Add New Post /wp-admin/post-new.php5.43 ▲0.0089.37 ▼577.07
Media Library /wp-admin/upload.php3.02 ▲0.0234.58 ▲2.95

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Hello Pinky: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,713 ▲11715.87 ▲0.509.24 ▼0.9551.52 ▲4.83
Dashboard /wp-admin2,980 ▲495.88 ▼0.16146.37 ▼6.64105.39 ▼11.72
Posts /wp-admin/edit.php2,749 ▲102.71 ▼0.0168.13 ▲1.17111.80 ▲24.24
Add New Post /wp-admin/post-new.php1,612 ▲11218.75 ▲0.18403.92 ▲0.54117.42 ▲9.35
Media Library /wp-admin/upload.php1,817 ▲75.03 ▲0.02181.29 ▲34.41117.65 ▲4.11

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
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× 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/hello-pinky/hello_pinky.php:161

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === hello-pinky === )
The official readme.txt is a good inspiration

hello-pinky/hello_pinky.php 92% from 13 tests

The primary PHP file in "Hello Pinky" version 1.1.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("hello-pinky.php" instead of "hello_pinky.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin170 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1915170

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.20
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin