10% heimu

Code Review | Heimu

WordPress plugin Heimu scored 10% from 54 tests.

About plugin

  • Plugin page: heimu
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-5.4
  • WordPress version: 6.3.1
  • First release: May 19, 2020
  • Latest release: Jun 7, 2020
  • Number of updates: 10
  • Update frequency: every 1.9 days
  • Top authors: kaaass (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 2,414 total downloads

Benchmarks

Plugin footprint 58% 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
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/heimu/heimu.php+76
    Trying to access array offset on value of type null

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

This is a short check of server-side resources used by Heimu
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.26 ▼2.51
Dashboard /wp-admin3.35 ▲0.0447.93 ▲0.40
Posts /wp-admin/edit.php3.40 ▲0.0446.11 ▼2.22
Add New Post /wp-admin/post-new.php5.92 ▲0.0492.41 ▲4.43
Media Library /wp-admin/upload.php3.27 ▲0.0440.04 ▲4.50
黑幕 /wp-admin/options-general.php?page=heimu3.2330.87

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Heimu: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.26 ▼0.991.68 ▼0.2743.81 ▼1.17
Dashboard /wp-admin2,210 ▲255.88 ▼0.02108.42 ▼0.5142.85 ▲2.33
Posts /wp-admin/edit.php2,093 ▲42.06 ▲0.0636.60 ▼2.7238.48 ▲5.97
Add New Post /wp-admin/post-new.php1,679 ▲16022.24 ▼0.94605.39 ▼16.1933.74 ▼67.54
Media Library /wp-admin/upload.php1,392 ▲74.21 ▼0.0198.33 ▼13.0246.07 ▼2.67
黑幕 /wp-admin/options-general.php?page=heimu8472.0222.0785.64

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/heimu/blockeditor/main.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/heimu/heimu.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/heimu/admin_config.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
1 plugin tags: heimu

heimu/heimu.php Passed 13 tests

The main file in "Heimu" v. 1.1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
46 characters long description:
Add heimu and its short code for your passage.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin279 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP45026240
CSS27638
JavaScript1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
There were not PNG files found in your plugin