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
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼12.18ms] Passed 4 tests
Analyzing server-side resources used by Custom CSV Export Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 41.60 ▼6.09 |
Dashboard /wp-admin | 3.35 ▲0.00 | 52.28 ▼19.43 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 53.13 ▼3.17 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 86.50 ▼18.87 |
Media Library /wp-admin/upload.php | 3.28 ▲0.04 | 37.41 ▼4.33 |
Custom CSV /wp-admin/options-general.php?page=wp_ccsve_template | 3.23 | 33.16 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Custom CSV Export Plugin: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.23 ▼0.07 | 1.97 ▲0.13 | 44.02 ▼0.31 |
Dashboard /wp-admin | 2,196 ▲19 | 5.49 ▼0.14 | 88.87 ▼11.98 | 41.03 ▼7.10 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.99 ▲0.00 | 38.98 ▲0.03 | 35.22 ▼3.97 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.56 ▲0.52 | 694.13 ▲26.90 | 55.05 ▼13.38 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.19 ▲0.10 | 98.13 ▼15.60 | 42.49 ▼3.60 |
Custom CSV /wp-admin/options-general.php?page=wp_ccsve_template | 697 | 1.12 | 7.70 | 20.81 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% 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/options-general.php?page=wp_ccsve_template
- > Error in wp-admin/includes/template.php+1801
Uncaught ArgumentCountError: Too few arguments to function do_settings_fields(), 1 passed in wp-content/plugins/custom-csv-exporter/templates/settings.php on line 5 and exactly 2 expected in wp-admin/includes/template.php:1801
Stack trace:
#0 wp-content/plugins/custom-csv-exporter/templates/settings.php(5): do_settings_fields()
#1 wp-content/plugins/custom-csv-exporter/settings.php(118): include('/var/www/wordpr...')
#2 wp-includes/class-wp-hook.php(310): WP_CCSVE_Settings->plugin_settings_page()
#3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#4 wp-includes/plugin.php(517): WP_Hook->do_action()
#5 wp-admin/admin.php(259): do_action()
#6 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
#7 {main}
thrown
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
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/custom-csv-exporter/wp_ccsve.php:66
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/custom-csv-exporter/templates/settings.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== custom-csv-exporter ===
)
custom-csv-exporter/wp_ccsve.php 85% from 13 tests
This is the main PHP file of "Custom CSV Export Plugin" version .2..., providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("custom-csv-exporter.php" instead of "wp_ccsve.php")
- Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of ".2...")
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
There were no executable files found in this plugin211 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 54 | 73 | 211 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 3.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 10 | |
▷ Static methods | 2 | 20.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin