Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼1.08MB] [CPU: ▼172.11ms] Passed 4 tests
A check of server-side resources used by PDQ CSV
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 25.32 ▼1.22 |
Dashboard /wp-admin | 2.57 ▼0.49 | 13.63 ▼28.54 |
Posts /wp-admin/edit.php | 2.57 ▼0.53 | 12.75 ▼21.98 |
Add New Post /wp-admin/post-new.php | 2.57 ▼2.87 | 15.20 ▼625.33 |
Media Library /wp-admin/upload.php | 2.57 ▼0.43 | 11.78 ▼12.59 |
Debug info /wp-admin/admin.php?page=wp-pdq-csv-info | 3.04 | 27.62 |
Current exports /wp-admin/admin.php?page=wp-pdq-csv-current-exports | 3.05 | 20.73 |
Manage saved export settings /wp-admin/admin.php?page=wp-pdq-csv-manage | 3.04 | 23.65 |
Export data /wp-admin/admin.php?page=wp-pdq-csv | 3.06 | 23.34 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 65 new files
Database: 2 new tables, 1 new option
New tables |
---|
wp_pdqcsv_exports |
wp_pdqcsv_saved_export_settings |
New WordPress options |
---|
pdqcsv_activation_error |
Browser metrics Passed 4 tests
An overview of browser requirements for PDQ CSV
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,710 ▲109 | 15.62 ▲0.02 | 8.26 ▼2.06 | 70.80 ▼5.81 |
Dashboard /wp-admin | 2,974 ▲79 | 6.12 ▼0.02 | 113.79 ▼19.32 | 168.15 ▼6.72 |
Posts /wp-admin/edit.php | 2,781 ▲41 | 3.02 ▼0.22 | 63.59 ▲0.61 | 138.51 ▲5.12 |
Add New Post /wp-admin/post-new.php | 3,841 ▲113 | 18.81 ▲0.18 | 432.86 ▼12.50 | 155.47 ▲0.19 |
Media Library /wp-admin/upload.php | 1,794 ▲45 | 5.49 ▼0.02 | 137.72 ▼7.26 | 186.21 ▲0.67 |
Debug info /wp-admin/admin.php?page=wp-pdq-csv-info | 1,243 | 2.41 | 54.69 | 128.77 |
Current exports /wp-admin/admin.php?page=wp-pdq-csv-current-exports | 1,174 | 2.63 | 57.13 | 127.12 |
Manage saved export settings /wp-admin/admin.php?page=wp-pdq-csv-manage | 1,152 | 2.41 | 53.31 | 132.08 |
Export data /wp-admin/admin.php?page=wp-pdq-csv | 1,337 | 4.04 | 91.64 | 126.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/pdq-csv/pdq-csv.php+43
Undefined index: page
- The uninstall procedure has failed, leaving 1 option in the database
- pdqcsv_activation_error
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=wp-pdq-csv-current-exports
- > Notice in wp-content/plugins/pdq-csv/pdq-csv.php+43
Undefined index: page
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success
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 97% 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
Please fix the following attributes:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== pdq-csv ===
)
pdq-csv/pdq-csv.php Passed 13 tests
Analyzing the main PHP file in "PDQ CSV" version 1.0.0
32 characters long description:
A pretty darn quick CSV exporter
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
Everything looks great! No dangerous files found in this plugin2,702 lines of code in 55 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 254 | 367 | 1,142 |
JavaScript | 11 | 171 | 248 | 1,040 |
CSS | 15 | 62 | 13 | 350 |
HTML | 7 | 17 | 0 | 170 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 75 | |
▷ Named functions | 53 | 70.67% |
▷ Anonymous functions | 22 | 29.33% |
Constants | 16 | |
▷ Global constants | 16 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
6 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/jquery-ui/images/ui-icons_444444_256x240.png | 6.92KB | 4.18KB | ▼ 39.61% |
vendor/jquery-ui/images/ui-icons_555555_256x240.png | 6.91KB | 4.18KB | ▼ 39.47% |
vendor/jquery-ui/images/ui-icons_ffffff_256x240.png | 6.33KB | 4.18KB | ▼ 33.99% |
vendor/jquery-ui/images/ui-icons_cc0000_256x240.png | 4.51KB | 4.18KB | ▼ 7.28% |
vendor/jquery-ui/images/ui-icons_777777_256x240.png | 6.94KB | 4.18KB | ▼ 39.78% |