84% aweos-youtube-iframe-load-per-click

Code Review | AWEOS YouTube load per click

WordPress plugin AWEOS YouTube load per click scored84%from 54 tests.

About plugin

  • Plugin page: aweos-youtube-ifr...
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.1
  • WordPress version: 6.3.1
  • First release: Aug 30, 2018
  • Latest release: Oct 12, 2023
  • Number of updates: 10
  • Update frequency: every 187.1 days
  • Top authors: aweos (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /1,472 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼4.93ms] Passed 4 tests

Server-side resources used by AWEOS YouTube load per click
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0936.41 ▼1.11
Dashboard /wp-admin3.44 ▲0.1347.45 ▼0.13
Posts /wp-admin/edit.php3.54 ▲0.1854.24 ▲9.69
Add New Post /wp-admin/post-new.php6.13 ▲0.2473.33 ▼18.96
Media Library /wp-admin/upload.php3.38 ▲0.1434.68 ▲0.49

Server storage [IO: ▲1.98MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

AWEOS YouTube load per click: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲13013.38 ▼0.788.08 ▲6.4836.87 ▼4.28
Dashboard /wp-admin2,214 ▲375.63 ▲0.0594.78 ▲0.0341.76 ▲1.88
Posts /wp-admin/edit.php2,113 ▲162.03 ▲0.0740.01 ▲3.2135.51 ▲2.06
Add New Post /wp-admin/post-new.php1,539 ▲1323.15 ▼0.01676.15 ▲42.5060.96 ▲4.31
Media Library /wp-admin/upload.php1,416 ▲134.13 ▼0.08109.33 ▲15.8146.81 ▲4.47

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Interface 'Zend\\Dom\\Exception\\ExceptionInterface' not found in wp-content/plugins/aweos-youtube-iframe-load-per-click/vendor/zendframework/zend-dom/src/Exception/BadMethodCallException.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'Zend\\Dom\\Exception\\ExceptionInterface' not found in wp-content/plugins/aweos-youtube-iframe-load-per-click/vendor/zendframework/zend-dom/src/Exception/RuntimeException.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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
These attributes need your attention:
  • Screenshots: Screenshot #1 (English) image not found
You can look at the official readme.txt

aweos-youtube-iframe-load-per-click/aweos-youtube-iframe-load-per-click.php 92% from 13 tests

Analyzing the main PHP file in "AWEOS YouTube load per click" version 1.0.3
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin3,065 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
SVG1011,697
PHP2133,79954,4721,119
JSON300108
Markdown345085
JavaScript141030
CSS151026

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity9.54
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces1
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods87
▷ Static methods78.05%
▷ Public methods7990.80%
▷ Protected methods78.05%
▷ Private methods11.15%
Functions14
▷ Named functions750.00%
▷ Anonymous functions750.00%
Constants8
▷ Global constants00.00%
▷ Class constants8100.00%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin