99% advanced-exporter-importer

Code Review | Advanced Exporter Importer

WordPress plugin Advanced Exporter Importer scored 99% 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: 5.9.2
  • 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 / 350 total downloads

Benchmarks

Plugin footprint Passed 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.89MB] [CPU: ▼283.36ms] Passed 4 tests

This is a short check of server-side resources used by Advanced Exporter Importer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.49 ▲0.9860.48 ▲13.38
Dashboard /wp-admin4.33 ▲0.9237.95 ▲4.98
Posts /wp-admin/edit.php4.55 ▲0.9147.23 ▲11.20
Add New Post /wp-admin/post-new.php7.80 ▲0.83101.94 ▼1,154.32
Media Library /wp-admin/upload.php4.20 ▲0.9131.94 ▲4.71
Advanced Exporter Importer /wp-admin/tools.php?page=gpls-cpt-exporter-importer4.2532.43

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 55 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Advanced Exporter Importer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,793 ▲4916.22 ▲0.576.67 ▲0.332.21 ▼0.38
Dashboard /wp-admin2,902 ▲486.13 ▼0.11116.55 ▼15.71155.63 ▼4.95
Posts /wp-admin/edit.php2,701 ▲103.24 ▲0.0063.52 ▲1.03146.85 ▲2.07
Add New Post /wp-admin/post-new.php1,672 ▼3920.59 ▼0.92438.16 ▲4.51158.26 ▲4.01
Media Library /wp-admin/upload.php1,709 ▲85.58 ▲0.08139.82 ▼7.19195.10 ▲5.98
Advanced Exporter Importer /wp-admin/tools.php?page=gpls-cpt-exporter-importer3,1173.7278.00181.75

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Everything seems fine, however this is by no means an exhaustive 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 86% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: import, export, zip, media, custom post type...

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

"Advanced Exporter Importer" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 272 characters long)
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Requires PHP: Required version does not match the one declared in readme.txt ("5.4" instead of "5.6")
  • Main file name: Name the main plugin file the same as the plugin slug ("advanced-exporter-importer.php" instead of "gpls-cpt-exporter-importer.php")

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
There were no executable files found in this plugin6,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

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
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

It is recommended to compress PNG files in your plugin to 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
core/assets/dist/images/logo-icon-lg.png3.56KB2.72KB▼ 23.62%
core/assets/src/images/logo-icon-sm.png1.46KB0.72KB▼ 50.40%
core/assets/dist/images/logo-icon-md.png0.91KB0.96KB0.00%
core/assets/dist/images/logo-icon-sm.png0.62KB0.72KB0.00%
assets/src/images/sc.png5.93KB2.93KB▼ 50.54%