84% gdata-importer

Code Review | GData Importer

WordPress plugin GData Importer scored84%from 54 tests.

About plugin

  • Plugin page: gdata-importer
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.2-3.9
  • WordPress version: 6.3.1
  • First release: Feb 17, 2012
  • Latest release: May 23, 2014
  • Number of updates: 19
  • Update frequency: every 43.5 days
  • Top authors: ankit_sam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,424 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.54ms] Passed 4 tests

Server-side resources used by GData Importer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0134.78 ▼6.29
Dashboard /wp-admin3.32 ▲0.0246.02 ▼3.07
Posts /wp-admin/edit.php3.37 ▲0.0143.31 ▼5.06
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.62 ▼3.73
Media Library /wp-admin/upload.php3.24 ▲0.0137.31 ▲1.64

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 355 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

GData Importer: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▲0.031.63 ▼0.1040.79 ▲0.60
Dashboard /wp-admin2,206 ▲175.85 ▲0.9097.80 ▼5.8041.73 ▼2.15
Posts /wp-admin/edit.php2,089 ▲182.01 ▲0.0039.29 ▲3.6734.98 ▼1.15
Add New Post /wp-admin/post-new.php1,514 ▼3017.69 ▼0.55660.13 ▼7.7157.15 ▲5.30
Media Library /wp-admin/upload.php1,391 ▼04.15 ▼0.0696.91 ▼0.9442.66 ▼2.69

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% 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)
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 672× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Warning
      require_once(Zend/Gdata/Extension.php): failed to open stream: No such file or directory in wp-content/plugins/gdata-importer/Zend/Gdata/Photos/Extension/AlbumId.php on line 27
    • > PHP Fatal error
      require_once(): Failed opening required 'Zend/Gdata/Media/Feed.php' (include_path='.:/usr/share/php') in wp-content/plugins/gdata-importer/Zend/Gdata/YouTube/InboxFeed.php on line 27
    • > PHP Warning
      require_once(Zend/Gdata/Extension.php): failed to open stream: No such file or directory in wp-content/plugins/gdata-importer/Zend/Gdata/Photos/Extension/Nickname.php on line 27
    • > PHP Fatal error
      require_once(): Failed opening required 'Zend/Gdata/Entry.php' (include_path='.:/usr/share/php') in wp-content/plugins/gdata-importer/Zend/Gdata/Spreadsheets/CellEntry.php on line 27
    • > PHP Fatal error
      require_once(): Failed opening required 'Zend/Gdata/Extension.php' (include_path='.:/usr/share/php') in wp-content/plugins/gdata-importer/Zend/Gdata/YouTube/Extension/AboutMe.php on line 27
    • > PHP Fatal error
      require_once(): Failed opening required 'Zend/Gdata/App/Extension/Element.php' (include_path='.:/usr/share/php') in wp-content/plugins/gdata-importer/Zend/Gdata/Health/Extension/Ccr.php on line 26
    • > PHP Fatal error
      require_once(): Failed opening required 'Zend/Gdata/Extension.php' (include_path='.:/usr/share/php') in wp-content/plugins/gdata-importer/Zend/Gdata/YouTube/Extension/Status.php on line 27
    • > PHP Warning
      require_once(Zend/Gdata/Extension.php): failed to open stream: No such file or directory in wp-content/plugins/gdata-importer/Zend/Gdata/YouTube/Extension/Racy.php on line 27
    • > PHP Warning
      require_once(Zend/Gdata/Entry.php): failed to open stream: No such file or directory in wp-content/plugins/gdata-importer/Zend/Gdata/Health/ProfileEntry.php on line 27
    • > PHP Fatal error
      require_once(): Failed opening required 'Zend/Gdata/App/Extension.php' (include_path='.:/usr/share/php') in wp-content/plugins/gdata-importer/Zend/Gdata/Media/Extension/MediaRestriction.php on line 27

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

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: import, docs, spreadsheet, data, google

gdata-importer/index.php 92% from 13 tests

The main file in "GData Importer" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("gdata-importer.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected29,313 lines of code in 354 files:
LanguageFilesBlank linesComment linesLines of code
PHP3545,50328,70929,313

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity7.98
▷ Minimum class complexity1.00
▷ Maximum class complexity175.00
Average method complexity2.12
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces0
Interfaces4
Traits0
Classes345
▷ Abstract classes102.90%
▷ Concrete classes33597.10%
▷ Final classes10.30%
Methods2,185
▷ Static methods683.11%
▷ Public methods2,03092.91%
▷ Protected methods1537.00%
▷ Private methods20.09%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants172
▷ Global constants00.00%
▷ Class constants172100.00%
▷ Public constants172100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin