63% aspose-cloud-excel-to-form-builder

Code Review | Aspose.Cells Forms

WordPress plugin Aspose.Cells Forms scored63%from 54 tests.

About plugin

  • Plugin page: aspose-cloud-exce...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 6.3.1
  • First release: Feb 16, 2015
  • Latest release: Jul 23, 2021
  • Number of updates: 21
  • Update frequency: every 112.1 days
  • Top authors: asposemarketplace (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

10+ active /2,537 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.23MB] [CPU: ▼3.72ms] Passed 4 tests

An overview of server-side resources used by Aspose.Cells Forms
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2442.05 ▲4.79
Dashboard /wp-admin3.57 ▲0.2746.65 ▼1.05
Posts /wp-admin/edit.php3.62 ▲0.2649.05 ▲1.24
Add New Post /wp-admin/post-new.php6.09 ▲0.2084.51 ▼16.04
Media Library /wp-admin/upload.php3.43 ▲0.2040.75 ▲0.97
Aspose.Cells Forms /wp-admin/options-general.php?page=apc-excel-to-form-settings3.4031.73

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 522 new files
Database: 1 new table, 7 new options
New tables
wp_apc_shortcodes
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
aspose-cloud-activation-secret
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Aspose.Cells Forms
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7014.78 ▲0.391.71 ▲0.0344.26 ▲4.63
Dashboard /wp-admin2,222 ▲335.01 ▲0.06108.02 ▲1.1741.93 ▼1.46
Posts /wp-admin/edit.php2,113 ▲242.08 ▲0.0840.44 ▲1.4934.78 ▼2.05
Add New Post /wp-admin/post-new.php1,543 ▲2423.10 ▼0.11658.68 ▼30.0555.68 ▼6.08
Media Library /wp-admin/upload.php1,415 ▲274.27 ▲0.05101.74 ▼11.4346.69 ▼1.62
Aspose.Cells Forms /wp-admin/options-general.php?page=apc-excel-to-form-settings8822.0724.3632.85

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_apc_shortcodes
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • aspose-cloud-activation-secret
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 201× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Psr7\\Request' not found in wp-content/plugins/aspose-cloud-excel-to-form-builder/vendor/guzzlehttp/psr7/src/ServerRequest.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'Lcobucci\\JWT\\Signer\\Ecdsa' not found in wp-content/plugins/aspose-cloud-excel-to-form-builder/vendor/lcobucci/jwt/src/Signer/Ecdsa/Sha512.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Aspose\\Cells\\Cloud\\Model\\CellsCloudResponse' not found in wp-content/plugins/aspose-cloud-excel-to-form-builder/vendor/aspose/cells-sdk-php/lib/Model/OleObjectResponse.php:53
    • > PHP Fatal error
      Uncaught Error: Class 'Lcobucci\\JWT\\Signer\\OpenSSL' not found in wp-content/plugins/aspose-cloud-excel-to-form-builder/vendor/lcobucci/jwt/src/Signer/Rsa.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Aspose\\Cells\\Cloud\\Model\\ImportOption' not found in wp-content/plugins/aspose-cloud-excel-to-form-builder/vendor/aspose/cells-sdk-php/lib/Model/ImportStringArrayOption.php:53
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/aspose-cloud-excel-to-form-builder/vendor/lcobucci/jwt/test/unit/Signer/Hmac/Sha256Test.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/aspose-cloud-excel-to-form-builder/vendor/lcobucci/jwt/test/unit/Signer/Rsa/Sha384Test.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Aspose\\Cells\\Cloud\\Model\\CellsCloudResponse' not found in wp-content/plugins/aspose-cloud-excel-to-form-builder/vendor/aspose/cells-sdk-php/lib/Model/MergedCellResponse.php:53
    • > PHP Fatal error
      Uncaught Error: Class 'Aspose\\Cells\\Cloud\\Model\\CellsCloudResponse' not found in wp-content/plugins/aspose-cloud-excel-to-form-builder/vendor/aspose/cells-sdk-php/lib/Model/ValidationResponse.php:53
    • > PHP Fatal error
      Uncaught Error: Class 'Aspose\\Cells\\Cloud\\Model\\SaveOptions' not found in wp-content/plugins/aspose-cloud-excel-to-form-builder/vendor/aspose/cells-sdk-php/lib/Model/OdsSaveOptions.php:53

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Attributes that require attention: You can look at the official readme.txt

aspose-cloud-excel-to-form-builder/aspose-cloud-excel-to-form-builder.php Passed 13 tests

The entry point to "Aspose.Cells Forms" version 2.0 is a PHP file that has certain tags in its header comment area
130 characters long description:
Aspose.Cells Forms Plugin for WordPress allows site administrators/ownwers to create interactive forms using Microsoft Excel files

Code Analysis 0% 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
These items require your attention
  • Do not include executable or dangerous files in your plugin
    • .bat - Batch File in Windows
      • wp-content/plugins/aspose-cloud-excel-to-form-builder/vendor/aspose/cells-sdk-php/composer.bat
133,883 lines of code in 496 files:
LanguageFilesBlank linesComment linesLines of code
PHP45657,678146,373128,678
Markdown151,18503,598
JSON11001,174
XML520293
YAML33078
Bourne Shell113831
Dockerfile18010
make1409
CSS1196
DOS Batch1004
JavaScript1202

PHP code 0% from 2 tests

An overview of cyclomatic complexity and code structure
Please tend to the following items
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 8,642)
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 179)
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity31.46
▷ Minimum class complexity1.00
▷ Maximum class complexity8,642.00
Average method complexity2.53
▷ Minimum method complexity1.00
▷ Maximum method complexity179.00
Code structure
Namespaces24
Interfaces20
Traits3
Classes395
▷ Abstract classes51.27%
▷ Concrete classes39098.73%
▷ Final classes287.18%
Methods8,538
▷ Static methods1,40616.47%
▷ Public methods8,10894.96%
▷ Protected methods2733.20%
▷ Private methods1571.84%
Functions949
▷ Named functions869.06%
▷ Anonymous functions86390.94%
Constants420
▷ Global constants4210.00%
▷ Class constants37890.00%
▷ Public constants378100.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
PNG images were not found in this plugin