89% export-without-shortcodes

Code Review | Export Without Shortcodes: convert to pure HTML the exported content

WordPress plugin Export Without Shortcodes: convert to pure HTML the exported content scored89%from 54 tests.

About plugin

  • Plugin page: export-without-sh...
  • Plugin version: 0.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Jun 17, 2021
  • Latest release: Aug 9, 2023
  • Number of updates: 19
  • Update frequency: every 41.2 days
  • Top authors: giuse (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /1,692 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Export Without Shortcodes: convert to pure HTML the exported content
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.63 ▲2.17
Dashboard /wp-admin3.32 ▼0.0249.78 ▼15.98
Posts /wp-admin/edit.php3.37 ▲0.0248.18 ▼3.80
Add New Post /wp-admin/post-new.php5.90 ▲0.0284.40 ▼15.78
Media Library /wp-admin/upload.php3.25 ▲0.0238.52 ▼2.40

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Export Without Shortcodes: convert to pure HTML the exported content
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.23 ▼0.131.86 ▲0.4143.86 ▲2.96
Dashboard /wp-admin2,198 ▲245.64 ▲0.1187.02 ▲1.0640.76 ▲1.09
Posts /wp-admin/edit.php2,097 ▼31.95 ▼0.0735.37 ▼1.8833.61 ▲0.47
Add New Post /wp-admin/post-new.php1,526 ▼023.15 ▼0.43642.67 ▼61.1758.48 ▲1.74
Media Library /wp-admin/upload.php1,403 ▲34.18 ▼0.1397.45 ▼13.7444.86 ▼1.68

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Donate link: Invalid URI found ("buymeacoffee.com/josem")
Please take inspiration from this readme.txt

export-without-shortcodes/export-without-shortcodes.php 92% from 13 tests

The main PHP file in "Export Without Shortcodes: convert to pure HTML the exported content" ver. 0.0.3 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Domain Path: The domain path folder was not found ("/languages/")

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
Good job! No executable or dangerous file extensions detected135 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP51024135

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.62
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin