84% 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 scored84%from 54 tests.

About plugin

  • Plugin page: advanced-export
  • Plugin version: 1.0.7
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.0
  • WordPress version: 6.3.1
  • First release: Sep 20, 2019
  • Latest release: May 26, 2022
  • Number of updates: 12
  • Update frequency: every 81.7 days
  • Top authors: addonspress (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /7,446 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.10MB] [CPU: ▼4.68ms] 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.57 ▲0.1140.81 ▼4.58
Dashboard /wp-admin3.41 ▲0.1046.76 ▼8.01
Posts /wp-admin/edit.php3.52 ▲0.1645.29 ▼2.03
Add New Post /wp-admin/post-new.php5.99 ▲0.1083.74 ▼4.08
Media Library /wp-admin/upload.php3.33 ▲0.1035.51 ▼0.08
Advanced Export /wp-admin/tools.php?page=advanced-export3.3033.01

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Advanced Export: Export WordPress Site Data Including Widget, Customizer & Media Files
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.27 ▼1.111.74 ▼0.1142.77 ▼2.21
Dashboard /wp-admin2,213 ▲255.86 ▲0.04101.91 ▼12.5842.59 ▼1.59
Posts /wp-admin/edit.php2,090 ▲42.00 ▼0.1835.49 ▼1.0330.64 ▼3.87
Add New Post /wp-admin/post-new.php1,517 ▼1617.67 ▼5.58691.14 ▼37.0860.93 ▲5.80
Media Library /wp-admin/upload.php1,392 ▲44.20 ▼0.0693.63 ▼2.8944.88 ▲1.75
Advanced Export /wp-admin/tools.php?page=advanced-export1,1831.7432.7434.82

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/advanced-export/advanced-export.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: advanced export, widget export, theme export, customizer export, demo export...

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

The main PHP file in "Advanced Export: Export WordPress Site Data Including Widget, Customizer & Media Files" ver. 1.0.7 adds more information about the plugin and also serves as the entry point for this plugin
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 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin780 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP11153522733
JavaScript15142
CSS1005

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin