10% kunze-law

Code Review | Kunze Law

WordPress plugin Kunze Law scored10%from 54 tests.

About plugin

  • Plugin page: kunze-law
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1
  • WordPress version: 6.3.1
  • First release: May 22, 2017
  • Latest release: Nov 5, 2022
  • Number of updates: 19
  • Update frequency: every 119.0 days
  • Top authors: kunzemarketing (100%)

Code review

54 tests

User reviews

1 review

Install metrics

700+ active /3,134 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/kunze-law/kunze-law.php+33
    date_default_timezone_set(): Timezone ID '' is invalid

Server metrics [RAM: ▼1.88MB] [CPU: ▼61.30ms] Passed 4 tests

Server-side resources used by Kunze Law
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.16 ▼1.355.68 ▼38.20
Dashboard /wp-admin2.18 ▼1.216.74 ▼60.26
Posts /wp-admin/edit.php2.18 ▼1.228.34 ▼46.23
Add New Post /wp-admin/post-new.php2.18 ▼3.755.37 ▼100.51
Media Library /wp-admin/upload.php2.18 ▼1.095.89 ▼32.65

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Kunze Law
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.34 ▼0.001.61 ▲0.0539.22 ▼2.73
Dashboard /wp-admin2,211 ▲315.64 ▼0.0494.97 ▼1.0343.43 ▲4.85
Posts /wp-admin/edit.php2,113 ▲131.99 ▲0.0140.23 ▼0.9234.66 ▼0.03
Add New Post /wp-admin/post-new.php1,541 ▲1523.36 ▼0.55644.61 ▼20.6656.08 ▲0.89
Media Library /wp-admin/upload.php1,410 ▲104.19 ▼0.01103.35 ▼5.2443.19 ▼6.16

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
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/kunze-law/kunze-law.php+33
    date_default_timezone_set(): Timezone ID '' is invalid
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

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

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)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: content, remote, embed, shortcode, import

kunze-law/kunze-law.php Passed 13 tests

"Kunze Law" version 2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
53 characters long description:
This Plugin distributes central hosted content files.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin386 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP171137386

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.39
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin