83% cluevo-lms-extension-gdocs-modules

Code Review | CLUEVO LMS Extension: Google Documents as modules

WordPress plugin CLUEVO LMS Extension: Google Documents as modules scored83%from 54 tests.

About plugin

  • Plugin page: cluevo-lms-extens...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 1.11.0-6.3
  • WordPress version: 6.3.1
  • First release: Mar 19, 2020
  • Latest release: Aug 12, 2023
  • Number of updates: 15
  • Update frequency: every 90.5 days
  • Top authors: cluevo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,063 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.00MB] [CPU: ▼5.23ms] Passed 4 tests

This is a short check of server-side resources used by CLUEVO LMS Extension: Google Documents as modules
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.33 ▼2.58
Dashboard /wp-admin3.31 ▲0.0047.87 ▼7.56
Posts /wp-admin/edit.php3.36 ▲0.0047.48 ▼4.17
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.89 ▼6.60
Media Library /wp-admin/upload.php3.23 ▲0.0035.65 ▼0.41

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for CLUEVO LMS Extension: Google Documents as modules
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.70 ▲0.322.08 ▲0.5251.31 ▲10.66
Dashboard /wp-admin2,195 ▲215.60 ▲0.0387.88 ▼11.7442.40 ▼0.09
Posts /wp-admin/edit.php2,100 ▼32.00 ▲0.0338.77 ▼3.8433.87 ▼2.53
Add New Post /wp-admin/post-new.php1,526 ▼022.66 ▼1.06639.98 ▼28.6954.75 ▼2.27
Media Library /wp-admin/upload.php1,397 ▼34.09 ▼0.10104.45 ▲0.2243.89 ▼3.37

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cluevo-lms-extension-gdocs-modules/cluevo-lms-extension-gdocs-modules.php:25

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Tags: There are too many tags (17 tag instead of maximum 10)
You can look at the official readme.txt

cluevo-lms-extension-gdocs-modules/cluevo-lms-extension-gdocs-modules.php 85% from 13 tests

The main PHP script in "CLUEVO LMS Extension: Google Documents as modules" version 1.1.0 is automatically included on every request by WordPress
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Requires at least: Required version must match the one declared in readme.txt ("4.6" instead of "1.11.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected626 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP13613363
JavaScript271150
PO File24510695
CSS14018

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity51.00
▷ Minimum class complexity51.00
▷ Maximum class complexity51.00
Average method complexity3.94
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods17100.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.12MB with 0.08MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/banner-1544x500.png81.20KB27.45KB▼ 66.20%
images/banner-772x250.png33.98KB11.52KB▼ 66.08%
images/icon-module-ui-gdocs_256x256.png11.29KB5.03KB▼ 55.44%