84% hello-kurt

Code Review | Hello Kurt

WordPress plugin Hello Kurt scored84%from 54 tests.

About plugin

  • Plugin page: hello-kurt
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7
  • WordPress version: 6.3.1
  • First release: Jul 19, 2013
  • Latest release: Apr 28, 2014
  • Number of updates: 15
  • Update frequency: every 91.3 days
  • Top authors: andrezrv (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,377 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Hello Kurt
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.32 ▼6.42
Dashboard /wp-admin3.31 ▼0.0350.26 ▼13.03
Posts /wp-admin/edit.php3.36 ▲0.0148.01 ▼3.09
Add New Post /wp-admin/post-new.php5.89 ▲0.0194.94 ▼7.52
Media Library /wp-admin/upload.php3.24 ▲0.0136.14 ▼0.69

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Hello Kurt
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲3413.24 ▼1.141.58 ▼0.6139.68 ▼3.30
Dashboard /wp-admin2,211 ▲205.85 ▲0.96108.13 ▼3.8241.25 ▼3.16
Posts /wp-admin/edit.php2,096 ▲102.06 ▲0.0738.87 ▲3.3437.32 ▲0.16
Add New Post /wp-admin/post-new.php1,589 ▲6021.67 ▼1.35573.29 ▼113.3228.01 ▼25.77
Media Library /wp-admin/upload.php1,393 ▲54.22 ▲0.0193.39 ▼12.4741.15 ▼4.29

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/hello-kurt/hello-kurt-loader.class.php:14

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% 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
6 plugin tags: hello, dolly, random, admin, kurt...

hello-kurt/hello-kurt.php 92% from 13 tests

The main PHP script in "Hello Kurt" version 1.1 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 293 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin118 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP4137899
Markdown18019

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity3.00
▷ Minimum class complexity2.00
▷ Maximum class complexity4.00
Average method complexity1.44
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods555.56%
▷ Protected methods00.00%
▷ Private methods444.44%
Functions0
▷ Named functions00.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
No PNG files were detected