Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- The plugin did not install without errors
- > Warning in wp-content/plugins/wtg-csv-exporter/classes/class-wtgcsvexporter.php+413
count(): Parameter must be an array or an object that implements Countable
Server metrics [RAM: ▼1.95MB] [CPU: ▼53.27ms] Passed 4 tests
An overview of server-side resources used by WTG CSV Exporter Beta for WordPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.04 ▼1.42 | 4.21 ▼33.48 |
Dashboard /wp-admin | 2.06 ▼1.25 | 5.42 ▼44.07 |
Posts /wp-admin/edit.php | 2.06 ▼1.30 | 6.03 ▼41.78 |
Add New Post /wp-admin/post-new.php | 2.06 ▼3.83 | 5.43 ▼93.73 |
Media Library /wp-admin/upload.php | 2.06 ▼1.17 | 6.01 ▼27.89 |
Create Profiles (alpha) /wp-admin/admin.php?page=wtgcsvexporter_createbasicprofiles | 2.06 | 5.24 |
Basic Default Profiles /wp-admin/admin.php?page=wtgcsvexporter_allposts | 2.06 | 6.06 |
Plugin Dashboard /wp-admin/admin.php?page=wtgcsvexporter | 2.06 | 5.70 |
Server storage [IO: ▲3.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 82 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
wtgcsvexporter_formvalidation |
db_upgraded |
wtgcsvexporter_settings |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for WTG CSV Exporter Beta for WordPress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲96 | 13.67 ▼0.70 | 1.58 ▼0.16 | 41.94 ▼2.55 |
Dashboard /wp-admin | 2,237 ▲46 | 5.88 ▲0.98 | 102.07 ▼2.03 | 42.10 ▲0.21 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.01 ▲0.01 | 38.06 ▲3.61 | 35.55 ▲0.81 |
Add New Post /wp-admin/post-new.php | 1,567 ▲33 | 23.09 ▼0.19 | 592.36 ▼91.99 | 58.15 ▲3.82 |
Media Library /wp-admin/upload.php | 1,422 ▲40 | 4.22 ▼0.13 | 101.24 ▲1.57 | 45.08 ▲4.33 |
Create Profiles (alpha) /wp-admin/admin.php?page=wtgcsvexporter_createbasicprofiles | 1,082 | 2.12 | 37.08 | 26.52 |
Basic Default Profiles /wp-admin/admin.php?page=wtgcsvexporter_allposts | 1,395 | 2.25 | 41.78 | 30.47 |
Plugin Dashboard /wp-admin/admin.php?page=wtgcsvexporter | 3,681 | 11.32 | 203.15 | 90.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/wtg-csv-exporter/classes/class-wtgcsvexporter.php+413
count(): Parameter must be an array or an object that implements Countable
- This plugin did not uninstall successfully, leaving 8 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- wtgcsvexporter_formvalidation
- wtgcsvexporter_settings
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 180 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wtgcsvexporter
- > Warning in wp-content/plugins/wtg-csv-exporter/classes/class-wtgcsvexporter.php+413
count(): Parameter must be an array or an object that implements Countable
- > GET request to /wp-admin/admin.php?page=wtgcsvexporter_createbasicprofiles
- > Notice in wp-content/plugins/wtg-csv-exporter/views/createbasicprofiles.php+59
Undefined index: csvexportprofiles
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wtgcsvexporter_createbasicprofiles
- > Notice in wp-content/plugins/wtg-csv-exporter/views/createbasicprofiles.php+59
Trying to access array offset on value of type null
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wtgcsvexporter
- > User deprecated in wp-includes/functions.php+5453
Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wtgcsvexporter
- > Notice in wp-content/plugins/wtg-csv-exporter/classes/class-ui.php+146
Undefined index: tabs
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wtgcsvexporter
- > Warning in wp-content/plugins/wtg-csv-exporter/classes/class-ui.php+146
Invalid argument supplied for foreach()
- 20 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wtgcsvexporter
- > Notice in wp-content/plugins/wtg-csv-exporter/views/main.php+732
Undefined index: name
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 32× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/wtg-csv-exporter/arrays/settings_array.php
- > /wp-content/plugins/wtg-csv-exporter/classes/class-wpdb.php
- > /wp-content/plugins/wtg-csv-exporter/views/posts.php
- > /wp-content/plugins/wtg-csv-exporter/classes/class-phplibrary.php
- > /wp-content/plugins/wtg-csv-exporter/classes/class-files.php
- > /wp-content/plugins/wtg-csv-exporter/arrays/schedule_array.php
- > /wp-content/plugins/wtg-csv-exporter/classes/class-flags.php
- > /wp-content/plugins/wtg-csv-exporter/classes/class-view.php
- > /wp-content/plugins/wtg-csv-exporter/views/createbasicprofiles.php
- > /wp-content/plugins/wtg-csv-exporter/classes/class-updates.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WTGCSVEXPORTER_UI' not found in wp-content/plugins/wtg-csv-exporter/classes/class-forms.php:19
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wtgcsvexporter
- > Network (severe)
wp-content/plugins/wtgcsvexporter/css/notifications.css?ver=1.0.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wtgcsvexporter
- > Network (severe)
wp-content/plugins/wtgcsvexporter/css/admin.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=wtgcsvexporter
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
- > GET request to /wp-admin/admin.php?page=wtgcsvexporter
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
Optimizations
Plugin configuration 90% 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
These attributes need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== wtg-csv-exporter ===
) - Screenshots: Please add images for these screenshots: #1 (Screenshot one.), #2 (Screenshot two.), #3 (Screenshot three.)
wtg-csv-exporter/wtg-csv-exporter.php 92% from 13 tests
The main PHP script in "WTG CSV Exporter Beta for WordPress" version 0.0.4 is automatically included on every request by WordPress
The following require your attention:
- 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
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin10,796 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 37 | 2,470 | 7,865 | 8,810 |
PO File | 1 | 623 | 1,388 | 1,339 |
CSS | 2 | 93 | 42 | 615 |
JavaScript | 2 | 11 | 39 | 32 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 38.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 256.00 |
Average method complexity | 3.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 38 | |
▷ Abstract classes | 1 | 2.63% |
▷ Concrete classes | 37 | 97.37% |
▷ Final classes | 0 | 0.00% |
Methods | 537 | |
▷ Static methods | 5 | 0.93% |
▷ Public methods | 522 | 97.21% |
▷ Protected methods | 14 | 2.61% |
▷ Private methods | 1 | 0.19% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 22 | |
▷ Global constants | 20 | 90.91% |
▷ Class constants | 2 | 9.09% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
26 PNG files occupy 2.08MB with 1.94MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/video-icon.png | 29.27KB | 0.64KB | ▼ 97.82% |
images/validation_large.png | 61.75KB | 5.57KB | ▼ 90.98% |
images/trash-icon.png | 29.53KB | 1.05KB | ▼ 96.43% |
images/restricted_large.png | 59.16KB | 5.39KB | ▼ 90.89% |
images/add_large.png | 60.96KB | 5.47KB | ▼ 91.02% |