Benchmarks
Plugin footprint 82% 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.30MB] [CPU: ▲1.32ms] Passed 4 tests
An overview of server-side resources used by OpenHook
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 42.83 ▼3.50 |
Dashboard /wp-admin | 3.66 ▲0.35 | 51.01 ▼0.82 |
Posts /wp-admin/edit.php | 3.77 ▲0.42 | 50.58 ▲3.60 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.35 | 97.18 ▲6.01 |
Media Library /wp-admin/upload.php | 3.58 ▲0.35 | 41.40 ▲7.17 |
Server Info /wp-admin/options-general.php?page=openhook&tab=phpinfo | 3.76 | 39.43 |
WordPress Hooks /wp-admin/options-general.php?page=openhook&tab=wordpress | 3.52 | 33.12 |
OpenHook /wp-admin/options-general.php?page=openhook | 3.55 | 33.93 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Please fix the following
- There were 1 file (1.83KB) illegally modified outside of "wp-content/plugins/thesis-openhook/" and "wp-content/uploads/"
- (new file) wp-content/thesis/boxes/openbox/box.php
Filesystem: 12 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
openhook_version |
openhook_general |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by OpenHook
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲55 | 13.24 ▼1.37 | 1.78 ▼0.32 | 44.21 ▼2.28 |
Dashboard /wp-admin | 2,215 ▲27 | 5.86 ▲0.99 | 99.39 ▼22.64 | 39.52 ▼6.92 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.05 ▲0.05 | 44.76 ▲4.75 | 35.92 ▲3.15 |
Add New Post /wp-admin/post-new.php | 1,543 ▲7 | 22.99 ▼0.50 | 655.95 ▼21.96 | 55.74 ▼14.50 |
Media Library /wp-admin/upload.php | 1,394 ▲9 | 4.21 ▼0.02 | 94.35 ▼8.84 | 42.02 ▼2.41 |
Server Info /wp-admin/options-general.php?page=openhook&tab=phpinfo | 6,263 | 1.69 | 27.42 | 87.24 |
WordPress Hooks /wp-admin/options-general.php?page=openhook&tab=wordpress | 1,287 | 2.09 | 39.55 | 42.65 |
OpenHook /wp-admin/options-general.php?page=openhook | 1,088 | 1.97 | 43.00 | 36.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options were found after uninstall: 8 options
- openhook_version
- widget_theysaidso_widget
- openhook_general
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=openhook&tab=wordpress
- > Notice in wp-content/plugins/thesis-openhook/inc/admin.php+244
Trying to access array offset on value of type bool
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
thesis-openhook/index.php 85% from 13 tests
"OpenHook" version 4.3.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 256 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("thesis-openhook.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,556 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 193 | 394 | 1,518 |
CSS | 4 | 1 | 1 | 38 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
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 | 63.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 108.00 |
Average method complexity | 5.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 28 | 62.22% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 17 | 37.78% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/img/gg2wd.png | 18.77KB | 6.11KB | ▼ 67.45% |