10% loveitcom-importer

Code Review | LoveIt.com Importer

WordPress plugin LoveIt.com Importer scored 10% from 54 tests.

About plugin

  • Plugin page: loveitcom-importer
  • Plugin version: 0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.2
  • WordPress version: 6.3.1
  • First release: Jul 6, 2013
  • Latest release: Jul 7, 2013
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: grosbouff (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 672 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/loveitcom-importer/loveit-importer-class.php+12
    Methods with the same name as their class will not be constructors in a future version of PHP; LoveIt_WP_Importer has a deprecated constructor

Server metrics [RAM: ▼1.59MB] [CPU: ▼46.98ms] Passed 4 tests

Analyzing server-side resources used by LoveIt.com Importer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.93 ▼2.48
Dashboard /wp-admin2.35 ▼0.956.75 ▼48.36
Posts /wp-admin/edit.php2.35 ▼1.007.50 ▼37.40
Add New Post /wp-admin/post-new.php2.35 ▼3.537.35 ▼79.15
Media Library /wp-admin/upload.php2.35 ▼0.879.56 ▼23.00

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 85 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

LoveIt.com Importer: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.25 ▼1.371.73 ▲0.0141.74 ▼1.62
Dashboard /wp-admin2,203 ▲155.82 ▲0.9297.83 ▼48.6838.72 ▼29.32
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0234.30 ▼2.8231.10 ▼1.75
Add New Post /wp-admin/post-new.php1,533 ▲2023.44 ▲5.64699.30 ▲38.0654.47 ▼0.16
Media Library /wp-admin/upload.php1,391 ▲64.23 ▼0.0192.41 ▼9.5140.79 ▼5.36

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/loveitcom-importer/loveit-importer-class.php+12
    Methods with the same name as their class will not be constructors in a future version of PHP; LoveIt_WP_Importer has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 122× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: self in wp-content/plugins/loveitcom-importer/_inc/lib/phpQuery/phpQuery/plugins/Scripts/print_source.php on line 8
    • > PHP Warning
      require_once(Zend/Validate/Abstract.php): failed to open stream: No such file or directory in wp-content/plugins/loveitcom-importer/_inc/lib/phpQuery/phpQuery/Zend/Validate/File/Extension.php on line 25
    • > PHP Warning
      require_once(Zend/Http/Client/Exception.php): failed to open stream: No such file or directory in wp-content/plugins/loveitcom-importer/_inc/lib/phpQuery/phpQuery/Zend/Http/Client/Adapter/Exception.php on line 23
    • > PHP Fatal error
      require_once(): Failed opening required 'Zend/Validate/Abstract.php' (include_path='.:/usr/share/php') in wp-content/plugins/loveitcom-importer/_inc/lib/phpQuery/phpQuery/Zend/Validate/Identical.php on line 23
    • > PHP Warning
      require_once(Zend/Validate/Abstract.php): failed to open stream: No such file or directory in wp-content/plugins/loveitcom-importer/_inc/lib/phpQuery/phpQuery/Zend/Validate/Barcode/UpcA.php on line 27
    • > PHP Fatal error
      require_once(): Failed opening required 'Zend/Validate/Abstract.php' (include_path='.:/usr/share/php') in wp-content/plugins/loveitcom-importer/_inc/lib/phpQuery/phpQuery/Zend/Validate/LessThan.php on line 27
    • > PHP Warning
      require_once(Zend/Validate/Abstract.php): failed to open stream: No such file or directory in wp-content/plugins/loveitcom-importer/_inc/lib/phpQuery/phpQuery/Zend/Validate/EmailAddress.php on line 27
    • > PHP Warning
      require_once(Zend/Validate/Abstract.php): failed to open stream: No such file or directory in wp-content/plugins/loveitcom-importer/_inc/lib/phpQuery/phpQuery/Zend/Validate/File/Upload.php on line 25
    • > PHP Fatal error
      require_once(): Failed opening required 'Zend/Validate/Abstract.php' (include_path='.:/usr/share/php') in wp-content/plugins/loveitcom-importer/_inc/lib/phpQuery/phpQuery/Zend/Validate/Barcode/UpcA.php on line 27
    • > PHP Fatal error
      require_once(): Failed opening required 'Zend/Loader.php' (include_path='.:/usr/share/php') in wp-content/plugins/loveitcom-importer/_inc/lib/phpQuery/phpQuery/Zend/Http/Client.php on line 27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: pins, loveit, importer, loveitcom

loveitcom-importer/loveit-importer.php 92% from 13 tests

The main PHP file in "LoveIt.com Importer" ver. 0.1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("loveitcom-importer.php" instead of "loveit-importer.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
Good job! No executable or dangerous file extensions detected9,698 lines of code in 83 files:
LanguageFilesBlank linesComment linesLines of code
PHP831,7128,0459,698

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity23.68
▷ Minimum class complexity1.00
▷ Maximum class complexity555.00
Average method complexity4.07
▷ Minimum method complexity1.00
▷ Maximum method complexity59.00
Code structure
Namespaces0
Interfaces4
Traits0
Classes81
▷ Abstract classes89.88%
▷ Concrete classes7390.12%
▷ Final classes00.00%
Methods643
▷ Static methods14222.08%
▷ Public methods55285.85%
▷ Protected methods8413.06%
▷ Private methods71.09%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants108
▷ Global constants54.63%
▷ Class constants10395.37%
▷ Public constants103100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin