89% textpattern-importer

Code Review | TextPattern Importer

WordPress plugin TextPattern Importer scored89%from 54 tests.

About plugin

  • Plugin page: textpattern-importer
  • Plugin version: 0.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.2
  • WordPress version: 6.3.1
  • First release: May 20, 2010
  • Latest release: May 10, 2023
  • Number of updates: 10
  • Update frequency: every 473.8 days
  • Top authors: nacin (40%)githubsync (30%)briancolinger (30%)Otto42 (20%)nbachiyski (20%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /5,986 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼5.11ms] Passed 4 tests

Server-side resources used by TextPattern Importer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0939.81 ▼0.37
Dashboard /wp-admin3.39 ▲0.0948.75 ▲0.17
Posts /wp-admin/edit.php3.51 ▲0.1545.93 ▼8.23
Add New Post /wp-admin/post-new.php5.98 ▲0.0985.10 ▼10.88
Media Library /wp-admin/upload.php3.32 ▲0.0934.05 ▼0.96

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

TextPattern Importer: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.23 ▼0.381.66 ▼0.0242.68 ▼5.24
Dashboard /wp-admin2,198 ▲185.64 ▲0.0385.43 ▼11.1839.44 ▼6.49
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0839.23 ▼1.8435.93 ▲2.55
Add New Post /wp-admin/post-new.php1,526 ▼223.14 ▲0.10658.91 ▼16.8871.04 ▲5.11
Media Library /wp-admin/upload.php1,403 ▲34.19 ▼0.0192.24 ▼21.4143.14 ▼3.98

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
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Donate link: Invalid url: ""
  • Plugin Name: You should set the name of your plugin on the first line ( === textpattern-importer === )
The official readme.txt is a good inspiration

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

The main PHP file in "TextPattern Importer" ver. 0.3.2 adds more information about the plugin and also serves as the entry point for this plugin
77 characters long description:
Import categories, users, posts, comments, and links from a TextPattern blog.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin539 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP19875539

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.23
Average class complexity55.00
▷ Minimum class complexity55.00
▷ Maximum class complexity55.00
Average method complexity3.45
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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
No PNG images were found in this plugin