84% mieruca-heatmap-tag-manager

Code Review | ミエルカヒートマップ タグマネージャー

WordPress plugin ミエルカヒートマップ タグマネージャー scored84%from 54 tests.

About plugin

  • Plugin page: mieruca-heatmap-t...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 6.3.1
  • First release: Sep 27, 2021
  • Latest release: Sep 28, 2021
  • Number of updates: 12
  • Update frequency: every 1.0 days
  • Top authors: kanekosfaber (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /2,188 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼13.52ms] Passed 4 tests

This is a short check of server-side resources used by ミエルカヒートマップ タグマネージャー
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0244.15 ▲2.67
Dashboard /wp-admin3.34 ▼0.0147.27 ▼17.28
Posts /wp-admin/edit.php3.39 ▲0.0349.31 ▼2.51
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.14 ▼27.81
Media Library /wp-admin/upload.php3.26 ▲0.0333.19 ▼6.48
ミエルカヒートマップ /wp-admin/admin.php?page=mieruca-heatmap-tag-manager3.2233.07
設定 /wp-admin/admin.php?page=mieruca-heatmap-tag-manager-config3.2332.98

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for ミエルカヒートマップ タグマネージャー
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7014.36 ▼0.292.10 ▲0.3744.82 ▲4.34
Dashboard /wp-admin2,225 ▲455.61 ▲0.0385.93 ▼8.5150.55 ▲8.80
Posts /wp-admin/edit.php2,127 ▲272.02 ▲0.0435.49 ▼2.2244.93 ▲9.53
Add New Post /wp-admin/post-new.php1,548 ▲2223.22 ▲0.21674.29 ▼21.4360.41 ▲7.91
Media Library /wp-admin/upload.php1,427 ▲274.19 ▼0.07101.51 ▼10.1650.39 ▲4.32
ミエルカヒートマップ /wp-admin/admin.php?page=mieruca-heatmap-tag-manager7962.0025.5950.65
設定 /wp-admin/admin.php?page=mieruca-heatmap-tag-manager-config8742.0223.8450.18

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mieruca-heatmap-tag-manager/mieruca-heatmap-tag-manager.php:11

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

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: mieruca, japanese, mieruca heatmap, analytics, read...

mieruca-heatmap-tag-manager/mieruca-heatmap-tag-manager.php Passed 13 tests

The principal PHP file in "ミエルカヒートマップ タグマネージャー" v. 1.0.0 is loaded by WordPress automatically on each request
43 characters long description:
Mieruca Heatmap のタグを簡単設定!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin156 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1119156

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.31
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods436.36%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants00.00%
▷ Class constants12100.00%
▷ Public constants12100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin