90% opml-importer

Code Review | OPML Importer

WordPress plugin OPML Importer scored90%from 54 tests.

About plugin

  • Plugin page: opml-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: Aug 21, 2023
  • Number of updates: 14
  • Update frequency: every 345.8 days
  • Top authors: githubsync (42.86%)nacin (28.57%)briancolinger (21.43%)Otto42 (14.29%)markjaquith (14.29%)

Code review

54 tests

User reviews

2 reviews

Install metrics

7,000+ active /388,945 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.26ms] Passed 4 tests

An overview of server-side resources used by OPML Importer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.02 ▼5.06
Dashboard /wp-admin3.33 ▲0.0346.64 ▼6.01
Posts /wp-admin/edit.php3.38 ▲0.0346.30 ▲4.43
Add New Post /wp-admin/post-new.php5.91 ▲0.0380.49 ▼3.64
Media Library /wp-admin/upload.php3.26 ▲0.0333.73 ▼2.31

Server storage [IO: ▲0.01MB] [DB: ▲0.61MB] Passed 3 tests

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

Browser metrics Passed 4 tests

OPML Importer: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2914.48 ▼0.271.64 ▼0.4637.58 ▼6.64
Dashboard /wp-admin2,200 ▲125.81 ▲0.92106.60 ▼2.3337.21 ▲1.28
Posts /wp-admin/edit.php2,089 ▼32.05 ▼0.0039.20 ▲0.1934.13 ▼1.43
Add New Post /wp-admin/post-new.php1,535 ▲523.36 ▲4.94649.84 ▲23.6263.75 ▲4.27
Media Library /wp-admin/upload.php1,385 ▼64.32 ▲0.0797.57 ▼2.9744.45 ▼0.65

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

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

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === opml-importer === )
You can look at the official readme.txt

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

The primary PHP file in "OPML Importer" version 0.3.2 is used by WordPress to initiate all plugin functionality
28 characters long description:
Import links in OPML format.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected190 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13724190

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity30.00
▷ Minimum class complexity30.00
▷ Maximum class complexity30.00
Average method complexity15.50
▷ Minimum method complexity7.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
There are no PNG files in this plugin