10% automotive-feed-import

Code Review | Automotive Feed Importer

WordPress plugin Automotive Feed Importer scored10%from 54 tests.

About plugin

  • Plugin page: automotive-feed-i...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: Jun 16, 2014
  • Latest release: Nov 2, 2014
  • Number of updates: 12
  • Update frequency: every 20.4 days
  • Top authors: jawaid (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,135 total downloads


Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/automotive-feed-import/automotive-feed-import.php+17
    Methods with the same name as their class will not be constructors in a future version of PHP; AutomotiveFeedImport has a deprecated constructor

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

This is a short check of server-side resources used by Automotive Feed Importer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.86 ▼4.77
Dashboard /wp-admin3.32 ▲0.0145.96 ▼7.00
Posts /wp-admin/edit.php3.37 ▲0.0147.95 ▼0.39
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.65 ▼8.34
Media Library /wp-admin/upload.php3.24 ▲0.0134.42 ▲0.58

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Automotive Feed Importer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.13 ▼1.251.55 ▼0.1942.99 ▼3.32
Dashboard /wp-admin2,200 ▲125.81 ▼0.09101.55 ▼13.8439.29 ▼1.96
Posts /wp-admin/edit.php2,092 ▲32.02 ▼0.0340.54 ▼0.1834.28 ▲0.52
Add New Post /wp-admin/post-new.php1,542 ▲918.46 ▼4.72604.31 ▼83.1464.24 ▲5.69
Media Library /wp-admin/upload.php1,391 ▼04.25 ▲0.0099.35 ▲3.0641.09 ▼5.92

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/automotive-feed-import/automotive-feed-import.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side


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
6 plugin tags: import, automotiv, feed, vehicle, auto...

automotive-feed-import/automotive-feed-import.php 92% from 13 tests

Analyzing the main PHP file in "Automotive Feed Importer" version 0.1
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 214 characters long)

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
Success! There were no dangerous files found in this plugin506 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity2.14
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.11MB with 0.08MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/snapshot.png116.19KB38.55KB▼ 66.82%