10% aspose-doc-exporter

Code Review | Aspose.Words - Import and Export word documents

WordPress plugin Aspose.Words - Import and Export word documents scored10%from 54 tests.

About plugin

  • Plugin page: aspose-doc-exporter
  • Plugin version: 6.3.1
  • PHP compatiblity: 7.2.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 5-5.9
  • WordPress version: 6.3.1
  • First release: Jul 2, 2014
  • Latest release: Feb 15, 2022
  • Number of updates: 140
  • Update frequency: every 19.9 days
  • Top authors: asposemarketplace (100%)

Code review

54 tests

User reviews

52 reviews

Install metrics

4,000+ active /97,897 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Warning in wp-content/plugins/aspose-doc-exporter/plugin.php+17
    include_once(wp-content/plugins/aspose-doc-exporter/local.php): failed to open stream: No such file or directory

Server metrics [RAM: ▼1.95MB] [CPU: ▼55.30ms] Passed 4 tests

An overview of server-side resources used by Aspose.Words - Import and Export word documents
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.04 ▼1.425.04 ▼36.15
Dashboard /wp-admin2.06 ▼1.284.80 ▼53.40
Posts /wp-admin/edit.php2.06 ▼1.295.02 ▼39.09
Add New Post /wp-admin/post-new.php2.06 ▼3.826.98 ▼92.55
Media Library /wp-admin/upload.php2.06 ▼1.166.03 ▼29.09

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 1,448 new files
Database: no new tables, 18 new options
New WordPress options
aspose_doc_exporter_metadata
aspose_doc_exporter_excerpt
db_upgraded
aspose_doc_exporter_content
aspose-cloud-activation-secret
aspose_doc_exporter_post_author
aspose_doc_exporter_do_shortcode
aspose_doc_exporter_post_date
aspose_doc_exporter_post_comments
can_compress_scripts
...

Browser metrics Passed 4 tests

An overview of browser requirements for Aspose.Words - Import and Export word documents
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲8914.63 ▲0.352.04 ▲0.3646.12 ▲7.29
Dashboard /wp-admin2,234 ▲535.62 ▼0.0491.06 ▼17.6945.30 ▲0.99
Posts /wp-admin/edit.php2,119 ▲192.10 ▲0.0936.33 ▼2.5537.49 ▲6.15
Add New Post /wp-admin/post-new.php1,562 ▲3423.56 ▲0.57605.98 ▼0.7646.54 ▲4.17
Media Library /wp-admin/upload.php1,430 ▲304.24 ▲0.0695.89 ▼17.6447.65 ▲1.63

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
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/aspose-doc-exporter/plugin.php+17
    include_once(wp-content/plugins/aspose-doc-exporter/local.php): failed to open stream: No such file or directory
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 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
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/aspose-doc-exporter/templates/import-metabox.php
  • 860× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\\Expression\\AbstractExpression' not found in wp-content/plugins/aspose-doc-exporter/vendor/twig/twig/src/Node/Expression/InlinePrint.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib3\\Crypt\\Common\\StreamCipher' not found in wp-content/plugins/aspose-doc-exporter/vendor/phpseclib/phpseclib/phpseclib/Crypt/RC4.php:56
    • > PHP Fatal error
      Uncaught Error: Class 'Aspose\\Words\\Model\\Requests\\BaseApiRequest' not found in wp-content/plugins/aspose-doc-exporter/vendor/aspose-cloud/aspose-words-cloud/src/Aspose/Words/Model/Requests/SaveAsRangeRequest.php:45
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib3\\Math\\BigInteger\\Engines\\PHP\\Reductions\\EvalBarrett' not found in wp-content/plugins/aspose-doc-exporter/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/PHP/DefaultEngine.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'Aspose\\Words\\Model\\Requests\\BaseApiRequest' not found in wp-content/plugins/aspose-doc-exporter/vendor/aspose-cloud/aspose-words-cloud/src/Aspose/Words/Model/Requests/GetDocumentDrawingObjectImageDataOnlineRequest.php:45
    • > PHP Fatal error
      Uncaught Error: Class 'Aspose\\Words\\Model\\Requests\\BaseApiRequest' not found in wp-content/plugins/aspose-doc-exporter/vendor/aspose-cloud/aspose-words-cloud/src/Aspose/Words/Model/Requests/GetBordersRequest.php:45
    • > PHP Fatal error
      Uncaught Error: Class 'Aspose\\Words\\Model\\Requests\\BaseApiRequest' not found in wp-content/plugins/aspose-doc-exporter/vendor/aspose-cloud/aspose-words-cloud/src/Aspose/Words/Model/Requests/UpdateFormFieldOnlineRequest.php:45
    • > PHP Fatal error
      Uncaught Error: Class 'Aspose\\Words\\Model\\FixedPageSaveOptionsData' not found in wp-content/plugins/aspose-doc-exporter/vendor/aspose-cloud/aspose-words-cloud/src/Aspose/Words/Model/SvgSaveOptionsData.php:37
    • > PHP Fatal error
      Uncaught Error: Class 'Aspose\\Words\\Model\\Requests\\BaseApiRequest' not found in wp-content/plugins/aspose-doc-exporter/vendor/aspose-cloud/aspose-words-cloud/src/Aspose/Words/Model/Requests/UpdateCommentRequest.php:45
    • > PHP Fatal error
      Uncaught Error: Class 'Aspose\\Words\\Model\\Requests\\BaseApiRequest' not found in wp-content/plugins/aspose-doc-exporter/vendor/aspose-cloud/aspose-words-cloud/src/Aspose/Words/Model/Requests/GetTableRowRequest.php:45

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 19 tag instead of maximum 10
  • Requires at least: The plugin version is formatted incorrectly
The official readme.txt might help

aspose-doc-exporter/plugin.php 85% from 13 tests

The main PHP script in "Aspose.Words - Import and Export word documents" version 6.3.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("aspose-doc-exporter.php" instead of "plugin.php")
  • Requires at least: Required version number should use periods and dots only (ex. "7.0" instead of "5")

Code Analysis 95% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin222,392 lines of code in 1,417 files:
LanguageFilesBlank linesComment linesLines of code
PHP1,35438,382141,392215,295
Markdown231,42604,143
JSON25102,549
Twig23966146
XML44199
YAML44174
JavaScript114046
make212027
reStructuredText18510
Bourne Shell1203

PHP code 0% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Please fix the following
  • Class cyclomatic complexity should be reduced to less than 1000 (currently 4,877)
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 105)
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity20.66
▷ Minimum class complexity1.00
▷ Maximum class complexity4,877.00
Average method complexity2.56
▷ Minimum method complexity1.00
▷ Maximum method complexity105.00
Code structure
Namespaces92
Interfaces49
Traits7
Classes1,264
▷ Abstract classes21817.25%
▷ Concrete classes1,04682.75%
▷ Final classes14313.67%
Methods16,442
▷ Static methods1,99812.15%
▷ Public methods15,10791.88%
▷ Protected methods2651.61%
▷ Private methods1,0706.51%
Functions1,262
▷ Named functions15512.28%
▷ Anonymous functions1,10787.72%
Constants2,870
▷ Global constants90.31%
▷ Class constants2,86199.69%
▷ Public constants2,83999.23%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin