72% blogger-to-wordpress-redirection

Code Review | Blogger To WordPress

WordPress plugin Blogger To WordPress scored72%from 54 tests.

About plugin

  • Plugin page: blogger-to-wordpr...
  • Plugin version: 2.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-6.3
  • WordPress version: 6.3.1
  • First release: Feb 10, 2008
  • Latest release: Nov 30, 2023
  • Number of updates: 98
  • Update frequency: every 58.9 days
  • Top authors: rtcamp (39.8%)rahul286 (23.47%)vaishu.agola27 (14.29%)pavanpatil1 (5.1%)Otto42 (5.1%)

Code review

54 tests

User reviews

24 reviews

Install metrics

5,000+ active /150,622 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼0.47ms] 75% from 4 tests

Analyzing server-side resources used by Blogger To WordPress
The following require your attention
  • CPU: The total CPU usage must kept under 500.00ms (currently 1,154.73ms on /wp-admin/tools.php?page=rt-blogger-to-wordpress-redirection)
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0341.62 ▼1.45
Dashboard /wp-admin3.35 ▲0.0447.40 ▼1.83
Posts /wp-admin/edit.php3.40 ▲0.0348.12 ▼0.13
Add New Post /wp-admin/post-new.php5.93 ▲0.0394.12 ▲1.53
Media Library /wp-admin/upload.php3.27 ▲0.0337.95 ▲3.71
Blogger To WordPress Redirection /wp-admin/tools.php?page=rt-blogger-to-wordpress-redirection4.501,154.73

Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Blogger To WordPress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,855 ▲9313.82 ▼0.944.37 ▲2.6839.63 ▼4.13
Dashboard /wp-admin2,233 ▲555.57 ▼0.18126.00 ▲14.0740.78 ▼4.69
Posts /wp-admin/edit.php2,147 ▲502.73 ▲0.5863.86 ▲25.7535.62 ▲1.98
Add New Post /wp-admin/post-new.php6,353 ▲4,82426.32 ▲3.52873.13 ▲295.3846.12 ▼6.78
Media Library /wp-admin/upload.php1,437 ▲375.02 ▲0.88142.26 ▲43.5549.54 ▲7.66
Blogger To WordPress Redirection /wp-admin/tools.php?page=rt-blogger-to-wordpress-redirection1,2867.83126.7476.34

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 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
Please take a closer look at the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/blogger-to-wordpress-redirection/templates/feeds.php
    • > /wp-content/plugins/blogger-to-wordpress-redirection/templates/blogger-code.php
  • 8× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/blogger-to-wordpress-redirection/templates/settings.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/blogger-to-wordpress-redirection/templates/get-config.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/blogger-to-wordpress-redirection/templates/update-notice.php:13
    • > PHP Notice
      Undefined variable: rss_items in wp-content/plugins/blogger-to-wordpress-redirection/templates/feeds.php on line 18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/blogger-to-wordpress-redirection/b2w-redirection.php:16
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/blogger-to-wordpress-redirection/templates/feeds.php on line 18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/blogger-to-wordpress-redirection/templates/verify-config.php:11
    • > PHP Notice
      Undefined variable: maxitems in wp-content/plugins/blogger-to-wordpress-redirection/templates/feeds.php on line 12

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/tools.php?page=rt-blogger-to-wordpress-redirection
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
    • > GET request to /wp-admin/tools.php?page=rt-blogger-to-wordpress-redirection
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
    • > GET request to /wp-admin/tools.php?page=rt-blogger-to-wordpress-redirection
    • > Security (warning) in unknown
    security - Error with Permissions-Policy-Report-Only header: Unrecognized feature: 'document-domain'.

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: meta-refresh, blogger, blogspot, seo, traffic...

blogger-to-wordpress-redirection/b2w-redirection.php 85% from 13 tests

The primary PHP file in "Blogger To WordPress" version 2.3.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("blogger-to-wordpress-redirection.php" instead of "b2w-redirection.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 239 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected466 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP719178398
JavaScript1112953
CSS10015

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/btowp_img.png3.94KB1.87KB▼ 52.64%
images/twitter.png1.06KB0.93KB▼ 12.76%
images/facebook.png0.87KB0.71KB▼ 17.68%
images/rss.png1.40KB1.42KB0.00%