90% wpfanyi-import

Code Review | WPfanyi import

WordPress plugin WPfanyi import scored90%from 54 tests.

About plugin

  • Plugin page: wpfanyi-import
  • Plugin version: 1.1.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.2
  • WordPress version: 6.3.1
  • First release: Mar 2, 2021
  • Latest release: Mar 29, 2023
  • Number of updates: 14
  • Update frequency: every 60.5 days
  • Top authors: wpfanyi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /6,352 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
Installer ran successfully

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

Analyzing server-side resources used by WPfanyi import
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0031.92 ▼8.40
Dashboard /wp-admin3.31 ▲0.0145.45 ▼10.60
Posts /wp-admin/edit.php3.36 ▲0.0148.47 ▲6.44
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.47 ▼30.39
Media Library /wp-admin/upload.php3.24 ▲0.0136.73 ▼0.43
import translation /wp-admin/tools.php?page=wpfanyi_import3.2938.79

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WPfanyi import
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.46 ▲0.081.55 ▼0.3638.27 ▼5.18
Dashboard /wp-admin2,210 ▲225.90 ▲1.00111.86 ▼5.5340.33 ▼6.74
Posts /wp-admin/edit.php2,096 ▲71.99 ▼0.0239.93 ▲0.0236.62 ▲6.99
Add New Post /wp-admin/post-new.php1,517 ▼1617.53 ▼5.75692.44 ▲63.5758.45 ▲3.55
Media Library /wp-admin/upload.php1,392 ▲44.20 ▼0.0798.27 ▼14.7542.16 ▼3.12
import translation /wp-admin/tools.php?page=wpfanyi_import1,3341.9943.8143.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 did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Contributors: The plugin contributors field is not present
You can take inspiration from this readme.txt

wpfanyi-import/wpfanyi-import.php Passed 13 tests

The entry point to "WPfanyi import" version 1.1.3 is a PHP file that has certain tags in its header comment area
109 characters long description:
Install translation package like a theme/plugin, no need for FTP/SFTP. this tool will save you a lot of time.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,022 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP369137545
PO File2114178319
CSS1220127
JavaScript22031

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity58.00
▷ Minimum class complexity58.00
▷ Maximum class complexity58.00
Average method complexity6.20
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods327.27%
▷ Protected methods00.00%
▷ Private methods872.73%
Functions4
▷ Named functions125.00%
▷ Anonymous functions375.00%
Constants4
▷ Global constants4100.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
There were not PNG files found in your plugin