88% groupdocs-comparison

Code Review | GroupDocs.Comparison for Cloud

WordPress plugin GroupDocs.Comparison for Cloud scored 88% from 54 tests.

About plugin

  • Plugin page: groupdocs-comparison
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.1
  • WordPress version: 5.9.2
  • First release: Sep 12, 2013
  • Latest release: Jan 16, 2015
  • Number of updates: 70
  • Update frequency: every 7.0 days
  • Top authors: groupdocs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,118 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.02MB] [CPU: ▼292.81ms] Passed 4 tests

This is a short check of server-side resources used by GroupDocs.Comparison for Cloud
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0151.83 ▲1.62
Dashboard /wp-admin3.41 ▲0.0135.70 ▲2.47
Posts /wp-admin/edit.php3.65 ▲0.0142.59 ▲5.72
Add New Post /wp-admin/post-new.php6.89 ▼0.0895.94 ▼1,167.67
Media Library /wp-admin/upload.php3.30 ▼0.0023.44 ▼7.65

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for GroupDocs.Comparison for Cloud
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲915.85 ▲0.266.06 ▼0.452.29 ▼0.63
Dashboard /wp-admin2,888 ▲276.14 ▼0.05132.37 ▼0.95163.76 ▲2.58
Posts /wp-admin/edit.php2,694 ▼03.24 ▲0.0163.05 ▼5.23143.51 ▲0.15
Add New Post /wp-admin/post-new.php1,658 ▼11515.94 ▼5.29411.45 ▼33.59159.10 ▲0.36
Media Library /wp-admin/upload.php1,698 ▼05.51 ▲0.03151.63 ▲10.69202.05 ▲11.64

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

Smoke tests 50% 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)
Good news, no errors were detected

SRP 0% 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 take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/groupdocs-comparison/grpdocs-dialog.php
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/groupdocs-comparison/grpdocs-functions.php on line 3
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/groupdocs-comparison/grpdocs-functions.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/groupdocs-comparison/grpdocscomparison.php:36

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: groupdocs comparison, compare two documents, document comparison tool, groupdocs, compare word documents

groupdocs-comparison/grpdocscomparison.php 85% from 13 tests

"GroupDocs.Comparison for Cloud" version 1.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("groupdocs-comparison.php" instead of "grpdocscomparison.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 191 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected564 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript4101187383
PHP33218116
CSS13065

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/grpdocs-comparison-button.png1.41KB0.55KB▼ 61.08%