84% export-to-blogger

Code Review | Export to Blogger

WordPress plugin Export to Blogger scored84%from 54 tests.

About plugin

  • Plugin page: export-to-blogger
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0.2
  • WordPress version: 6.3.1
  • First release: Oct 8, 2019
  • Latest release: Sep 3, 2022
  • Number of updates: 25
  • Update frequency: every 42.5 days
  • Top authors: amtbtk (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /28,866 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼5.76ms] Passed 4 tests

A check of server-side resources used by Export to Blogger
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0438.55 ▼4.40
Dashboard /wp-admin3.36 ▲0.0546.75 ▼7.63
Posts /wp-admin/edit.php3.41 ▲0.0552.34 ▲2.67
Add New Post /wp-admin/post-new.php5.94 ▲0.0586.28 ▼11.41
Media Library /wp-admin/upload.php3.28 ▲0.0538.67 ▲0.40
Export to Blogger /wp-admin/options-general.php?page=export-to-blogger/plugin.php3.2531.15

Server storage [IO: ▲0.03MB] [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: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Export to Blogger
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.43 ▼0.261.85 ▼0.8542.76 ▼3.32
Dashboard /wp-admin2,202 ▲255.62 ▲0.0595.71 ▼6.0743.42 ▼2.34
Posts /wp-admin/edit.php2,104 ▲41.98 ▼0.0639.18 ▲1.2235.01 ▼2.97
Add New Post /wp-admin/post-new.php1,558 ▲3218.57 ▲1.07602.92 ▼99.7050.40 ▼1.48
Media Library /wp-admin/upload.php1,404 ▲44.21 ▲0.0497.56 ▲1.1541.77 ▼1.38
Export to Blogger /wp-admin/options-general.php?page=export-to-blogger/plugin.php9602.0731.4041.09

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 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 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
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/export-to-blogger/code/get.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/export-to-blogger/plugin.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: export, blogger, import, wordpress, importer...

export-to-blogger/plugin.php 85% from 13 tests

Analyzing the main PHP file in "Export to Blogger" version 1.1.1
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("export-to-blogger.php" instead of "plugin.php")

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 plugin607 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP27974607

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
PNG images were not found in this plugin