10% dotclear-importer

Code Review | DotClear Importer

WordPress plugin DotClear Importer scored10%from 54 tests.

About plugin

  • Plugin page: dotclear-importer
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.1
  • WordPress version: 6.3.1
  • First release: May 20, 2010
  • Latest release: Jul 12, 2018
  • Number of updates: 10
  • Update frequency: every 297.5 days
  • Top authors: nacin (50%)nbachiyski (30%)briancolinger (30%)Otto42 (20%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /6,486 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/dotclear-importer/dotclear-importer.php+97
    Methods with the same name as their class will not be constructors in a future version of PHP; Dotclear_Import has a deprecated constructor

Server metrics [RAM: ▼2.01MB] [CPU: ▼58.45ms] Passed 4 tests

A check of server-side resources used by DotClear Importer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.26 ▼1.486.17 ▼38.47
Dashboard /wp-admin2.28 ▼1.296.54 ▼50.52
Posts /wp-admin/edit.php2.28 ▼1.406.84 ▼44.79
Add New Post /wp-admin/post-new.php2.28 ▼3.875.74 ▼100.01
Media Library /wp-admin/upload.php2.28 ▼1.215.68 ▼34.97

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for DotClear Importer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.131.86 ▼0.2744.03 ▲0.16
Dashboard /wp-admin2,195 ▲185.63 ▲0.1087.92 ▼14.8142.08 ▼3.10
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0537.56 ▲1.5632.99 ▼4.22
Add New Post /wp-admin/post-new.php1,532 ▲123.08 ▼0.17680.37 ▼12.8762.11 ▲3.01
Media Library /wp-admin/upload.php1,397 ▼04.22 ▼0.06100.21 ▼5.6444.03 ▼1.34

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/dotclear-importer/dotclear-importer.php+97
    Methods with the same name as their class will not be constructors in a future version of PHP; Dotclear_Import has a deprecated constructor
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

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)
Good news, no errors were detected

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Donate link: Invalid url: ""
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === dotclear-importer === )
You can look at the official readme.txt

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

This is the main PHP file of "DotClear Importer" version 0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
74 characters long description:
Import categories, users, posts, comments, and links from a DotClear blog.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected504 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP19394504

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity54.00
▷ Minimum class complexity54.00
▷ Maximum class complexity54.00
Average method complexity3.30
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods23
▷ Static methods00.00%
▷ Public methods23100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin