84% hello-darth

Code Review | Hello Darth

WordPress plugin Hello Darth scored84%from 54 tests.

About plugin

  • Plugin page: hello-darth
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-4.2.2
  • WordPress version: 6.3.1
  • First release: Aug 19, 2012
  • Latest release: May 23, 2015
  • Number of updates: 7
  • Update frequency: every 143.9 days
  • Top authors: mclanea (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /7,071 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

An overview of server-side resources used by Hello Darth
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0043.21 ▲0.24
Dashboard /wp-admin3.31 ▲0.0049.44 ▼3.26
Posts /wp-admin/edit.php3.36 ▲0.0048.20 ▼7.32
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.45 ▼27.50
Media Library /wp-admin/upload.php3.23 ▲0.0035.79 ▲1.52

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Hello Darth
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲4814.43 ▲0.071.87 ▼0.1245.97 ▼3.68
Dashboard /wp-admin2,200 ▲205.62 ▼0.0689.63 ▲0.4641.40 ▲0.81
Posts /wp-admin/edit.php2,105 ▲52.01 ▲0.0040.31 ▲4.3936.31 ▼0.87
Add New Post /wp-admin/post-new.php1,601 ▲6422.61 ▲4.12674.72 ▼2.1838.53 ▼31.13
Media Library /wp-admin/upload.php1,408 ▲54.16 ▼0.05102.08 ▲0.3255.48 ▲9.61

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hello-darth/hello_darth.php:126

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: fun, admin area, darth vader, star wars, anakin skywalker...

hello-darth/hello_darth.php 85% from 13 tests

The primary PHP file in "Hello Darth" version 0.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 441 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("hello-darth.php" instead of "hello_darth.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin118 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11020118

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.11
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