84% heckler

Code Review | Heckler

WordPress plugin Heckler scored84%from 54 tests.

About plugin

  • Plugin page: heckler
  • Plugin version: 0.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 6.3.1
  • First release: Jul 9, 2021
  • Latest release: Jul 11, 2021
  • Number of updates: 6
  • Update frequency: every 0.5 days
  • Top authors: mastarija (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /427 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.43ms] Passed 4 tests

A check of server-side resources used by Heckler
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.86 ▲1.15
Dashboard /wp-admin3.33 ▲0.0343.05 ▼7.65
Posts /wp-admin/edit.php3.38 ▲0.0248.28 ▲2.27
Add New Post /wp-admin/post-new.php5.91 ▲0.0381.30 ▼16.13
Media Library /wp-admin/upload.php3.25 ▲0.0237.56 ▲0.93
Heckler /wp-admin/edit.php?post_type=heckler3.2933.63
Add New /wp-admin/post-new.php?post_type=heckler3.3849.39

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Heckler
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲5913.25 ▼1.121.69 ▼0.4938.67 ▼6.40
Dashboard /wp-admin2,236 ▲485.90 ▲1.0295.85 ▼10.3142.48 ▲1.22
Posts /wp-admin/edit.php2,116 ▲242.01 ▼0.0138.79 ▲2.9234.37 ▲0.42
Add New Post /wp-admin/post-new.php1,556 ▲3923.34 ▲5.79637.09 ▼20.7760.93 ▲7.32
Media Library /wp-admin/upload.php1,418 ▲304.18 ▲0.0597.15 ▼0.8546.58 ▲5.36
Heckler /wp-admin/edit.php?post_type=heckler1,1243.5369.5131.40
Add New /wp-admin/post-new.php?post_type=heckler2,7609.10238.9583.29

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
    • > GET request to /wp-admin/edit.php?post_type=heckler
    • > Javascript (severe) in unknown
    /wp-content/plugins/heckler/jsc/heckler.js?ver=6.3.1 3:18 Uncaught TypeError: Cannot read properties of null (reading 'getElementsByTagName')

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: shortcode, code, hook, block

heckler/heckler.php 85% from 13 tests

Analyzing the main PHP file in "Heckler" version 0.0.2
You should first fix the following items:
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("lng")
  • Domain Path: The domain path must begin with a forward slash character ("/lng")

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
There were no executable files found in this plugin1,048 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP1021522746
CSS1512216
JavaScript123086

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods2
▷ Static methods2100.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions39
▷ Named functions3692.31%
▷ Anonymous functions37.69%
Constants6
▷ Global constants00.00%
▷ Class constants6100.00%
▷ Public constants6100.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