94% advanced-export

Code Review | Advanced Export: Export WordPress Site Data Including Widget, Customizer & Media Files

WordPress plugin Advanced Export: Export WordPress Site Data Including Widget, Customizer & Media Files scored 94% from 54 tests.

About plugin

  • Plugin page: advanced-export
  • Plugin version: 1.0.6
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.9
  • WordPress version: 5.9.2
  • First release: Sep 20, 2019
  • Latest release: Feb 4, 2022
  • Number of updates: 11
  • Update frequency: every 79.0 days
  • Top authors: addonspress (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active / 4,398 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
Install script ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼291.14ms] Passed 4 tests

An overview of server-side resources used by Advanced Export: Export WordPress Site Data Including Widget, Customizer & Media Files
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0258.50 ▲0.55
Dashboard /wp-admin3.44 ▲0.0338.39 ▼3.72
Posts /wp-admin/edit.php3.66 ▲0.0243.95 ▲2.66
Add New Post /wp-admin/post-new.php6.90 ▼0.07102.58 ▼1,164.03
Media Library /wp-admin/upload.php3.31 ▲0.0228.48 ▲3.62
Advanced Export /wp-admin/tools.php?page=advanced-export3.2834.56

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Advanced Export: Export WordPress Site Data Including Widget, Customizer & Media Files
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,788 ▲3015.18 ▼0.466.15 ▼0.292.28 ▼0.33
Dashboard /wp-admin2,897 ▲366.14 ▼0.12121.08 ▼12.08154.36 ▼10.16
Posts /wp-admin/edit.php2,696 ▲53.24 ▲0.0160.30 ▼2.18135.77 ▼60.49
Add New Post /wp-admin/post-new.php1,776 ▲11521.69 ▲4.95444.47 ▼7.82152.02 ▼4.04
Media Library /wp-admin/upload.php1,706 ▲115.52 ▲0.03138.27 ▼4.99187.30 ▼11.14
Advanced Export /wp-admin/tools.php?page=advanced-export1,4852.7371.33113.47

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/advanced-export/advanced-export.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: export, demo export, customizer export, widget export, theme export...

advanced-export/advanced-export.php Passed 13 tests

The primary PHP file in "Advanced Export: Export WordPress Site Data Including Widget, Customizer & Media Files" version 1.0.6 is used by WordPress to initiate all plugin functionality
73 characters long description:
Advanced Export with Options to Export Widget, Customizer and Media Files

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
There were no executable files found in this plugin780 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP11153522733
JavaScript15142
CSS1005

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity6.33
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity2.28
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods25
▷ Static methods312.00%
▷ Public methods2080.00%
▷ Protected methods00.00%
▷ Private methods520.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.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
No PNG images were found in this plugin