90% single-post-page-export

Code Review | Single Post/Page Export (WXR)

WordPress plugin Single Post/Page Export (WXR) scored90%from 54 tests.

About plugin

  • Plugin page: single-post-page-...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.4
  • WordPress version: 6.3.1
  • First release: Oct 28, 2023
  • Latest release: Oct 28, 2023
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: SS88_UK (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /10 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.06MB] [CPU: ▼3.23ms] Passed 4 tests

A check of server-side resources used by Single Post/Page Export (WXR)
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.10 ▲1.58
Dashboard /wp-admin3.37 ▲0.0647.26 ▲0.75
Posts /wp-admin/edit.php3.42 ▲0.0641.97 ▼5.77
Add New Post /wp-admin/post-new.php5.95 ▲0.0683.66 ▼8.82
Media Library /wp-admin/upload.php3.29 ▲0.0634.87 ▲0.92

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Single Post/Page Export (WXR)
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲1814.36 ▼0.001.72 ▼0.1943.95 ▲4.07
Dashboard /wp-admin2,195 ▲205.65 ▼0.0788.22 ▼16.0339.95 ▲2.72
Posts /wp-admin/edit.php2,104 ▲42.00 ▼0.0235.64 ▼3.6034.93 ▼2.74
Add New Post /wp-admin/post-new.php1,526 ▼023.79 ▲0.59660.41 ▼20.0546.88 ▼1.93
Media Library /wp-admin/upload.php1,397 ▼04.17 ▼0.0697.90 ▼1.2042.28 ▼2.54

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 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 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 96% from 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
5 plugin tags: page export, post export, export, wxr, xml

single-post-page-export/init.php 92% from 13 tests

The principal PHP file in "Single Post/Page Export (WXR)" v. 1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("single-post-page-export.php" instead of "init.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin271 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11068271

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity31.00
▷ Minimum class complexity31.00
▷ Maximum class complexity31.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods15.56%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin