84% hoeboe

Code Review | Hoeboe

WordPress plugin Hoeboe scored 84% from 54 tests.

About plugin

  • Plugin page: hoeboe
  • Plugin version: 0.1.4
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.4
  • WordPress version: 6.3.1
  • First release: Dec 4, 2018
  • Latest release: Apr 1, 2020
  • Number of updates: 11
  • Update frequency: every 44.0 days
  • Top authors: twicetwomedia (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) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼8.73ms] Passed 4 tests

Server-side resources used by Hoeboe
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1035.71 ▼7.65
Dashboard /wp-admin3.40 ▲0.0948.05 ▼6.48
Posts /wp-admin/edit.php3.51 ▲0.1550.82 ▼1.16
Add New Post /wp-admin/post-new.php5.98 ▲0.09102.56 ▼19.63
Media Library /wp-admin/upload.php3.32 ▲0.0934.38 ▲2.98
HoeBoe /wp-admin/tools.php?page=Hoe_Boe_Settings3.2832.00

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options
Hoe_Boe
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Hoeboe
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.25 ▼1.061.85 ▲0.0338.49 ▼5.71
Dashboard /wp-admin2,210 ▲215.86 ▲0.88107.38 ▼14.6140.91 ▼7.75
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0239.26 ▼16.8533.68 ▼1.92
Add New Post /wp-admin/post-new.php1,538 ▲1723.01 ▼0.52627.04 ▲35.0367.56 ▲20.53
Media Library /wp-admin/upload.php1,386 ▼54.30 ▲0.0997.09 ▲1.0941.17 ▼0.86
HoeBoe /wp-admin/tools.php?page=Hoe_Boe_Settings8422.1424.4428.28

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
  • Zombie WordPress options detected upon uninstall: 7 options
    • Hoe_Boe
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means 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× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/hoeboe/hoeboe.php:17

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: api, page speed, site speed, ajax, cache...

hoeboe/hoeboe.php Passed 13 tests

The main PHP file in "Hoeboe" ver. 0.1.4 adds more information about the plugin and also serves as the entry point for this plugin
116 characters long description:
Easily update WordPress transients in the background via AJAX to increase site speed and avoid long page load times.

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
Success! There were no dangerous files found in this plugin598 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP1013840592
JavaScript1026

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity13.17
▷ Minimum class complexity1.00
▷ Maximum class complexity32.00
Average method complexity2.11
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods66
▷ Static methods00.00%
▷ Public methods4162.12%
▷ Protected methods2131.82%
▷ Private methods46.06%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants872.73%
▷ Class constants327.27%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/hoeboe.png10.30KB3.46KB▼ 66.40%