72% tp2wp-assets-importer

Code Review | TypePad to Wordpress assets importer

WordPress plugin TypePad to Wordpress assets importer scored72%from 54 tests.

About plugin

  • Plugin page: tp2wp-assets-impo...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2.2
  • WordPress version: 6.3.1
  • First release: May 19, 2014
  • Latest release: Jun 19, 2015
  • Number of updates: 7
  • Update frequency: every 325.3 days
  • Top authors: rbiard (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,529 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

A check of server-side resources used by TypePad to Wordpress assets importer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.98 ▼5.55
Dashboard /wp-admin3.33 ▼0.0248.67 ▼19.12
Posts /wp-admin/edit.php3.38 ▲0.0251.76 ▲2.36
Add New Post /wp-admin/post-new.php5.93 ▲0.0487.67 ▼12.72
Media Library /wp-admin/upload.php3.25 ▲0.0237.77 ▲2.84
TypePad to Wordpress /wp-admin/options-general.php?page=typepad-to-wordpress3.2233.10

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for TypePad to Wordpress assets importer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲914.22 ▲0.051.87 ▼0.2245.21 ▲0.68
Dashboard /wp-admin2,204 ▲245.66 ▼0.0486.05 ▼7.4837.01 ▼3.01
Posts /wp-admin/edit.php2,106 ▲62.04 ▲0.0334.52 ▼4.4132.60 ▼6.35
Add New Post /wp-admin/post-new.php1,544 ▲1523.21 ▲5.62634.37 ▼34.5250.77 ▼7.40
Media Library /wp-admin/upload.php1,406 ▲64.23 ▲0.0496.50 ▼11.8643.99 ▼4.04
TypePad to Wordpress /wp-admin/options-general.php?page=typepad-to-wordpress9817.82147.1325.03

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 25% 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 no errors were found, 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 fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/tp2wp-assets-importer/typepad-to-wordpress-display.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tp2wp-assets-importer/typepad-to-wordpress.php:30

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=typepad-to-wordpress
    • > Network (severe)
    https://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-7523804290028147&output=html&h=250&slotname=1016891469&adk=3114396750&adf=3969650770&pi=t.ma~as.1016891469&w=300&lmt=1697297787&format=300x250&url=http%3A%2F%2Fwp.com%2Fwp-admin%2Foptions-general.php%3Fpage%3Dtypepad-to-wordpress&wgl=1&dt=1697297786784&bpp=3&bdt=224&idt=265&shv=r20231011&mjsv=m202310100101&ptt=9&saldr=aa&abxe=1&correlator=6985267363762&frm=20&pv=2&ga_vid=1567164147.1697297787&ga_sid=1697297787&ga_hid=736540731&ga_fc=0&u_tz=180&u_his=14&u_h=600&u_w=800&u_ah=600&u_aw=800&u_cd=24&u_sd=1&adx=465&ady=153&biw=785&bih=600&scr_x=0&scr_y=0&eid=44759837%2C44759876%2C44759927%2C31078362%2C44805098%2C44805336%2C31078301&oid=2&pvsid=4393891586021805&tmod=2033756163&uas=0&nvt=1&fc=896&brdim=0%2C0%2C0%2C0%2C800%2C0%2C800%2C600%2C800%2C600&vis=1&rsz=%7C%7ClE%7C&abl=CS&pfx=0&fu=0&bc=23&ifi=1&uci=a!1&fsb=1&xpc=xU06NEMvWE&p=http%3A//wp.com&dtd=285 - Failed to load resource: the server responded with a status of 403 ()

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Screenshots: Add an image for screenshot #1 (This is the interface of TypePad to Wordpress.)
The official readme.txt might help

tp2wp-assets-importer/typepad-to-wordpress.php 92% from 13 tests

The primary PHP file in "TypePad to Wordpress assets importer" version 1.0.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 ("tp2wp-assets-importer.php" instead of "typepad-to-wordpress.php")

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 plugin244 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP25438141
JavaScript13819103

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.06
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.15MB with 0.09MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png149.60KB54.08KB▼ 63.85%