10% wp-dump

Code Review | WP-Dump

WordPress plugin WP-Dump scored10%from 54 tests.

About plugin

  • Plugin page: wp-dump
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.5
  • WordPress version: 6.3.1
  • First release: Apr 7, 2013
  • Latest release: Apr 7, 2013
  • Number of updates: 3
  • Update frequency: every 3.0 days
  • Top authors: OvJ (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /2,573 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Warning in wp-content/plugins/wp-dump/wp-dump.php+73
    mkdir(): File exists

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

An overview of server-side resources used by WP-Dump
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0143.51 ▼6.61
Dashboard /wp-admin3.32 ▲0.0247.00 ▼1.52
Posts /wp-admin/edit.php3.37 ▲0.0155.95 ▲5.45
Add New Post /wp-admin/post-new.php5.90 ▲0.0198.78 ▼2.14
Media Library /wp-admin/upload.php3.25 ▲0.0139.42 ▲3.96

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WP-Dump
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.35 ▼0.851.78 ▼0.4649.41 ▲1.41
Dashboard /wp-admin2,221 ▲335.84 ▼0.22106.24 ▼2.8571.36 ▲30.89
Posts /wp-admin/edit.php2,110 ▲422.02 ▲0.0239.95 ▼2.0638.09 ▲1.98
Add New Post /wp-admin/post-new.php1,536 ▲1723.31 ▲0.34811.64 ▲124.94101.86 ▲25.69
Media Library /wp-admin/upload.php1,394 ▲64.22 ▼0.02104.05 ▼2.53107.48 ▲61.25

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-dump/list.inc.php
    • > /wp-content/plugins/wp-dump/wp-dump.php
    • > /wp-content/plugins/wp-dump/dump.inc.php
  • 15× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-dump/dump.inc.php on line 15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function mysql_connect() in wp-content/plugins/wp-dump/dump.inc.php:110
    • > PHP Warning
      Use of undefined constant DB_USER - assumed 'DB_USER' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-dump/dump.inc.php on line 105
    • > PHP Warning
      Use of undefined constant DB_NAME - assumed 'DB_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-dump/dump.inc.php on line 107
    • > PHP Warning
      Use of undefined constant DB_HOST - assumed 'DB_HOST' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-dump/dump.inc.php on line 104
    • > PHP Warning
      Use of undefined constant WP_DUMP_DATA_DIR - assumed 'WP_DUMP_DATA_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-dump/list.inc.php on line 3
    • > PHP Warning
      Use of undefined constant WP_DUMP_DATA_DUMP_DB - assumed 'WP_DUMP_DATA_DUMP_DB' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-dump/dump.inc.php on line 25
    • > PHP Warning
      Use of undefined constant WP_DUMP_DATA_DUMP_ZIP - assumed 'WP_DUMP_DATA_DUMP_ZIP' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-dump/dump.inc.php on line 26
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-dump/dump.inc.php on line 17
    • > PHP Warning
      file_put_contents(ABSPATHwp-content/maintenance.php): failed to open stream: No such file or directory in wp-content/plugins/wp-dump/dump.inc.php on line 15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Screenshot UI) image required
You can take inspiration from this readme.txt

wp-dump/wp-dump.php Passed 13 tests

The principal PHP file in "WP-Dump" v. 1.0 is loaded by WordPress automatically on each request
33 characters long description:
dump your WordPress installation.

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 detected260 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP45980260

PHP code Passed 2 tests

This is a very shot review of 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.29
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
5 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
wp-dump_128.png15.39KB6.07KB▼ 60.58%
wp-dump_64.png6.54KB2.91KB▼ 55.43%
wp-dump_16.png1.63KB0.80KB▼ 50.96%
screenshot-1.png17.41KB7.57KB▼ 56.51%
wp-dump_32.png3.02KB1.57KB▼ 48.09%