10% honnypotter

Code Review | HonnyPotter

WordPress plugin HonnyPotter scored10%from 54 tests.

About plugin

  • Plugin page: honnypotter
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.1-4.4
  • WordPress version: 6.3.1
  • First release: Dec 12, 2015
  • Latest release: Dec 13, 2015
  • Number of updates: 9
  • Update frequency: every 5.6 days
  • Top authors: Mrtn9 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /924 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/honnypotter/honnypotter.php+34
    Constant WP_DEBUG already defined

Server metrics [RAM: ▼1.94MB] [CPU: ▼61.98ms] Passed 4 tests

Server-side resources used by HonnyPotter
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.404.39 ▼38.37
Dashboard /wp-admin2.08 ▼1.275.66 ▼61.05
Posts /wp-admin/edit.php2.08 ▼1.286.05 ▼44.27
Add New Post /wp-admin/post-new.php2.08 ▼3.815.61 ▼104.24
Media Library /wp-admin/upload.php2.08 ▼1.156.39 ▼33.34
HonnyPotter /wp-admin/options-general.php?page=honnypotter2.086.83

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

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

Browser metrics Passed 4 tests

A check of browser resources used by HonnyPotter
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.07 ▼0.461.74 ▲0.1940.07 ▼1.94
Dashboard /wp-admin2,202 ▲315.63 ▼0.0392.36 ▼14.1438.22 ▼2.16
Posts /wp-admin/edit.php2,104 ▲41.99 ▼0.0140.39 ▲1.2636.33 ▼1.05
Add New Post /wp-admin/post-new.php1,529 ▲323.61 ▲0.63677.76 ▼31.3053.77 ▼17.58
Media Library /wp-admin/upload.php1,404 ▲44.10 ▼0.0097.73 ▼18.6245.56 ▼2.31
HonnyPotter /wp-admin/options-general.php?page=honnypotter8231.9926.5229.84

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/honnypotter/honnypotter.php+34
    Constant WP_DEBUG already defined
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • honnypotter
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=honnypotter
    • > Notice in wp-content/plugins/honnypotter/honnypotter.php+34
    Constant WP_DEBUG already defined

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/honnypotter/honnypotter.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/honnypotter/honnypotter.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === honnypotter === )
You can look at the official readme.txt

honnypotter/honnypotter.php Passed 13 tests

"HonnyPotter" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
30 characters long description:
Log all failed login-attempts.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin157 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP43249145
Markdown17012

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity5.00
▷ Minimum class complexity3.00
▷ Maximum class complexity7.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods10100.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There were not PNG files found in your plugin