90% custom-importer-exporter

Code Review | Custom Importer & Exporter

WordPress plugin Custom Importer & Exporter scored 90% from 54 tests.

About plugin

  • Plugin page: custom-importer-e...
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.8-4.9.8
  • WordPress version: 6.3.1
  • First release: Dec 14, 2018
  • Latest release: Dec 20, 2018
  • Number of updates: 6
  • Update frequency: every 1.0 days
  • Top authors: protechinc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 763 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
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Custom Importer & Exporter
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0231.70 ▼11.54
Dashboard /wp-admin3.34 ▲0.0442.27 ▼7.29
Posts /wp-admin/edit.php3.39 ▲0.0445.53 ▲1.43
Add New Post /wp-admin/post-new.php5.92 ▲0.0478.76 ▼19.00
Media Library /wp-admin/upload.php3.27 ▲0.0434.87 ▲1.50
Term /wp-admin/admin.php?page=term_io3.2527.99
Post /wp-admin/admin.php?page=post_type_io3.2430.46

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Custom Importer & Exporter
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲8113.30 ▼1.111.83 ▲0.1538.08 ▼2.66
Dashboard /wp-admin2,233 ▲454.87 ▼0.04112.22 ▲4.8042.77 ▲1.45
Posts /wp-admin/edit.php2,116 ▲272.02 ▲0.0135.67 ▼0.8730.97 ▼3.49
Add New Post /wp-admin/post-new.php1,541 ▲2723.57 ▲5.97657.51 ▲1.8353.99 ▼12.11
Media Library /wp-admin/upload.php1,418 ▲304.19 ▼0.0293.30 ▼10.3941.01 ▼3.57
Term /wp-admin/admin.php?page=term_io8442.0625.9431.75
Post /wp-admin/admin.php?page=post_type_io8492.0623.5625.93

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • 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)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

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 Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: export, term, custom post type, import

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

The principal PHP file in "Custom Importer & Exporter" v. 1.0 is loaded by WordPress automatically on each request
27 characters long description:
Import & Export Term, Posts

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 detected364 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP53340275
PO File1243257
CSS16032

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions125.00%
▷ Anonymous functions375.00%
Constants5
▷ Global constants5100.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
There were not PNG files found in your plugin