94% export-all-posts-urls

Code Review | Export All Posts/Page URLs

WordPress plugin Export All Posts/Page URLs scored 94% from 54 tests.

About plugin

  • Plugin page: export-all-posts-...
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-5.8
  • WordPress version: 5.9.2
  • First release: Sep 2, 2021
  • Latest release: Mar 14, 2022
  • Number of updates: 10
  • Update frequency: every 19.5 days
  • Top authors: sivahtech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 199 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼295.45ms] Passed 4 tests

An overview of server-side resources used by Export All Posts/Page URLs
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0158.12 ▲5.49
Dashboard /wp-admin3.43 ▲0.0338.86 ▲6.31
Posts /wp-admin/edit.php3.66 ▲0.0241.23 ▲1.87
Add New Post /wp-admin/post-new.php6.90 ▼0.0799.25 ▼1,183.49
Media Library /wp-admin/upload.php3.31 ▲0.0123.59 ▼5.67

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Export All Posts/Page URLs: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,841 ▲9753.21 ▲37.156.58 ▲0.212.85 ▲0.65
Dashboard /wp-admin2,743 ▼11122.09 ▲15.83485.51 ▲348.85153.96 ▼6.98
Posts /wp-admin/edit.php2,735 ▲4445.45 ▲42.21346.54 ▲280.25135.59 ▼9.68
Add New Post /wp-admin/post-new.php1,648 ▼10441.69 ▲20.10664.91 ▲206.96157.27 ▲4.57
Media Library /wp-admin/upload.php1,551 ▼14422.81 ▲17.27400.21 ▲263.91182.17 ▼7.64

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller 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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/export-all-posts-urls/export-all-posts-urls.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/export-all-posts-urls/sh-export-post-settings.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
You can look at the official readme.txt

export-all-posts-urls/export-all-posts-urls.php 92% from 13 tests

The entry point to "Export All Posts/Page URLs" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 237 characters long)

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
There were no executable files found in this plugin592 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript8727273
PHP3627259
CSS31060

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
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%
Functions9
▷ Named functions9100.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
5 PNG files occupy 0.06MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/sort_asc.png0.16KB0.25KB0.00%
assets/screenshot-1.png28.75KB14.17KB▼ 50.71%
assets/Screenshot-2.png29.57KB14.50KB▼ 50.97%
assets/images/sort_desc.png0.15KB0.25KB0.00%
assets/images/sort_both.png0.20KB0.29KB0.00%