78% wp-export-db-sql-file

Code Review | Easy WP Export DB

WordPress plugin Easy WP Export DB scored78%from 54 tests.

About plugin

  • Plugin page: wp-export-db-sql-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.1-5.5.1
  • WordPress version: 6.3.1
  • First release: Oct 16, 2020
  • Latest release: Oct 16, 2020
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: firdousi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /971 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Easy WP Export DB
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0739.62 ▼0.95
Dashboard /wp-admin3.38 ▲0.0749.23 ▲0.61
Posts /wp-admin/edit.php3.49 ▲0.1346.81 ▲2.60
Add New Post /wp-admin/post-new.php5.98 ▲0.0983.38 ▼9.65
Media Library /wp-admin/upload.php3.30 ▲0.0736.97 ▲2.92
Export DB /wp-admin/tools.php?page=export-db3.2731.02

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 22 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 Easy WP Export DB
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲13413.60 ▼0.765.69 ▲3.3044.99 ▼4.53
Dashboard /wp-admin2,217 ▲295.83 ▲0.95102.34 ▼19.6940.51 ▼4.66
Posts /wp-admin/edit.php2,100 ▲112.05 ▲0.0342.40 ▲7.5236.96 ▲4.30
Add New Post /wp-admin/post-new.php1,535 ▲220.99 ▼2.49676.45 ▼39.7862.17 ▲0.41
Media Library /wp-admin/upload.php1,396 ▲84.22 ▼0.0296.45 ▼18.6642.35 ▼5.57
Export DB /wp-admin/tools.php?page=export-db7912.1432.4326.66

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wp-export-db-sql-file/admin/partials/wp-export-db-sql-file-admin-display.php
    • > /wp-content/plugins/wp-export-db-sql-file/public/partials/wp-export-db-sql-file-public-display.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-export-db-sql-file/admin/class-wp-export-db-sql-file-admin.php:289

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 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Donate link: Please fix this invalid url: "github.com/abuzer"
The official readme.txt might help

wp-export-db-sql-file/wp-export-db-sql-file.php Passed 13 tests

The entry point to "Easy WP Export DB" version 1.0.0 is a PHP file that has certain tags in its header comment area
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin311 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12134572305
JavaScript24546
CSS2080

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity3.62
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity1.68
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods31
▷ Static methods26.45%
▷ Public methods2683.87%
▷ Protected methods00.00%
▷ Private methods516.13%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin