84% googledrive-folder-list

Code Review | GoogleDrive folder list

WordPress plugin GoogleDrive folder list scored84%from 54 tests.

About plugin

  • Plugin page: googledrive-folde...
  • Plugin version: 2.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Sep 3, 2013
  • Latest release: Jun 12, 2014
  • Number of updates: 14
  • Update frequency: every 20.2 days
  • Top authors: sh4d0w28 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

50+ active /2,875 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼1.12ms] Passed 4 tests

Analyzing server-side resources used by GoogleDrive folder list
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.85 ▼5.37
Dashboard /wp-admin3.34 ▲0.0445.53 ▼1.90
Posts /wp-admin/edit.php3.39 ▲0.0452.00 ▲2.01
Add New Post /wp-admin/post-new.php5.92 ▲0.0495.83 ▲0.79
Media Library /wp-admin/upload.php3.26 ▲0.0439.82 ▲2.74
Google drive folder list options /wp-admin/plugins.php?page=gdfl_main3.2333.98

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for GoogleDrive folder list
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.53 ▼0.851.89 ▼0.1744.31 ▼1.87
Dashboard /wp-admin2,210 ▲195.86 ▲0.97106.80 ▲3.1839.34 ▼5.46
Posts /wp-admin/edit.php2,093 ▲12.05 ▲0.0541.02 ▲4.2036.93 ▲5.14
Add New Post /wp-admin/post-new.php1,541 ▲1223.36 ▲0.09675.28 ▼5.0157.76 ▲4.21
Media Library /wp-admin/upload.php1,386 ▲44.20 ▼0.0498.44 ▼0.4343.62 ▲0.41
Google drive folder list options /wp-admin/plugins.php?page=gdfl_main8892.0422.8929.72

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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 fix the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/googledrive-folder-list/gdfl_admin.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/googledrive-folder-list/gdfl_admin.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: share, google docs, folders, googledrive, docs...

googledrive-folder-list/gdocs.php 92% from 13 tests

The main file in "GoogleDrive folder list" v. 2.2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("googledrive-folder-list.php" instead of "gdocs.php")

Code Analysis Passed 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 plugin219 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP32417219

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.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
There are no PNG files in this plugin