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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.19 | 40.43 ▼0.83 |
Dashboard /wp-admin | 3.49 ▲0.18 | 49.60 ▼4.96 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 52.30 ▲7.97 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 88.10 ▼1.86 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 37.00 ▲1.22 |
FAQ Category /wp-admin/edit-tags.php?taxonomy=faq_cat&post_type=faq | 3.40 | 35.01 |
Add New /wp-admin/post-new.php?post_type=faq | 6.20 | 92.60 |
FAQ /wp-admin/edit.php?post_type=faq | 3.48 | 44.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲99 | 14.78 ▲0.37 | 1.63 ▼0.20 | 40.92 ▼6.06 |
Dashboard /wp-admin | 2,234 ▲46 | 4.85 ▼1.00 | 104.36 ▼10.77 | 40.49 ▼3.51 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.05 ▲0.01 | 36.62 ▲0.89 | 31.34 ▼6.14 |
Add New Post /wp-admin/post-new.php | 1,559 ▲22 | 22.99 ▲0.05 | 621.58 ▼57.58 | 56.38 ▲4.92 |
Media Library /wp-admin/upload.php | 1,419 ▲31 | 4.29 ▲0.12 | 96.84 ▼7.00 | 41.40 ▼3.35 |
FAQ Category /wp-admin/edit-tags.php?taxonomy=faq_cat&post_type=faq | 1,296 | 2.14 | 32.95 | 27.80 |
Add New /wp-admin/post-new.php?post_type=faq | 6,258 | 19.95 | 873.04 | 34.37 |
FAQ /wp-admin/edit.php?post_type=faq | 1,140 | 1.94 | 33.37 | 29.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 141 | 430 | 745 |
JavaScript | 3 | 25 | 23 | 137 |
PO File | 1 | 20 | 20 | 78 |
Sass | 1 | 0 | 0 | 15 |
CSS | 1 | 1 | 1 | 1 |
JSON | 1 | 0 | 0 | 1 |
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 code | 0.40 |
Average class complexity | 11.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 2 | 22.22% |
▷ Concrete classes | 7 | 77.78% |
▷ Final classes | 0 | 0.00% |
Methods | 56 | |
▷ Static methods | 4 | 7.14% |
▷ Public methods | 39 | 69.64% |
▷ Protected methods | 16 | 28.57% |
▷ Private methods | 1 | 1.79% |
Functions | 12 | |
▷ Named functions | 6 | 50.00% |
▷ Anonymous functions | 6 | 50.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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