Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼16.17ms] Passed 4 tests
Analyzing server-side resources used by CSV Import and Exporter
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 39.99 ▼5.29 |
Dashboard /wp-admin | 3.34 ▼0.00 | 50.29 ▼19.68 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 51.61 ▼0.71 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 85.87 ▼38.98 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 39.64 ▲3.44 |
CSV Import /wp-admin/tools.php?page=wp-csv-importer | 3.39 | 36.00 |
CSV Export /wp-admin/tools.php?page=csv-import-and-exporter | 3.31 | 36.92 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by CSV Import and Exporter
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲64 | 14.41 ▲0.05 | 2.06 ▼0.08 | 43.91 ▼0.65 |
Dashboard /wp-admin | 2,206 ▲29 | 5.61 ▲0.01 | 94.67 ▲4.66 | 43.20 ▲0.17 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 1.99 ▼0.09 | 33.09 ▼8.75 | 34.67 ▼4.43 |
Add New Post /wp-admin/post-new.php | 1,541 ▲10 | 18.29 ▼4.71 | 638.10 ▲9.88 | 62.70 ▲9.44 |
Media Library /wp-admin/upload.php | 1,408 ▲11 | 4.18 ▲0.05 | 102.24 ▼10.37 | 44.53 ▼3.09 |
CSV Import /wp-admin/tools.php?page=wp-csv-importer | 807 | 2.03 | 24.06 | 31.21 |
CSV Export /wp-admin/tools.php?page=csv-import-and-exporter | 1,660 | 2.13 | 35.20 | 41.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- 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 | 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 | 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
Almost there! Just fix the following items
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_types() in wp-content/plugins/csv-import-and-exporter/admin/admin.php:6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/csv-import-and-exporter/admin/setting.php:4
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/csv-import-and-exporter/import/rs-csv-importer.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/csv-import-and-exporter/csv-import-and-exporter.php:18
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/csv-import-and-exporter/admin/index.php:2
- > PHP Warning
require_once(ABSPATHwp-admin/includes/import.php): failed to open stream: No such file or directory in wp-content/plugins/csv-import-and-exporter/import/rs-csv-importer.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses() in wp-content/plugins/csv-import-and-exporter/admin/download.php:303
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/import.php' (include_path='.:/usr/share/php') in wp-content/plugins/csv-import-and-exporter/import/rs-csv-importer.php on line 12
- > PHP Warning
Use of undefined constant CSVIAE_PLUGIN_DIR - assumed 'CSVIAE_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/csv-import-and-exporter/admin/admin.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Requires at least: Version not formatted correctly
- Screenshots: A description for screenshot #2 is missing in csv-import-and-exporter/assets to your readme.txt
csv-import-and-exporter/csv-import-and-exporter.php 85% from 13 tests
The primary PHP file in "CSV Import and Exporter" version 1.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 203 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected2,434 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 216 | 377 | 1,288 |
CSS | 2 | 51 | 68 | 538 |
PO File | 4 | 149 | 61 | 439 |
JavaScript | 2 | 39 | 37 | 169 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 24.33 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 3.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 1 | 16.67% |
▷ Concrete classes | 5 | 83.33% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 2 | 3.64% |
▷ Public methods | 49 | 89.09% |
▷ Protected methods | 6 | 10.91% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 9 | |
▷ Global constants | 5 | 55.56% |
▷ Class constants | 4 | 44.44% |
▷ Public constants | 4 | 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
13 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
css/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/images/ui-icons_888888_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |