Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/genesis-hooks/genesis-hooks.php+265
Trying to access array offset on value of type bool
Server metrics [RAM: ▼0.12MB] [CPU: ▼4.85ms] Passed 4 tests
An overview of server-side resources used by Genesis Hooks
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.96 ▼0.49 | 21.00 ▼23.31 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.20 ▼5.21 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.50 ▲3.72 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 94.99 ▲9.77 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.69 ▲5.42 |
Server storage [IO: ▲0.43MB] [DB: ▲0.55MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Genesis Hooks
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲72 | 13.37 ▼0.99 | 5.82 ▲3.78 | 43.93 ▼0.44 |
Dashboard /wp-admin | 2,206 ▲14 | 4.83 ▼0.08 | 111.37 ▼6.47 | 44.92 ▼1.59 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.01 ▼0.01 | 38.74 ▲4.50 | 35.21 ▼0.22 |
Add New Post /wp-admin/post-new.php | 1,537 ▲4 | 23.34 ▲0.21 | 646.68 ▲49.58 | 51.60 ▼0.89 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.18 ▲0.00 | 95.83 ▼4.16 | 44.95 ▲0.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.55MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/genesis-hooks/uninstall.php+8
Invalid argument supplied for foreach()
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% 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
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/genesis-hooks/genesis-hooks.php:41
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
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:
- Screenshots: Please add images for these screenshots: #1 (Screenshot before activating the plugin.), #2 (Screenshot after activating the plugin.), #3 (The code when you use Developer tool in Google Chrome.)
genesis-hooks/genesis-hooks.php 92% from 13 tests
"Genesis Hooks" version 0.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Domain Path: The domain path is invalid: folder "/languages/" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin184 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 50 | 59 | 184 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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