90% ttxml-importer

Code Review | TTXML Importer

WordPress plugin TTXML Importer scored90%from 54 tests.

About plugin

  • Plugin page: ttxml-importer
  • Plugin version: 2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.7
  • WordPress version: 6.3.1
  • First release: Dec 30, 2011
  • Latest release: Oct 27, 2013
  • Number of updates: 7
  • Update frequency: every 101.4 days
  • Top authors: ani2life (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /8,088 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.09MB] [CPU: ▼3.16ms] Passed 4 tests

A check of server-side resources used by TTXML Importer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0934.75 ▼6.17
Dashboard /wp-admin3.39 ▲0.0947.65 ▼8.42
Posts /wp-admin/edit.php3.51 ▲0.1550.45 ▲6.51
Add New Post /wp-admin/post-new.php5.98 ▲0.0999.36 ▲1.21
Media Library /wp-admin/upload.php3.32 ▲0.0837.74 ▲0.76

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for TTXML Importer
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.60 ▲0.131.72 ▼0.3138.24 ▼8.10
Dashboard /wp-admin2,206 ▲185.83 ▼0.1099.06 ▼2.3641.25 ▼3.08
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0239.64 ▲1.0436.85 ▼2.74
Add New Post /wp-admin/post-new.php1,547 ▲2618.11 ▼4.96591.99 ▼108.8968.07 ▲16.36
Media Library /wp-admin/upload.php1,388 ▲34.23 ▼0.1494.78 ▼20.5541.52 ▼9.26

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 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
4 plugin tags: importer, textcube, tistory, ttxml

ttxml-importer/ttxml-importer.php 92% from 13 tests

The entry point to "TTXML Importer" version 2.5 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 160 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin502 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP115250502

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity80.00
▷ Minimum class complexity80.00
▷ Maximum class complexity80.00
Average method complexity5.39
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin