Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼0.82ms] Passed 4 tests
A check of server-side resources used by Export Customers Data
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 42.56 ▼1.16 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.72 ▲0.17 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.35 ▲5.22 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 93.26 ▼3.63 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.96 ▲1.36 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Export Customers Data
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.27 ▼0.08 | 1.68 ▼0.27 | 42.29 ▼6.75 |
Dashboard /wp-admin | 2,198 ▲24 | 5.63 ▲0.06 | 91.87 ▼7.94 | 42.20 ▲3.93 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.02 ▲0.07 | 41.19 ▼0.70 | 35.30 ▼0.27 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.03 ▼0.11 | 655.55 ▲38.25 | 61.51 ▲6.72 |
Media Library /wp-admin/upload.php | 1,400 ▲9 | 4.26 ▲0.08 | 98.91 ▼5.00 | 44.65 ▼1.99 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% 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 50% 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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/export-customers-data/inc/wcde_settings.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: wordpress csv export, csv, import, meta data, user export
export-customers-data/index.php 77% from 13 tests
This is the main PHP file of "Export Customers Data" version 1.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Domain Path: The domain path is invalid: folder "/languages/" does not exist
- Main file name: Name the main plugin file the same as the plugin slug ("export-customers-data.php" instead of "index.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected13,579 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 1,203 | 8 | 9,031 |
JavaScript | 2 | 858 | 326 | 3,363 |
PHP | 4 | 296 | 98 | 1,185 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 103.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 194.00 |
Average method complexity | 5.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 11 | 22.45% |
▷ Public methods | 31 | 63.27% |
▷ Protected methods | 14 | 28.57% |
▷ Private methods | 4 | 8.16% |
Functions | 12 | |
▷ Named functions | 11 | 91.67% |
▷ Anonymous functions | 1 | 8.33% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/woo.png | 5.93KB | 3.17KB | ▼ 46.59% |