90% import-bookmarks

Code Review | Import Bookmarks

WordPress plugin Import Bookmarks scored90%from 54 tests.

About plugin

  • Plugin page: import-bookmarks
  • Plugin version: 0.2.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 9, 2019
  • Latest release: Mar 14, 2021
  • Number of updates: 14
  • Update frequency: every 52.6 days
  • Top authors: janboddez (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,214 total downloads


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: ▼3.89ms] Passed 4 tests

An overview of server-side resources used by Import Bookmarks
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.94 ▼0.70
Dashboard /wp-admin3.31 ▲0.0144.34 ▼6.58
Posts /wp-admin/edit.php3.36 ▲0.0149.21 ▲3.54
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.92 ▼7.94
Media Library /wp-admin/upload.php3.23 ▲0.0132.89 ▼0.33
Import Bookmarks /wp-admin/tools.php?page=import-bookmarks3.2031.33

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Import Bookmarks
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.33 ▼1.074.08 ▲2.3142.20 ▲1.63
Dashboard /wp-admin2,213 ▲225.88 ▼0.00104.69 ▼1.7939.58 ▼4.45
Posts /wp-admin/edit.php2,096 ▲42.00 ▼0.0539.50 ▼1.0139.88 ▲3.36
Add New Post /wp-admin/post-new.php1,545 ▲2518.54 ▼4.61595.33 ▼5.8153.24 ▼0.67
Media Library /wp-admin/upload.php1,392 ▲104.15 ▼0.0994.63 ▼5.5741.25 ▲0.06
Import Bookmarks /wp-admin/tools.php?page=import-bookmarks9742.0522.0431.62

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

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


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: import, importer, bookmarks, favorites

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

The main PHP script in "Import Bookmarks" version 0.2.9 is automatically included on every request by WordPress
44 characters long description:
Import browser bookmarks as WordPress posts.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected392 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity28.50
▷ Minimum class complexity25.00
▷ Maximum class complexity32.00
Average method complexity6.50
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods218.18%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions1100.00%
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.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
No PNG files were detected