10% wp-fetlife-importer

Code Review | WP FetLife Importer

WordPress plugin WP FetLife Importer scored10%from 54 tests.

About plugin

  • Plugin page: wp-fetlife-importer
  • Plugin version: 0.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9.2
  • WordPress version: 6.3.1
  • First release: Mar 10, 2013
  • Latest release: Aug 16, 2014
  • Number of updates: 21
  • Update frequency: every 32.0 days
  • Top authors: meitar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,406 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/wp-fetlife-importer/wp-fetlife-importer.php+39
    Methods with the same name as their class will not be constructors in a future version of PHP; WP_FetLife_Import has a deprecated constructor

Server metrics [RAM: ▼1.67MB] [CPU: ▼53.81ms] Passed 4 tests

A check of server-side resources used by WP FetLife Importer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.32 ▼1.145.78 ▼37.50
Dashboard /wp-admin2.34 ▼0.966.84 ▼43.12
Posts /wp-admin/edit.php2.34 ▼1.018.06 ▼35.61
Add New Post /wp-admin/post-new.php2.34 ▼3.557.00 ▼99.02
Media Library /wp-admin/upload.php2.34 ▼0.895.54 ▼28.97

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WP FetLife Importer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.19 ▼1.431.71 ▲0.0445.60 ▲5.57
Dashboard /wp-admin2,206 ▲205.85 ▲0.95108.99 ▼8.1541.33 ▲1.73
Posts /wp-admin/edit.php2,089 ▼02.04 ▼0.0135.62 ▲2.7534.98 ▲1.58
Add New Post /wp-admin/post-new.php1,536 ▲823.19 ▲0.02671.48 ▲57.1160.76 ▲12.54
Media Library /wp-admin/upload.php1,391 ▲34.19 ▼0.01100.43 ▼6.4840.38 ▼4.25

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/wp-fetlife-importer/wp-fetlife-importer.php+39
    Methods with the same name as their class will not be constructors in a future version of PHP; WP_FetLife_Import has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

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 no errors were found, this is by no means an exhaustive test

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
The SRP test was a success

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 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === wp-fetlife-importer === )
  • Screenshots: Screenshot #1 (Enter your FetLife connection details on the WP FetLife Importer screen, and optionally specify a proxy URL. Once entered, you're ready to import!) image required
You can look at the official readme.txt

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

The main PHP file in "WP FetLife Importer" ver. 0.2.3 adds more information about the plugin and also serves as the entry point for this plugin
74 characters long description:
Import your FetLife Writings and Pictures to your WordPress blog as posts.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,513 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP22034321,245
PO File14953161
Markdown229098
HTML1019

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity17.82
▷ Minimum class complexity1.00
▷ Maximum class complexity123.00
Average method complexity3.23
▷ Minimum method complexity1.00
▷ Maximum method complexity46.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods83
▷ Static methods00.00%
▷ Public methods7185.54%
▷ Protected methods00.00%
▷ Private methods1214.46%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants133.33%
▷ Class constants266.67%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png40.51KB15.25KB▼ 62.37%