Benchmarks
Plugin footprint 40% 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
The following installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/wehewehe/index.php+209
Methods with the same name as their class will not be constructors in a future version of PHP; WEHEWEHE_Widget_Class has a deprecated constructor
Server metrics [RAM: ▼1.81MB] [CPU: ▼62.67ms] Passed 4 tests
Server-side resources used by WEHEWEHE Hawaiian English Dictionary Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.18 ▼1.29 | 5.48 ▼46.73 |
Dashboard /wp-admin | 2.20 ▼1.11 | 6.54 ▼48.67 |
Posts /wp-admin/edit.php | 2.20 ▼1.16 | 8.00 ▼49.16 |
Add New Post /wp-admin/post-new.php | 2.20 ▼3.69 | 6.62 ▼106.13 |
Media Library /wp-admin/upload.php | 2.20 ▼1.04 | 5.80 ▼31.78 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_wehewehe-widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
WEHEWEHE Hawaiian English Dictionary Widget: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲39 | 14.69 ▲0.27 | 1.85 ▼0.21 | 47.37 ▲3.60 |
Dashboard /wp-admin | 2,191 ▲14 | 5.52 ▼0.06 | 85.64 ▼18.97 | 75.47 ▲30.84 |
Posts /wp-admin/edit.php | 2,114 ▲11 | 2.00 ▲0.01 | 36.25 ▼9.50 | 32.15 ▼2.05 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 23.48 ▲0.02 | 787.74 ▲92.79 | 60.20 ▲7.81 |
Media Library /wp-admin/upload.php | 1,405 ▲5 | 4.16 ▼0.02 | 115.13 ▲5.13 | 89.23 ▲44.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/wehewehe/index.php+209
Methods with the same name as their class will not be constructors in a future version of PHP; WEHEWEHE_Widget_Class has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_wehewehe-widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wehewehe/index.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function import_request_variables() in wp-content/plugins/wehewehe/images/index.php:42
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 12 tag instead of maximum 10
wehewehe/index.php 92% from 13 tests
This is the main PHP file of "WEHEWEHE Hawaiian English Dictionary Widget" version 4.14.49, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("wehewehe.php" instead of "index.php")
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 detected354 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 9 | 38 | 354 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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