84% tumblr-importer

Code Review | Tumblr Importer

WordPress plugin Tumblr Importer scored84%from 54 tests.

About plugin

  • Plugin page: tumblr-importer
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-6.2
  • WordPress version: 6.3.1
  • First release: Jul 7, 2011
  • Latest release: Aug 21, 2023
  • Number of updates: 81
  • Update frequency: every 54.9 days
  • Top authors: westi (38.27%)Otto42 (27.16%)dllh (20.99%)vishnugopal (7.41%)nacin (7.41%)

Code review

54 tests

User reviews

48 reviews

Install metrics

10,000+ active /787,427 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Tumblr Importer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.49 ▲2.75
Dashboard /wp-admin3.31 ▼0.0449.73 ▼16.31
Posts /wp-admin/edit.php3.42 ▲0.0647.64 ▼9.52
Add New Post /wp-admin/post-new.php5.89 ▲0.0096.14 ▲7.90
Media Library /wp-admin/upload.php3.23 ▲0.0036.24 ▼0.10

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Tumblr Importer
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.72 ▲0.341.69 ▼0.0343.02 ▲1.69
Dashboard /wp-admin2,195 ▲255.63 ▼0.0092.93 ▼5.4842.30 ▲1.96
Posts /wp-admin/edit.php2,103 ▲31.97 ▼0.0141.95 ▼0.8535.89 ▼3.31
Add New Post /wp-admin/post-new.php1,531 ▲523.43 ▲0.41673.21 ▼12.0758.25 ▲2.12
Media Library /wp-admin/upload.php1,394 ▼64.19 ▼0.0398.96 ▼5.1147.23 ▲1.84

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/import.php): failed to open stream: No such file or directory in wp-content/plugins/tumblr-importer/class-wp-importer-cron.php on line 10
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/tumblr-importer/class-wp-importer-cron.php on line 10
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/import.php' (include_path='.:/usr/share/php') in wp-content/plugins/tumblr-importer/class-wp-importer-cron.php on line 10

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 Passed 29 tests

readme.txt Passed 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
2 plugin tags: import, tumblr

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

"Tumblr Importer" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
32 characters long description:
Import posts from a Tumblr blog.

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
Everything looks great! No dangerous files found in this plugin859 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2171143859

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity83.50
▷ Minimum class complexity8.00
▷ Maximum class complexity159.00
Average method complexity6.00
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods33
▷ Static methods00.00%
▷ Public methods3296.97%
▷ Protected methods00.00%
▷ Private methods13.03%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected