84% habu

Code Review | Habu Plugin

WordPress plugin Habu Plugin scored84%from 54 tests.

About plugin

  • Plugin page: habu
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Feb 19, 2020
  • Latest release: Feb 24, 2020
  • Number of updates: 18
  • Update frequency: every 0.3 days
  • Top authors: habu20 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /583 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼12.60ms] Passed 4 tests

This is a short check of server-side resources used by Habu Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0328.24 ▼16.05
Dashboard /wp-admin3.36 ▲0.0149.85 ▼22.99
Posts /wp-admin/edit.php3.47 ▲0.1150.25 ▼3.61
Add New Post /wp-admin/post-new.php5.96 ▲0.0789.08 ▼7.74
Media Library /wp-admin/upload.php3.28 ▲0.0539.89 ▼0.34

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Habu Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,878 ▲11713.66 ▼0.618.11 ▲6.2841.72 ▼1.96
Dashboard /wp-admin2,199 ▲195.59 ▼0.0889.92 ▼8.5540.76 ▲0.76
Posts /wp-admin/edit.php2,107 ▲71.97 ▼0.0441.68 ▲0.7735.22 ▼6.68
Add New Post /wp-admin/post-new.php1,530 ▲423.20 ▲0.11641.14 ▼52.0360.07 ▲6.93
Media Library /wp-admin/upload.php1,404 ▲44.16 ▲0.0198.52 ▼16.5947.27 ▼0.56

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/habu/public/partials/habu-public-display.php
    • > /wp-content/plugins/habu/admin/partials/habu-admin-display.php

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Donate link: Invalid URI ("*")
You can look at the official readme.txt

habu/habu.php Passed 13 tests

The principal PHP file in "Habu Plugin" v. 1.0.0 is loaded by WordPress automatically on each request
82 characters long description:
Habu's custom WordPress plugin. Transporting data functionality across your sites.

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
Success! There were no dangerous files found in this plugin225 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12127546219
JavaScript24546
CSS2080

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.28
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods25
▷ Static methods28.00%
▷ Public methods2080.00%
▷ Protected methods00.00%
▷ Private methods520.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected