74% alibi-tech-series-embedder

Code Review | Alibi Tech Series Embedder

WordPress plugin Alibi Tech Series Embedder scored74%from 54 tests.

About plugin

  • Plugin page: alibi-tech-series...
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8
  • WordPress version: 6.3.1
  • First release: Nov 16, 2021
  • Latest release: Nov 16, 2021
  • Number of updates: 3
  • Update frequency: every 8.0 days
  • Top authors: alibitech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /286 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.85ms] Passed 4 tests

An overview of server-side resources used by Alibi Tech Series Embedder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0138.65 ▼7.97
Dashboard /wp-admin3.36 ▲0.0146.35 ▼10.80
Posts /wp-admin/edit.php3.41 ▲0.0148.12 ▼1.39
Add New Post /wp-admin/post-new.php5.94 ▲0.0193.63 ▼3.24
Media Library /wp-admin/upload.php3.28 ▲0.0135.81 ▲1.85

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4,680 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Alibi Tech Series Embedder
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.101.92 ▲0.2537.42 ▼8.77
Dashboard /wp-admin2,198 ▲215.60 ▲0.0394.80 ▲2.0941.22 ▼0.63
Posts /wp-admin/edit.php2,103 ▲31.96 ▼0.0639.74 ▲3.8036.28 ▲1.23
Add New Post /wp-admin/post-new.php1,526 ▼023.35 ▲0.22646.45 ▼60.7458.91 ▲11.46
Media Library /wp-admin/upload.php1,400 ▼34.22 ▲0.02101.34 ▲1.5846.12 ▼2.37

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/alibi-tech-series-embedder/alibi-tech-series-embed.php:63

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Donate link: Invalid URI ("#")
You can take inspiration from this readme.txt

alibi-tech-series-embedder/alibi-tech-series-embed.php 92% from 13 tests

The main PHP file in "Alibi Tech Series Embedder" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("alibi-tech-series-embedder.php" instead of "alibi-tech-series-embed.php")

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Please make sure to remedy the following
  • Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
    • .cmd - Command Script in Windows
      • wp-content/plugins/alibi-tech-series-embedder/node_modules/.bin/acorn.cmd
      • wp-content/plugins/alibi-tech-series-embedder/node_modules/.bin/browserslist.cmd
      • wp-content/plugins/alibi-tech-series-embedder/node_modules/.bin/envinfo.cmd
      • wp-content/plugins/alibi-tech-series-embedder/node_modules/.bin/import-local-fixture.cmd
      • wp-content/plugins/alibi-tech-series-embedder/node_modules/.bin/jsesc.cmd
      • wp-content/plugins/alibi-tech-series-embedder/node_modules/regjsparser/node_modules/.bin/jsesc.cmd
      • wp-content/plugins/alibi-tech-series-embedder/node_modules/.bin/json5.cmd
      • wp-content/plugins/alibi-tech-series-embedder/node_modules/.bin/node-which.cmd
      • wp-content/plugins/alibi-tech-series-embedder/node_modules/.bin/parser.cmd
      • wp-content/plugins/alibi-tech-series-embedder/node_modules/.bin/regjsparser.cmd
      • wp-content/plugins/alibi-tech-series-embedder/node_modules/core-js-compat/node_modules/.bin/semver.cmd
      • wp-content/plugins/alibi-tech-series-embedder/node_modules/.bin/semver.cmd
      • wp-content/plugins/alibi-tech-series-embedder/node_modules/.bin/terser.cmd
      • wp-content/plugins/alibi-tech-series-embedder/node_modules/.bin/webpack-cli.cmd
      • wp-content/plugins/alibi-tech-series-embedder/node_modules/.bin/webpack.cmd
    • .ps1 - Windows PowerShell Cmdlet in Windows
      • wp-content/plugins/alibi-tech-series-embedder/node_modules/.bin/acorn.ps1
      • wp-content/plugins/alibi-tech-series-embedder/node_modules/.bin/browserslist.ps1
      • wp-content/plugins/alibi-tech-series-embedder/node_modules/.bin/envinfo.ps1
      • wp-content/plugins/alibi-tech-series-embedder/node_modules/.bin/import-local-fixture.ps1
      • wp-content/plugins/alibi-tech-series-embedder/node_modules/regjsparser/node_modules/.bin/jsesc.ps1
      • wp-content/plugins/alibi-tech-series-embedder/node_modules/.bin/jsesc.ps1
      • wp-content/plugins/alibi-tech-series-embedder/node_modules/.bin/json5.ps1
      • wp-content/plugins/alibi-tech-series-embedder/node_modules/.bin/node-which.ps1
      • wp-content/plugins/alibi-tech-series-embedder/node_modules/.bin/parser.ps1
      • wp-content/plugins/alibi-tech-series-embedder/node_modules/.bin/regjsparser.ps1
      • wp-content/plugins/alibi-tech-series-embedder/node_modules/core-js-compat/node_modules/.bin/semver.ps1
      • wp-content/plugins/alibi-tech-series-embedder/node_modules/.bin/semver.ps1
      • wp-content/plugins/alibi-tech-series-embedder/node_modules/.bin/terser.ps1
      • wp-content/plugins/alibi-tech-series-embedder/node_modules/.bin/webpack-cli.ps1
      • wp-content/plugins/alibi-tech-series-embedder/node_modules/.bin/webpack.ps1
433,092 lines of code in 4,112 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3,17244,54649,568314,825
JSON353125061,047
TypeScript2033,01436,88029,044
Markdown30610,708026,005
YAML2723161,006
Windows Module Definition5830451
DOS Batch13260195
PowerShell131339182
Bourne Shell14300177
HTML16049
Bourne Again Shell211143
PHP1141241
CSS14027
CoffeeScript1100

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin