10% save-to-google-drive-by-forum-gt

Code Review | WordPress Save To Google Drive

WordPress plugin WordPress Save To Google Drive scored 10% from 54 tests.

About plugin

  • Plugin page: save-to-google-dr...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-4.0
  • WordPress version: 6.3.1
  • First release: May 12, 2013
  • Latest release: Sep 4, 2014
  • Number of updates: 6
  • Update frequency: every 80.0 days
  • Top authors: andreapernici (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,045 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
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/save-to-google-drive-by-forum-gt/save-to-google-drive.php+41
    Methods with the same name as their class will not be constructors in a future version of PHP; AndreaSaveToDrive has a deprecated constructor

Server metrics [RAM: ▼1.22MB] [CPU: ▼46.67ms] Passed 4 tests

Analyzing server-side resources used by WordPress Save To Google Drive
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.75 ▼0.7116.11 ▼37.52
Dashboard /wp-admin2.79 ▼0.5119.05 ▼38.27
Posts /wp-admin/edit.php2.79 ▼0.5618.77 ▼37.61
Add New Post /wp-admin/post-new.php2.79 ▼3.0920.46 ▼73.27
Media Library /wp-admin/upload.php2.79 ▼0.4419.10 ▼20.44
Save To Drive /wp-admin/options-general.php?page=save-to-drive-options2.7918.30

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WordPress Save To Google Drive
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲4214.05 ▼0.7029.50 ▲27.3941.66 ▼1.41
Dashboard /wp-admin2,210 ▲45.85 ▲0.98103.94 ▼9.0438.46 ▼6.96
Posts /wp-admin/edit.php2,093 ▲11.97 ▼0.0740.69 ▲5.3637.22 ▲1.69
Add New Post /wp-admin/post-new.php1,548 ▲1518.48 ▼4.78602.49 ▼93.7754.45 ▼10.48
Media Library /wp-admin/upload.php1,392 ▲44.23 ▲0.09102.80 ▼11.9043.39 ▼6.52
Save To Drive /wp-admin/options-general.php?page=save-to-drive-options8052.0228.8632.37

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-includes/class-wp-hook.php+308
    Non-static method AndreaSaveToDrive::Enable() should not be called statically
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=save-to-drive-options
    • > Deprecated in wp-includes/class-wp-hook.php+308
    Non-static method AndreaSaveToDrive::Enable() should not be called statically
    • > GET request to /wp-admin/options-general.php?page=save-to-drive-options
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method AndreaSaveToDrive::SaveToDriveMenu() should not be called statically
    • > GET request to /wp-admin/options-general.php?page=save-to-drive-options
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method AndreaSaveToDrive::SaveToDriveOptions() should not be called statically

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 take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/save-to-google-drive-by-forum-gt/save-to-google-drive.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: save to google drive, cloud file saving, google

save-to-google-drive-by-forum-gt/save-to-google-drive.php 92% from 13 tests

The primary PHP file in "WordPress Save To Google Drive" version 1.0.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("save-to-google-drive-by-forum-gt.php" instead of "save-to-google-drive.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin124 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15368124

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.12
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.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
There are no PNG files in this plugin