Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.80MB] [CPU: ▼32.52ms] Passed 4 tests
Analyzing server-side resources used by Outdooractive Embed
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 37.57 ▼3.10 |
Dashboard /wp-admin | 3.14 ▼0.16 | 23.44 ▼32.49 |
Posts /wp-admin/edit.php | 3.15 ▼0.21 | 26.83 ▼23.21 |
Add New Post /wp-admin/post-new.php | 3.15 ▼2.74 | 32.31 ▼61.32 |
Media Library /wp-admin/upload.php | 3.15 ▼0.08 | 21.76 ▼13.06 |
Outdooractive Embed /wp-admin/options-general.php?page=oaembed-admin | 3.15 | 25.57 |
Server storage [IO: ▲3.36MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_oaembed |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Outdooractive Embed
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲75 | 13.24 ▼1.03 | 1.57 ▼0.38 | 39.80 ▼4.05 |
Dashboard /wp-admin | 2,217 ▲29 | 5.85 ▼0.01 | 107.31 ▼10.42 | 39.71 ▼3.19 |
Posts /wp-admin/edit.php | 2,108 ▲16 | 2.06 ▲0.02 | 39.92 ▼2.42 | 36.41 ▲2.51 |
Add New Post /wp-admin/post-new.php | 6,198 ▲4,656 | 19.37 ▲1.08 | 873.41 ▲244.82 | 52.51 ▼2.80 |
Media Library /wp-admin/upload.php | 1,399 ▲14 | 4.27 ▲0.04 | 106.77 ▲3.05 | 45.05 ▲2.63 |
Outdooractive Embed /wp-admin/options-general.php?page=oaembed-admin | 845 | 2.02 | 24.62 | 31.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/outdooractive-embed/configpage.php+58
Trying to access array offset on value of type bool
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_oaembed
- can_compress_scripts
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
- 9 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=oaembed-admin
- > Notice in wp-content/plugins/outdooractive-embed/configpage.php+89
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=oaembed-admin
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=oaembed-admin
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
The SRP test was a success
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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: refuge, hiking, mountaineering, biking, outdooractive...
outdooractive-embed/outdooractive.php 92% from 13 tests
"Outdooractive Embed" version 1.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("outdooractive-embed.php" instead of "outdooractive.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin1,095 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 149 | 41 | 632 |
JavaScript | 3 | 19 | 0 | 248 |
PO File | 1 | 73 | 381 | 157 |
CSS | 2 | 6 | 0 | 57 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 3.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 3.16MB with 1.77MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 833.24KB | 243.84KB | ▼ 70.74% |
screenshot-5.png | 196.29KB | 68.37KB | ▼ 65.17% |
screenshot-1.PNG | 682.58KB | 191.20KB | ▼ 71.99% |
OAButton/O20.png | 0.79KB | 0.77KB | ▼ 2.24% |
screenshot-2.PNG | 840.93KB | 243.18KB | ▼ 71.08% |