74% outdooractive-embed

Code Review | Outdooractive Embed

WordPress plugin Outdooractive Embed scored74%from 54 tests.

About plugin

  • Plugin page: outdooractive-embed
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Sep 8, 2016
  • Latest release: Sep 18, 2023
  • Number of updates: 36
  • Update frequency: every 71.3 days
  • Top authors: outdooractive (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

500+ active /5,639 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1337.57 ▼3.10
Dashboard /wp-admin3.14 ▼0.1623.44 ▼32.49
Posts /wp-admin/edit.php3.15 ▼0.2126.83 ▼23.21
Add New Post /wp-admin/post-new.php3.15 ▼2.7432.31 ▼61.32
Media Library /wp-admin/upload.php3.15 ▼0.0821.76 ▼13.06
Outdooractive Embed /wp-admin/options-general.php?page=oaembed-admin3.1525.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲7513.24 ▼1.031.57 ▼0.3839.80 ▼4.05
Dashboard /wp-admin2,217 ▲295.85 ▼0.01107.31 ▼10.4239.71 ▼3.19
Posts /wp-admin/edit.php2,108 ▲162.06 ▲0.0239.92 ▼2.4236.41 ▲2.51
Add New Post /wp-admin/post-new.php6,198 ▲4,65619.37 ▲1.08873.41 ▲244.8252.51 ▼2.80
Media Library /wp-admin/upload.php1,399 ▲144.27 ▲0.04106.77 ▲3.0545.05 ▲2.63
Outdooractive Embed /wp-admin/options-general.php?page=oaembed-admin8452.0224.6231.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:
LanguageFilesBlank linesComment linesLines of code
PHP814941632
JavaScript3190248
PO File173381157
CSS26057
JSON1001

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 code0.29
Average class complexity14.00
▷ Minimum class complexity12.00
▷ Maximum class complexity16.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
screenshot-4.png833.24KB243.84KB▼ 70.74%
screenshot-5.png196.29KB68.37KB▼ 65.17%
screenshot-1.PNG682.58KB191.20KB▼ 71.99%
OAButton/O20.png0.79KB0.77KB▼ 2.24%
screenshot-2.PNG840.93KB243.18KB▼ 71.08%