10% je-article-import

Code Review | JE Article import

WordPress plugin JE Article import scored 10% from 54 tests.

About plugin

  • Plugin page: je-article-import
  • Plugin version: 0.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.4-4.3
  • WordPress version: 6.3.1
  • First release: Nov 12, 2014
  • Latest release: Sep 21, 2015
  • Number of updates: 9
  • Update frequency: every 35.0 days
  • Top authors: TSVUrachHandball (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 832 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Parse error in wp-content/plugins/je-article-import/je-article-import.php+353
    syntax error, unexpected '}', expecting end of file

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.67ms] Passed 4 tests

A check of server-side resources used by JE Article import
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.28 ▼2.17
Dashboard /wp-admin3.31 ▲0.0052.55 ▼2.01
Posts /wp-admin/edit.php3.36 ▲0.0045.69 ▼1.45
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.68 ▼4.71
Media Library /wp-admin/upload.php3.23 ▲0.0033.00 ▼5.78

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by JE Article import
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.24 ▼1.061.73 ▲0.0242.96 ▲0.09
Dashboard /wp-admin2,209 ▲214.86 ▼0.0499.00 ▼4.5141.23 ▼2.75
Posts /wp-admin/edit.php2,092 ▲32.03 ▼0.0140.83 ▲0.5236.61 ▼0.91
Add New Post /wp-admin/post-new.php1,544 ▲1018.22 ▼4.91604.24 ▼76.1258.84 ▼7.19
Media Library /wp-admin/upload.php1,391 ▲34.29 ▲0.1295.79 ▼17.8844.21 ▼6.98

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/je-article-import/uninstall.php+16
    Undefined variable: p_tablename
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Parse error
      syntax error, unexpected '}', expecting end of file in wp-content/plugins/je-article-import/je-article-import.php on line 353

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === je-article-import === )
  • Screenshots: These screenshots require images: #1 (Fomular for the user. You can integrate this into your site with the shortcode [je_ai_sc_formular]), #2 (The admin menu (User need the role publish_posts )), #3 (Status about the article), #4 (Modify the imported article with a click obout the imported green button on the status site.), #5 (Send users article to other mail recipient), #6 (Option page with set mail addresses, thumbails for categories, ....), #7 (Info on the admin bar about new articles)
You can take inspiration from this readme.txt

je-article-import/je-article-import.php Passed 13 tests

The principal PHP file in "JE Article import" v. 0.2.3 is loaded by WordPress automatically on each request
39 characters long description:
Import articles from a custom user site

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin908 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP27779796
JavaScript2724112

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions13
▷ Named functions13100.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
10 PNG files occupy 0.34MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png28.88KB13.69KB▼ 52.61%
screenshot-2.png3.58KB2.22KB▼ 38.06%
screenshot-4.png140.62KB61.29KB▼ 56.41%
images/dialog_no.png0.95KB0.87KB▼ 8.14%
screenshot-3.png20.20KB9.69KB▼ 52.04%