100% im-porter

Code Review | IM-porter

WordPress plugin IM-porter scored 100% from 54 tests.

About plugin

  • Plugin page: im-porter
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.0
  • WordPress version: 5.8.1
  • First release: Nov 26, 2013
  • Latest release: Sep 5, 2014
  • Number of updates: 5
  • Update frequency: every 57.4 days
  • Top authors: cfinke (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,020 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.10MB] [CPU: ▼142.08ms] Passed 4 tests

Server-side resources used by IM-porter
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.92 ▲0.2031.85 ▲1.19
Dashboard /wp-admin3.15 ▲0.0947.96 ▲3.55
Posts /wp-admin/edit.php3.26 ▲0.1549.48 ▲3.28
Add New Post /wp-admin/post-new.php5.50 ▲0.0794.46 ▼572.34
Media Library /wp-admin/upload.php3.09 ▲0.0936.44 ▼0.46

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by IM-porter
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲13115.92 ▼0.187.97 ▼4.2746.14 ▼12.11
Dashboard /wp-admin2,967 ▲415.91 ▼0.02141.46 ▼32.83112.88 ▼18.29
Posts /wp-admin/edit.php2,739 ▼02.70 ▲0.0079.96 ▲4.3195.91 ▼4.19
Add New Post /wp-admin/post-new.php1,604 ▲2318.85 ▼1.54396.83 ▼11.49116.39 ▼1.97
Media Library /wp-admin/upload.php1,807 ▼05.03 ▲0.02159.49 ▲0.49124.46 ▼0.79

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: chat, import, aim, chats, importer...

im-porter/im-porter.php Passed 13 tests

The entry point to "IM-porter" version 1.0.1 is a PHP file that has certain tags in its header comment area
39 characters long description:
Import chat transcripts into WordPress.

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 detected527 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP115244527

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity11.29
▷ Minimum class complexity2.00
▷ Maximum class complexity40.00
Average method complexity3.32
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods31
▷ Static methods1858.06%
▷ Public methods2270.97%
▷ Protected methods00.00%
▷ Private methods929.03%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin