Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▲2.86ms] Passed 4 tests
Analyzing server-side resources used by Outdoor
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 43.83 ▼2.83 |
Dashboard /wp-admin | 3.44 ▲0.14 | 57.81 ▲5.53 |
Posts /wp-admin/edit.php | 3.56 ▲0.21 | 60.24 ▲8.81 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 109.36 ▲9.02 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 41.89 ▼0.09 |
Visualizar /wp-admin/admin.php?page=outdoor_preview | 3.36 | 63.15 |
Configurações /wp-admin/admin.php?page=outdoor_settings | 3.34 | 44.54 |
Outdoor /wp-admin/admin.php?page=outdoor | 3.36 | 45.64 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_outdoor |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
outdoor_db_version |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Outdoor
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,968 ▲168 | 14.80 ▲1.55 | 1.71 ▼0.12 | 43.58 ▼2.30 |
Dashboard /wp-admin | 2,374 ▲171 | 6.42 ▲0.54 | 134.75 ▲37.16 | 39.27 ▲2.62 |
Posts /wp-admin/edit.php | 2,283 ▲191 | 3.32 ▲1.26 | 55.07 ▲19.53 | 34.83 ▲3.13 |
Add New Post /wp-admin/post-new.php | 1,581 ▲39 | 19.67 ▲1.39 | 599.74 ▼28.52 | 32.49 ▼25.49 |
Media Library /wp-admin/upload.php | 1,419 ▲34 | 4.12 ▼0.10 | 80.68 ▼22.48 | 41.26 ▼1.85 |
Visualizar /wp-admin/admin.php?page=outdoor_preview | 1,007 | 3.17 | 46.81 | 27.56 |
Configurações /wp-admin/admin.php?page=outdoor_settings | 1,034 | 3.08 | 41.24 | 33.66 |
Outdoor /wp-admin/admin.php?page=outdoor | 1,380 | 3.17 | 38.82 | 29.99 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/outdoor/table.php
- > /wp-content/plugins/outdoor/functions.php
- > /wp-content/plugins/outdoor/outdoor.php
- > /wp-content/plugins/outdoor/actions.php
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/outdoor/view.php:125
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/outdoor/pages/settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/outdoor/pages/preview.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/outdoor/pages/main.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: outdoor, image, video
outdoor/outdoor.php Passed 13 tests
"Outdoor" version 1.3.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
57 characters long description:
Projetar vídeos e imagens em looping de forma dinâmica.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,074 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 176 | 41 | 1,004 |
JavaScript | 1 | 12 | 0 | 56 |
CSS | 1 | 2 | 3 | 14 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 55.00 |
▷ Minimum class complexity | 55.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 5.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 72.73% |
▷ Protected methods | 2 | 18.18% |
▷ Private methods | 1 | 9.09% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/video.png | 0.28KB | 0.28KB | 0.00% |