90% article-importer

Code Review | Article Importer

WordPress plugin Article Importer scored90%from 54 tests.

About plugin

  • Plugin page: article-importer
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-4.9
  • WordPress version: 6.3.1
  • First release: Jul 23, 2018
  • Latest release: Aug 25, 2018
  • Number of updates: 9
  • Update frequency: every 3.8 days
  • Top authors: minosystem (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /835 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼10.27ms] Passed 4 tests

This is a short check of server-side resources used by Article Importer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.22 ▼1.85
Dashboard /wp-admin3.34 ▼0.0146.37 ▼11.75
Posts /wp-admin/edit.php3.39 ▲0.0348.29 ▼2.89
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.61 ▼24.60
Media Library /wp-admin/upload.php3.26 ▲0.0333.58 ▲0.81

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Article 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.33 ▼0.973.99 ▲2.2041.61 ▲2.08
Dashboard /wp-admin2,206 ▲185.81 ▼0.08104.96 ▲2.4338.64 ▼3.36
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0035.80 ▼10.6531.85 ▼3.25
Add New Post /wp-admin/post-new.php1,514 ▼1617.49 ▼0.73681.80 ▲43.0257.11 ▲3.57
Media Library /wp-admin/upload.php1,391 ▲64.20 ▲0.0195.85 ▼6.5241.99 ▼0.72

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Donate link: Invalid URI ("")
You can take inspiration from this readme.txt

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

The main PHP file in "Article Importer" ver. 2.0 adds more information about the plugin and also serves as the entry point for this plugin
45 characters long description:
CSVデータから記事を投稿します。

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin250 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16712250

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity4.71
▷ Minimum method complexity1.00
▷ Maximum method complexity19.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%
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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin