84% docswell-embed

Code Review | Docswell Embed

WordPress plugin Docswell Embed scored 84% from 54 tests.

About plugin

  • Plugin page: docswell-embed
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.9.2
  • WordPress version: 6.3.1
  • First release: Apr 14, 2022
  • Latest release: Apr 14, 2022
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: uplucid (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 753 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.66ms] Passed 4 tests

This is a short check of server-side resources used by Docswell Embed
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0034.77 ▼5.59
Dashboard /wp-admin3.31 ▲0.0141.40 ▼9.38
Posts /wp-admin/edit.php3.36 ▲0.0045.81 ▼0.46
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.63 ▼11.21
Media Library /wp-admin/upload.php3.23 ▲0.0041.37 ▲6.39

Server storage [IO: ▲0.00MB] [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: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Docswell Embed: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.20 ▼1.171.52 ▼0.1942.41 ▼0.98
Dashboard /wp-admin2,206 ▲324.85 ▼1.03110.77 ▼0.6143.86 ▼0.13
Posts /wp-admin/edit.php2,086 ▼62.03 ▲0.0238.83 ▼0.7734.07 ▲3.09
Add New Post /wp-admin/post-new.php1,545 ▲818.38 ▼4.97604.07 ▼11.2559.19 ▲10.64
Media Library /wp-admin/upload.php1,391 ▼04.25 ▲0.0096.35 ▲1.1542.24 ▲0.98

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_oembed_add_provider() in wp-content/plugins/docswell-embed/docswell-embed.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: oembed, docswell

docswell-embed/docswell-embed.php Passed 13 tests

The entry point to "Docswell Embed" version 1.0.0 is a PHP file that has certain tags in its header comment area
60 characters long description:
「埋め込み」ブロックにドクセルのURLを許可

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin2 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1092

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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 files were detected