78% simple-content-upload-by-csv

Code Review | Simple Content Upload By CSV

WordPress plugin Simple Content Upload By CSV scored78%from 54 tests.

About plugin

  • Plugin page: simple-content-up...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8.1
  • WordPress version: 6.3.1
  • First release: Feb 17, 2014
  • Latest release: Feb 17, 2014
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: hasmimeraj@gmail.com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /949 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Analyzing server-side resources used by Simple Content Upload By CSV
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.06 ▼0.28
Dashboard /wp-admin3.31 ▲0.0147.91 ▼0.32
Posts /wp-admin/edit.php3.36 ▲0.0148.16 ▲2.03
Add New Post /wp-admin/post-new.php5.89 ▲0.01102.08 ▲7.57
Media Library /wp-admin/upload.php3.23 ▲0.0135.84 ▲0.25

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Content Upload By CSV
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.54 ▼0.674.30 ▲1.9042.40 ▼6.80
Dashboard /wp-admin2,210 ▲194.87 ▼0.0496.08 ▼20.8340.95 ▼5.98
Posts /wp-admin/edit.php2,090 ▲12.06 ▲0.0339.39 ▲2.2234.37 ▼3.02
Add New Post /wp-admin/post-new.php1,544 ▲1118.20 ▼5.48659.78 ▼42.1962.86 ▲9.86
Media Library /wp-admin/upload.php1,392 ▲14.21 ▲0.0194.99 ▼15.3744.05 ▼2.80
Upload Content /wp-admin/my-plugin.php260.440.0711.86

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/simple-content-upload-by-csv/ucbc_admin.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/simple-content-upload-by-csv/uploadcontentbycsv.php:12

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
    • > GET request to /wp-admin/my-plugin.php
    • > Network (severe)
    wp-admin/my-plugin.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: post or page create csv with title and description and upload it, upload your content data either it is custom post type

simple-content-upload-by-csv/uploadcontentbycsv.php 92% from 13 tests

This is the main PHP file of "Simple Content Upload By CSV" version 0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-content-upload-by-csv.php" instead of "uploadcontentbycsv.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin148 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP22518109
JavaScript262339

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png30.60KB12.14KB▼ 60.32%