89% advanced-exporter-importer

Code Review | Advanced Exporter Importer

WordPress plugin Advanced Exporter Importer scored 89% from 54 tests.

About plugin

  • Plugin page: advanced-exporter...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3.0-5.6
  • WordPress version: 6.3.1
  • First release: Jan 28, 2021
  • Latest release: Jan 28, 2021
  • Number of updates: 6
  • Update frequency: every 30.8 days
  • Top authors: grandplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 692 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.92MB] [CPU: ▲4.84ms] Passed 4 tests

Server-side resources used by Advanced Exporter Importer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.39 ▲0.9345.62 ▲4.31
Dashboard /wp-admin4.21 ▲0.9156.24 ▲10.65
Posts /wp-admin/edit.php4.32 ▲0.9753.59 ▲5.97
Add New Post /wp-admin/post-new.php6.81 ▲0.9393.26 ▲0.71
Media Library /wp-admin/upload.php4.13 ▲0.9141.31 ▲8.35
Advanced Exporter Importer /wp-admin/tools.php?page=gpls-cpt-exporter-importer4.1642.53

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 55 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Advanced Exporter Importer
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲7413.35 ▼1.045.18 ▲3.2141.94 ▼8.23
Dashboard /wp-admin2,215 ▲274.91 ▲0.02103.66 ▼7.8236.19 ▼10.63
Posts /wp-admin/edit.php2,098 ▲92.05 ▲0.0635.28 ▼0.8432.76 ▼3.35
Add New Post /wp-admin/post-new.php1,521 ▲223.20 ▼0.03667.37 ▼34.4553.28 ▼1.46
Media Library /wp-admin/upload.php1,394 ▲34.27 ▼0.03101.78 ▲1.5041.88 ▼5.53
Advanced Exporter Importer /wp-admin/tools.php?page=gpls-cpt-exporter-importer2,0922.5146.1162.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

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)
Even though no errors were found, this is by no means an exhaustive test

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 issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: media, cpt, custom post type, zip, export...

advanced-exporter-importer/gpls-cpt-exporter-importer.php 69% from 13 tests

The main file in "Advanced Exporter Importer" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 272 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("advanced-exporter-importer.php" instead of "gpls-cpt-exporter-importer.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Requires PHP: Required version must match the one declared in readme.txt ("5.4" instead of "5.6")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected6,091 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
PHP231,1421,9155,177
PO File1190216467
JavaScript76967403
Sass15040
CSS3063
JSON1001

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.37
Average class complexity64.25
▷ Minimum class complexity1.00
▷ Maximum class complexity310.00
Average method complexity4.46
▷ Minimum method complexity1.00
▷ Maximum method complexity56.00
Code structure
Namespaces3
Interfaces0
Traits2
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods216
▷ Static methods115.09%
▷ Public methods20393.98%
▷ Protected methods10.46%
▷ Private methods125.56%
Functions7
▷ Named functions114.29%
▷ Anonymous functions685.71%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/dist/images/sc.png3.41KB2.93KB▼ 14.08%
assets/src/images/sc.png5.93KB2.93KB▼ 50.54%
core/assets/dist/images/logo-icon-md.png0.91KB0.96KB0.00%
core/assets/src/images/logo-icon-lg.png5.07KB2.72KB▼ 46.47%
core/assets/src/images/logo-icon-sm.png1.46KB0.72KB▼ 50.40%