90% wp-importer

Code Review | Create Unlimited Pages Through The CSV File

WordPress plugin Create Unlimited Pages Through The CSV File scored90%from 54 tests.

About plugin

  • Plugin page: wp-importer
  • Plugin version: 1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3.1
  • WordPress version: 6.3.1
  • First release: May 31, 2016
  • Latest release: Sep 5, 2023
  • Number of updates: 40
  • Update frequency: every 66.3 days
  • Top authors: india-web-developer (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

400+ active /22,959 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼0.37ms] Passed 4 tests

Server-side resources used by Create Unlimited Pages Through The CSV File
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0643.04 ▲0.43
Dashboard /wp-admin3.37 ▲0.0750.23 ▼2.80
Posts /wp-admin/edit.php3.42 ▲0.0649.08 ▼2.52
Add New Post /wp-admin/post-new.php5.95 ▲0.0689.40 ▲5.05
Media Library /wp-admin/upload.php3.29 ▲0.0639.00 ▲3.41
Wp Importer /wp-admin/tools.php?page=wp-importer3.2439.05

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

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

Browser metrics Passed 4 tests

Create Unlimited Pages Through The CSV File: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲4614.25 ▼0.111.69 ▼0.1044.08 ▼4.63
Dashboard /wp-admin2,213 ▲365.54 ▼0.1091.13 ▼1.3238.28 ▼7.25
Posts /wp-admin/edit.php2,118 ▲181.96 ▼0.0239.01 ▲2.1433.17 ▼1.48
Add New Post /wp-admin/post-new.php1,537 ▲923.65 ▲0.64666.76 ▲38.3162.97 ▲6.45
Media Library /wp-admin/upload.php1,415 ▲154.17 ▼0.0198.85 ▼0.4344.94 ▲2.04
Wp Importer /wp-admin/tools.php?page=wp-importer1,1562.0837.5857.94

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • csv_importer_cat
    • csv_importer_import_as_draft
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #4 (Pro addon Settings), #5 (Created post)
Please take inspiration from this readme.txt

wp-importer/wp-importer.php Passed 13 tests

The main file in "Create Unlimited Pages Through The CSV File" v. 1.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
49 characters long description:
Create unlimited post/pages through the CSV file.

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
Everything looks great! No dangerous files found in this plugin449 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP25770448
CSS1041

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity56.00
▷ Minimum class complexity56.00
▷ Maximum class complexity56.00
Average method complexity8.86
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
There were not PNG files found in your plugin