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
Install script ran successfully
Server metrics [RAM: ▲0.46MB] [CPU: ▲2.51ms] Passed 4 tests
Server-side resources used by Simple CSV Exporter
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.46 | 44.81 ▲4.52 |
Dashboard /wp-admin | 3.77 ▲0.46 | 54.33 ▲1.21 |
Posts /wp-admin/edit.php | 3.88 ▲0.52 | 57.15 ▲6.62 |
Add New Post /wp-admin/post-new.php | 6.35 ▲0.46 | 90.63 ▼0.94 |
Media Library /wp-admin/upload.php | 3.69 ▲0.46 | 39.34 ▲5.25 |
CSV Export /wp-admin/tools.php?page=simple_csv_exporter | 3.78 | 36.55 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 131 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Simple CSV Exporter: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.14 ▼1.22 | 2.09 ▲0.43 | 41.43 ▼2.71 |
Dashboard /wp-admin | 2,207 ▲19 | 5.81 ▼0.08 | 93.68 ▼9.02 | 39.19 ▼0.04 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.13 ▲0.13 | 39.49 ▲0.37 | 33.80 ▼0.17 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.06 ▲5.65 | 640.60 ▼38.04 | 54.72 ▼3.13 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.18 ▼0.14 | 94.19 ▼6.19 | 40.19 ▼10.28 |
CSV Export /wp-admin/tools.php?page=simple_csv_exporter | 846 | 2.03 | 23.16 | 27.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
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
- 57× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Container\\ContainerExceptionInterface' not found in wp-content/plugins/simple-csv-exporter/vendor/psr/container/src/NotFoundExceptionInterface.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function HAMWORKS\\WP\\Simple_CSV_Exporter\\add_action() in wp-content/plugins/simple-csv-exporter/src/Admin_UI.php:35
- > PHP Fatal error
Uncaught Error: Class 'DI\\Container' not found in wp-content/plugins/simple-csv-exporter/vendor/php-di/php-di/src/CompiledContainer.php:25
- > PHP Fatal error
Uncaught Error: Interface 'DI\\Definition\\Helper\\DefinitionHelper' not found in wp-content/plugins/simple-csv-exporter/vendor/php-di/php-di/src/Definition/Helper/CreateDefinitionHelper.php:18
- > PHP Fatal error
Uncaught Error: Interface 'DI\\Definition\\Source\\DefinitionSource' not found in wp-content/plugins/simple-csv-exporter/vendor/php-di/php-di/src/Definition/Source/SourceCache.php:14
- > PHP Fatal error
Uncaught Error: Interface 'DI\\Definition\\Definition' not found in wp-content/plugins/simple-csv-exporter/vendor/php-di/php-di/src/Definition/ArrayDefinition.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Invoker\\ParameterResolver\\ParameterResolver' not found in wp-content/plugins/simple-csv-exporter/vendor/php-di/invoker/src/ParameterResolver/DefaultValueResolver.php:13
- > PHP Fatal error
Uncaught Error: Class 'DI\\Definition\\Resolver\\ObjectCreator' not found in wp-content/plugins/simple-csv-exporter/vendor/php-di/php-di/src/Definition/Resolver/InstanceInjector.php:18
- > PHP Fatal error
Uncaught Error: Interface 'DI\\Definition\\Resolver\\DefinitionResolver' not found in wp-content/plugins/simple-csv-exporter/vendor/php-di/php-di/src/Definition/Resolver/EnvironmentVariableResolver.php:16
- > PHP Fatal error
Uncaught Error: Interface 'DI\\Definition\\Definition' not found in wp-content/plugins/simple-csv-exporter/vendor/php-di/php-di/src/Definition/ValueDefinition.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: export, csv
simple-csv-exporter/simple-csv-exporter.php 85% from 13 tests
The primary PHP file in "Simple CSV Exporter" version 2.0.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected7,818 lines of code in 122 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 114 | 1,569 | 3,091 | 6,906 |
Markdown | 5 | 281 | 0 | 581 |
JSON | 1 | 0 | 0 | 299 |
Bourne Shell | 2 | 8 | 0 | 32 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 210)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 11.16 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 303.00 |
Average method complexity | 3.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 210.00 |
Code structure | ||
---|---|---|
Namespaces | 25 | |
Interfaces | 16 | |
Traits | 0 | |
Classes | 86 | |
▷ Abstract classes | 2 | 2.33% |
▷ Concrete classes | 84 | 97.67% |
▷ Final classes | 2 | 2.38% |
Methods | 442 | |
▷ Static methods | 39 | 8.82% |
▷ Public methods | 353 | 79.86% |
▷ Protected methods | 21 | 4.75% |
▷ Private methods | 68 | 15.38% |
Functions | 36 | |
▷ Named functions | 13 | 36.11% |
▷ Anonymous functions | 23 | 63.89% |
Constants | 12 | |
▷ Global constants | 3 | 25.00% |
▷ Class constants | 9 | 75.00% |
▷ Public constants | 7 | 77.78% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin