72% https-social-migration

Code Review | HTTPS Social Migration

WordPress plugin HTTPS Social Migration scored72%from 54 tests.

About plugin

  • Plugin page: https-social-migr...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.4
  • WordPress version: 6.3.1
  • First release: Mar 3, 2016
  • Latest release: Mar 4, 2016
  • Number of updates: 3
  • Update frequency: every 1.3 days
  • Top authors: crisworth (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /2,044 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.70ms] Passed 4 tests

This is a short check of server-side resources used by HTTPS Social Migration
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0441.43 ▼4.64
Dashboard /wp-admin3.36 ▲0.0555.61 ▲7.56
Posts /wp-admin/edit.php3.47 ▲0.1151.36 ▼2.05
Add New Post /wp-admin/post-new.php5.96 ▲0.0789.24 ▼18.14
Media Library /wp-admin/upload.php3.28 ▲0.0537.35 ▲2.04
HTTPS Social Migration /wp-admin/options-general.php?page=mediavidi_https_social_migration3.2634.14

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

HTTPS Social Migration: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.20 ▼0.381.86 ▲0.1046.05 ▲1.66
Dashboard /wp-admin2,203 ▲265.64 ▲0.04100.85 ▲9.4144.07 ▲2.40
Posts /wp-admin/edit.php2,108 ▲52.02 ▲0.0537.60 ▼3.7334.65 ▼0.62
Add New Post /wp-admin/post-new.php1,533 ▼1222.96 ▼0.15646.82 ▼33.6551.58 ▼12.55
Media Library /wp-admin/upload.php1,411 ▲114.26 ▲0.03105.53 ▼1.6944.83 ▲0.93
HTTPS Social Migration /wp-admin/options-general.php?page=mediavidi_https_social_migration7551.537.8622.08

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • mediavidi_https_social_migration
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 25% from 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 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/https-social-migration/admin/partials/ssl_test.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function home_url() in wp-content/plugins/https-social-migration/admin/partials/mediavidi_https_social_migration-display.php:15

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=mediavidi_https_social_migration
    • > Javascript (severe) in unknown
    /wp-admin/options-general.php?page=mediavidi_https_social_migration 177:54 Uncaught TypeError: Cannot set properties of null (setting 'innerHTML')
    • > GET request to /wp-admin/options-general.php?page=mediavidi_https_social_migration
    • > Network (severe)
    /wp-content/plugins/https-social-migration/admin/partials/ssl_test.php - Failed to load resource: net::ERR_CONNECTION_REFUSED

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: You are using too many tags: 14 tag instead of maximum 10
Please take inspiration from this readme.txt

https-social-migration/mediavidi_https_social_migration.php 77% from 13 tests

The main file in "HTTPS Social Migration" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to 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 ("https-social-migration.php" instead of "mediavidi_https_social_migration.php")
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin313 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP10100274310
JavaScript12273
CSS1040

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity2.60
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods24
▷ Static methods312.50%
▷ Public methods2083.33%
▷ Protected methods00.00%
▷ Private methods416.67%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There are no PNG files in this plugin