79% outdoor

Code Review | Outdoor

WordPress plugin Outdoor scored 79% from 54 tests.

About plugin

  • Plugin page: outdoor
  • Plugin version: 1.3.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Mar 23, 2023
  • Latest release: Apr 7, 2023
  • Number of updates: 6
  • Update frequency: every 2.5 days
  • Top authors: maycorolbuche1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 209 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1043.83 ▼2.83
Dashboard /wp-admin3.44 ▲0.1457.81 ▲5.53
Posts /wp-admin/edit.php3.56 ▲0.2160.24 ▲8.81
Add New Post /wp-admin/post-new.php6.02 ▲0.14109.36 ▲9.02
Media Library /wp-admin/upload.php3.35 ▲0.1241.89 ▼0.09
Visualizar /wp-admin/admin.php?page=outdoor_preview3.3663.15
Configurações /wp-admin/admin.php?page=outdoor_settings3.3444.54
Outdoor /wp-admin/admin.php?page=outdoor3.3645.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,968 ▲16814.80 ▲1.551.71 ▼0.1243.58 ▼2.30
Dashboard /wp-admin2,374 ▲1716.42 ▲0.54134.75 ▲37.1639.27 ▲2.62
Posts /wp-admin/edit.php2,283 ▲1913.32 ▲1.2655.07 ▲19.5334.83 ▲3.13
Add New Post /wp-admin/post-new.php1,581 ▲3919.67 ▲1.39599.74 ▼28.5232.49 ▼25.49
Media Library /wp-admin/upload.php1,419 ▲344.12 ▼0.1080.68 ▼22.4841.26 ▼1.85
Visualizar /wp-admin/admin.php?page=outdoor_preview1,0073.1746.8127.56
Configurações /wp-admin/admin.php?page=outdoor_settings1,0343.0841.2433.66
Outdoor /wp-admin/admin.php?page=outdoor1,3803.1738.8229.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP9176411,004
JavaScript112056
CSS12314

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 code0.37
Average class complexity55.00
▷ Minimum class complexity55.00
▷ Maximum class complexity55.00
Average method complexity5.91
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods872.73%
▷ Protected methods218.18%
▷ Private methods19.09%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/img/video.png0.28KB0.28KB0.00%