83% custom-fields-csv-xml-importer

Code Review | CIO Custom Fields Importer

WordPress plugin CIO Custom Fields Importer scored 83% from 54 tests.

About plugin

  • Plugin page: custom-fields-csv...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.0-4.9
  • WordPress version: 6.3.1
  • First release: Jul 23, 2015
  • Latest release: Dec 26, 2017
  • Number of updates: 30
  • Update frequency: every 29.6 days
  • Top authors: VisualData (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

700+ active / 15,122 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼0.53ms] Passed 4 tests

An overview of server-side resources used by CIO Custom Fields Importer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1641.17 ▼0.17
Dashboard /wp-admin3.45 ▲0.1546.83 ▼3.25
Posts /wp-admin/edit.php3.56 ▲0.2149.87 ▲3.29
Add New Post /wp-admin/post-new.php6.03 ▲0.1591.93 ▲0.74
Media Library /wp-admin/upload.php3.37 ▲0.1538.79 ▲0.56

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by CIO Custom Fields Importer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲8813.29 ▼1.011.86 ▼0.4938.87 ▼9.44
Dashboard /wp-admin2,229 ▲415.86 ▲0.85132.70 ▲15.8542.04 ▼4.21
Posts /wp-admin/edit.php2,112 ▲232.07 ▲0.0638.72 ▲0.6637.90 ▼0.17
Add New Post /wp-admin/post-new.php1,540 ▼223.19 ▲4.92642.01 ▲9.7354.85 ▼4.43
Media Library /wp-admin/upload.php1,408 ▲174.23 ▲0.0699.66 ▼5.4143.05 ▼2.02

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

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 | 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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_blog_prefix() on null in wp-content/plugins/custom-fields-csv-xml-importer/wp-all-import-pods-addon.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 45 tag instead of maximum 10
  • Screenshots: These screenshots lack descriptions #13, #14, #15, #16, #17, #18 in custom-fields-csv-xml-importer/assets to your readme.txt
You can look at the official readme.txt

custom-fields-csv-xml-importer/wp-all-import-pods-addon.php 85% from 13 tests

The principal PHP file in "CIO Custom Fields Importer" v. 1.0.3 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("custom-fields-csv-xml-importer.php" instead of "wp-all-import-pods-addon.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 538 characters long)

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

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.66
Average class complexity165.00
▷ Minimum class complexity165.00
▷ Maximum class complexity165.00
Average method complexity4.81
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods43
▷ Static methods00.00%
▷ Public methods43100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin