84% hamelp

Code Review | Hamelp

WordPress plugin Hamelp scored84%from 54 tests.

About plugin

  • Plugin page: hamelp
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.2.2
  • WordPress version: 6.3.1
  • First release: Aug 7, 2018
  • Latest release: Sep 3, 2019
  • Number of updates: 13
  • Update frequency: every 30.2 days
  • Top authors: Takahashi_Fumiki (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /728 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.20MB] [CPU: ▼1.61ms] Passed 4 tests

Analyzing server-side resources used by Hamelp
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.1940.43 ▼0.83
Dashboard /wp-admin3.49 ▲0.1849.60 ▼4.96
Posts /wp-admin/edit.php3.60 ▲0.2452.30 ▲7.97
Add New Post /wp-admin/post-new.php6.17 ▲0.2888.10 ▼1.86
Media Library /wp-admin/upload.php3.41 ▲0.1837.00 ▲1.22
FAQ Category /wp-admin/edit-tags.php?taxonomy=faq_cat&post_type=faq3.4035.01
Add New /wp-admin/post-new.php?post_type=faq6.2092.60
FAQ /wp-admin/edit.php?post_type=faq3.4844.03

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Hamelp
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲9914.78 ▲0.371.63 ▼0.2040.92 ▼6.06
Dashboard /wp-admin2,234 ▲464.85 ▼1.00104.36 ▼10.7740.49 ▼3.51
Posts /wp-admin/edit.php2,120 ▲312.05 ▲0.0136.62 ▲0.8931.34 ▼6.14
Add New Post /wp-admin/post-new.php1,559 ▲2222.99 ▲0.05621.58 ▼57.5856.38 ▲4.92
Media Library /wp-admin/upload.php1,419 ▲314.29 ▲0.1296.84 ▼7.0041.40 ▼3.35
FAQ Category /wp-admin/edit-tags.php?taxonomy=faq_cat&post_type=faq1,2962.1432.9527.80
Add New /wp-admin/post-new.php?post_type=faq6,25819.95873.0434.37
FAQ /wp-admin/edit.php?post_type=faq1,1401.9433.3729.42

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'Hametuha\\Hamelp\\Pattern\\Singleton' not found in wp-content/plugins/hamelp/app/Hametuha/Hamelp/Pattern/ShortCode.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Hametuha\\Hamelp\\Pattern\\Singleton' not found in wp-content/plugins/hamelp/app/Hametuha/Hamelp/Hooks/PostType.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Hametuha\\Hamelp\\Pattern\\ShortCode' not found in wp-content/plugins/hamelp/app/Hametuha/Hamelp/Hooks/SearchBoxShortCode.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Hametuha\\Hamelp\\Pattern\\Singleton' not found in wp-content/plugins/hamelp/app/Hametuha/Hamelp/Hooks/StructuredData.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Hametuha\\Hamelp\\Pattern\\Singleton' not found in wp-content/plugins/hamelp/app/Hametuha/Hamelp.php:12

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

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: faq, help

hamelp/hamelp.php Passed 13 tests

Analyzing the main PHP file in "Hamelp" version 1.0.4
26 characters long description:
FAQ generator by Hametuha.

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
Good job! No executable or dangerous file extensions detected977 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP14141430745
JavaScript32523137
PO File1202078
Sass10015
CSS1111
JSON1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity11.56
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.90
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes9
▷ Abstract classes222.22%
▷ Concrete classes777.78%
▷ Final classes00.00%
Methods56
▷ Static methods47.14%
▷ Public methods3969.64%
▷ Protected methods1628.57%
▷ Private methods11.79%
Functions12
▷ Named functions650.00%
▷ Anonymous functions650.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin