90% widget-importer-exporter

Code Review | Widget Importer & Exporter

WordPress plugin Widget Importer & Exporter scored90%from 54 tests.

About plugin

  • Plugin page: widget-importer-e...
  • Plugin version: 1.6.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3
  • WordPress version: 6.3.1
  • First release: Jul 15, 2013
  • Latest release: Jul 27, 2023
  • Number of updates: 108
  • Update frequency: every 33.9 days
  • Top authors: stevengliebe (100%)

Code review

54 tests

User reviews

115 reviews

Install metrics

300,000+ active /4,685,889 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

This is a short check of server-side resources used by Widget Importer & Exporter
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0334.11 ▼7.09
Dashboard /wp-admin3.43 ▲0.1243.12 ▼6.62
Posts /wp-admin/edit.php3.54 ▲0.1846.52 ▼0.89
Add New Post /wp-admin/post-new.php6.01 ▲0.1280.85 ▼8.61
Media Library /wp-admin/upload.php3.35 ▲0.1235.16 ▼0.77
Widget Importer & Exporter /wp-admin/tools.php?page=widget-importer-exporter3.3230.18

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Widget Importer & Exporter
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.21 ▼1.161.52 ▼0.4636.16 ▼8.65
Dashboard /wp-admin2,214 ▲234.89 ▲0.02112.13 ▼1.8040.79 ▼4.48
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0135.25 ▲1.5529.90 ▼9.06
Add New Post /wp-admin/post-new.php1,546 ▲1118.10 ▼5.15646.80 ▼35.7756.42 ▼2.45
Media Library /wp-admin/upload.php1,395 ▲134.20 ▲0.0096.05 ▼6.4040.54 ▼3.75
Widget Importer & Exporter /wp-admin/tools.php?page=widget-importer-exporter8162.0727.8733.88

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

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

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 just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
The official readme.txt might help

widget-importer-exporter/widget-importer-exporter.php Passed 13 tests

The principal PHP file in "Widget Importer & Exporter" v. 1.6.1 is loaded by WordPress automatically on each request
28 characters long description:
Imports and exports widgets.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,018 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP7202475645
PO File498144318
CSS123750
JavaScript1215

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.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
No PNG images were found in this plugin