83% wp-exporter-plus

Code Review | WP Exporter Plus

WordPress plugin WP Exporter Plus scored83%from 54 tests.

About plugin

  • Plugin page: wp-exporter-plus
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 25, 2018
  • Latest release: Nov 4, 2022
  • Number of updates: 12
  • Update frequency: every 133.1 days
  • Top authors: galaxyweblinks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,517 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼6.21ms] Passed 4 tests

This is a short check of server-side resources used by WP Exporter Plus
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0944.96 ▲4.37
Dashboard /wp-admin3.39 ▲0.0950.31 ▼7.56
Posts /wp-admin/edit.php3.44 ▲0.0951.75 ▼1.65
Add New Post /wp-admin/post-new.php5.97 ▲0.0886.77 ▼15.76
Media Library /wp-admin/upload.php3.31 ▲0.0835.16 ▲0.13

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for WP Exporter Plus
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.35 ▼0.031.83 ▲0.2343.91 ▼5.60
Dashboard /wp-admin2,200 ▲265.52 ▼0.1283.98 ▼9.8938.68 ▼7.73
Posts /wp-admin/edit.php2,115 ▲122.01 ▲0.0239.18 ▼0.2134.37 ▼4.00
Add New Post /wp-admin/post-new.php1,528 ▼023.62 ▲0.63664.11 ▲54.2859.39 ▲6.30
Media Library /wp-admin/upload.php1,402 ▲24.22 ▼0.0197.96 ▼0.4747.86 ▲4.92

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 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 following issues need your attention
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-exporter-plus/wp_exporter_plus.php
    • > /wp-content/plugins/wp-exporter-plus/export_functions.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Requires at least: Invalid plugin version format
  • Requires php: Invalid plugin version format
The official readme.txt is a good inspiration

wp-exporter-plus/wp_exporter_plus.php 85% from 13 tests

Analyzing the main PHP file in "WP Exporter Plus" version 3.0
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-exporter-plus.php" instead of "wp_exporter_plus.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected526 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP34882500
CSS10026

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
4 PNG files occupy 0.11MB with 0.05MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/csv.png0.36KB0.33KB▼ 7.84%
UserExport.png37.72KB21.15KB▼ 43.93%
Dashboard Widget.png19.56KB6.28KB▼ 67.88%
ProductExport.png54.40KB27.08KB▼ 50.21%