83% hurrakify

Code Review | Hurrakify

WordPress plugin Hurrakify scored83%from 54 tests.

About plugin

  • Plugin page: hurrakify
  • Plugin version: 2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-6.3
  • WordPress version: 6.3.1
  • First release: Apr 11, 2008
  • Latest release: Jul 22, 2023
  • Number of updates: 50
  • Update frequency: every 111.6 days
  • Top authors: hurraki (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /2,661 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.13MB] [CPU: ▲5.06ms] Passed 4 tests

Analyzing server-side resources used by Hurrakify
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.82 ▲0.35100.84 ▲62.69
Dashboard /wp-admin3.43 ▲0.1344.62 ▼24.66
Posts /wp-admin/edit.php3.48 ▲0.1342.53 ▼6.06
Add New Post /wp-admin/post-new.php6.01 ▲0.13137.93 ▲50.55
Media Library /wp-admin/upload.php3.36 ▲0.1334.12 ▲0.39

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 14 new options
New WordPress options
hurraki_tooltip_key_words_ma
hurraki_tooltip_key_words_de
theysaidso_admin_options
hurraki_tooltip_key_words_last_update_time
can_compress_scripts
hurraki_tooltip_max_word
hurraki_tooltip_key_words_it
db_upgraded
widget_theysaidso_widget
widget_recent-comments
...

Browser metrics Passed 4 tests

A check of browser resources used by Hurrakify
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,853 ▲8213.21 ▼0.793.63 ▲1.7042.26 ▲2.18
Dashboard /wp-admin2,225 ▲434.85 ▼0.1294.90 ▼8.0039.01 ▼0.01
Posts /wp-admin/edit.php2,105 ▲162.05 ▲0.0534.17 ▼7.5933.59 ▼1.77
Add New Post /wp-admin/post-new.php1,546 ▲1823.19 ▲4.92668.21 ▲62.4056.95 ▲0.90
Media Library /wp-admin/upload.php1,404 ▲134.24 ▲0.0196.66 ▼5.8543.42 ▼2.20

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

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 no errors were found, 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
Please fix the following
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/hurrakify/uninstall.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hurrakify/hurrakify.php:14
    • > PHP Warning
      Use of undefined constant WP_UNINSTALL_PLUGIN - assumed 'WP_UNINSTALL_PLUGIN' (this will throw an Error in a future version of PHP) in wp-content/plugins/hurrakify/uninstall.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: You are using too many tags: 14 tag instead of maximum 10
  • Screenshots: Please add descriptions for these screenshots #0, #0 in hurrakify/assets to your readme.txt
The official readme.txt is a good inspiration

hurrakify/hurrakify.php 92% from 13 tests

The main PHP file in "Hurrakify" ver. 2.3 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 154 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,673 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2246194923
PHP46710248
CSS1249241
PO File55555241
Markdown116020

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions14
▷ Named functions14100.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
No PNG files were detected