84% hello-dalek

Code Review | Hello Dalek

WordPress plugin Hello Dalek scored 84% from 54 tests.

About plugin

  • Plugin page: hello-dalek
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.1
  • WordPress version: 6.3.1
  • First release: Mar 27, 2015
  • Latest release: Mar 27, 2015
  • Number of updates: 2
  • Update frequency: every 2.0 days
  • Top authors: NikV (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 836 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.32ms] Passed 4 tests

Analyzing server-side resources used by Hello Dalek
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.19 ▼8.45
Dashboard /wp-admin3.32 ▲0.0243.16 ▼4.27
Posts /wp-admin/edit.php3.37 ▲0.0147.49 ▲3.15
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.05 ▼10.69
Media Library /wp-admin/upload.php3.24 ▲0.0134.64 ▼1.86

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Hello Dalek
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.19 ▼1.191.60 ▼0.1940.40 ▲0.14
Dashboard /wp-admin2,209 ▲185.83 ▼0.0796.23 ▼7.4841.20 ▼1.23
Posts /wp-admin/edit.php2,094 ▲52.02 ▲0.0135.40 ▼1.7234.38 ▲2.08
Add New Post /wp-admin/post-new.php1,590 ▲5322.52 ▲4.34644.90 ▲9.8543.12 ▼16.73
Media Library /wp-admin/upload.php1,391 ▼04.16 ▼0.0393.10 ▼18.1938.73 ▼12.49

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

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

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 have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hello-dalek/hello-dalek.php:68

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: dalek, who, first doctor, hello

hello-dalek/hello-dalek.php Passed 13 tests

This is the main PHP file of "Hello Dalek" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
37 characters long description:
Quotes from Dr. Who. Need I say more?

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin69 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP161764
Markdown1305

PHP code Passed 2 tests

This is a short overview 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
There were not PNG files found in your plugin