84% easy-document-embedder

Code Review | Easy Document Embedder – Embed Word, excel, Powerpoint, Pdf file and more..

WordPress plugin Easy Document Embedder – Embed Word, excel, Powerpoint, Pdf file and more.. scored 84% from 54 tests.

About plugin

  • Plugin page: easy-document-emb...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.6
  • WordPress version: 6.3.1
  • First release: Jun 23, 2020
  • Latest release: Dec 12, 2020
  • Number of updates: 6
  • Update frequency: every 28.7 days
  • Top authors: techmix (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

800+ active / 6,324 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼2.45ms] Passed 4 tests

An overview of server-side resources used by Easy Document Embedder – Embed Word, excel, Powerpoint, Pdf file and more..
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.60 ▼5.17
Dashboard /wp-admin3.37 ▲0.0749.19 ▼3.30
Posts /wp-admin/edit.php3.49 ▲0.1351.30 ▼2.25
Add New Post /wp-admin/post-new.php6.01 ▲0.1294.99 ▲3.96
Media Library /wp-admin/upload.php3.28 ▲0.0536.61 ▲0.93
Dashboard /wp-admin/edit.php?post_type=ede_embedder3.3541.45
About Us /wp-admin/edit.php?post_type=ede_embedder&page=easy_embedder_about3.2936.68
Add New /wp-admin/post-new.php?post_type=ede_embedder3.3346.23

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Easy Document Embedder – Embed Word, excel, Powerpoint, Pdf file and more..
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,000 ▲26514.63 ▲0.052.20 ▲0.3840.43 ▼12.23
Dashboard /wp-admin2,381 ▲1936.43 ▲0.56127.07 ▲9.7539.27 ▼4.38
Posts /wp-admin/edit.php2,300 ▲2113.36 ▲1.3355.08 ▲18.3335.17 ▲0.12
Add New Post /wp-admin/post-new.php6,615 ▲5,09629.21 ▲5.86814.50 ▲167.6835.53 ▼25.82
Media Library /wp-admin/upload.php1,427 ▲454.15 ▼0.0581.37 ▼15.9741.22 ▼4.67
Dashboard /wp-admin/edit.php?post_type=ede_embedder1,2773.3752.1925.41
About Us /wp-admin/edit.php?post_type=ede_embedder&page=easy_embedder_about1,0293.0539.6624.45
Add New /wp-admin/post-new.php?post_type=ede_embedder1,8963.6562.3435.58

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/easy-document-embedder/template/dashboard.php:2

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 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: document, google docs, powerpoint, excel, embed pdf

easy-document-embedder/easy-document-embedder.php 85% from 13 tests

The entry point to "Easy Document Embedder – Embed Word, excel, Powerpoint, Pdf file and more.." version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("3.0.1" instead of "3.0.0")
  • Plugin Name: It is recommended to keep the plugin name shorter than 70 characters (currently 77 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected860 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP1714287686
JavaScript217795
CSS16079
HTML1380

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity6.50
▷ Minimum class complexity1.00
▷ Maximum class complexity50.00
Average method complexity3.41
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods32
▷ Static methods515.62%
▷ Public methods32100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin