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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.33ms] Passed 4 tests
A check of server-side resources used by DB Tables Import/Export
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.21 ▲3.45 |
Dashboard /wp-admin | 3.34 ▼0.01 | 48.68 ▼10.03 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.24 ▲2.10 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 82.72 ▼4.85 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.62 ▲6.27 |
AT DB > EXPORT /wp-admin/tools.php?page=alter-db-tables | 3.29 | 32.24 |
AT DB > IMPORT /wp-admin/tools.php?page=alter_db_tables_csv_to_db_menu_page | 3.24 | 33.71 |
Server storage [IO: ▲0.90MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for DB Tables Import/Export
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲59 | 14.33 ▼0.20 | 1.92 ▲0.41 | 43.60 ▲2.91 |
Dashboard /wp-admin | 2,214 ▲43 | 5.61 ▲0.07 | 96.79 ▲8.00 | 42.96 ▲2.35 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 1.96 ▼0.06 | 36.29 ▲2.46 | 34.82 ▼3.80 |
Add New Post /wp-admin/post-new.php | 1,542 ▲4 | 22.93 ▼0.13 | 662.10 ▼21.37 | 52.69 ▲4.52 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.23 ▲0.00 | 102.36 ▼7.47 | 46.04 ▼0.59 |
AT DB > EXPORT /wp-admin/tools.php?page=alter-db-tables | 977 | 1.93 | 31.12 | 28.87 |
AT DB > IMPORT /wp-admin/tools.php?page=alter_db_tables_csv_to_db_menu_page | 1,248 | 2.48 | 44.86 | 48.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/db-tables-importexport/admin/alter-db-tables-admin-class.php on line 21
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/db-tables-importexport/admin/alter-db-tables-admin-class.php on line 21
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/db-tables-importexport/admin/views/export.php:19
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/db-tables-importexport/admin/alter-db-tables-admin-class.php on line 21
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 86% 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
These attributes need your attention:
- Screenshots: These screenshots require images: #1 (This screen shot is of the import section.), #2 (This screen shot is of the export section.)
db-tables-importexport/alter-db-tables.php 77% from 13 tests
The main PHP script in "DB Tables Import/Export" version 1.0.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 166 characters long)
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("db-tables-importexport.php" instead of "alter-db-tables.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
Everything looks great! No dangerous files found in this plugin3,413 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 243 | 721 | 946 |
JavaScript | 5 | 66 | 74 | 936 |
CSS | 4 | 49 | 21 | 564 |
SVG | 1 | 0 | 3 | 540 |
PO File | 1 | 103 | 130 | 294 |
Markdown | 1 | 74 | 0 | 133 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 9.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 2.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 7 | 13.21% |
▷ Public methods | 48 | 90.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 9.43% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.56MB with 0.35MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 239.71KB | 62.01KB | ▼ 74.13% |
admin/views/img/alter-tech-logo.png | 5.66KB | 3.10KB | ▼ 45.19% |
screenshot-1.png | 324.59KB | 94.66KB | ▼ 70.84% |