Benchmarks
Plugin footprint 48% 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.61MB] [CPU: ▼44.48ms] Passed 4 tests
Analyzing server-side resources used by CSV 2 POST
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.37 ▼0.09 | 13.47 ▼27.66 |
Dashboard /wp-admin | 3.40 ▲0.09 | 13.97 ▼37.77 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 16.33 ▼31.82 |
Add New Post /wp-admin/post-new.php | 3.40 ▼2.49 | 18.29 ▼80.67 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 14.84 ▼19.04 |
Create /wp-admin/post-new.php?post_type=wtgcsvcontent | 3.40 | 15.21 |
All Content Templates /wp-admin/edit.php?post_type=wtgcsvcontent | 3.40 | 15.38 |
Server storage [IO: ▲4.98MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 162 new files
Database: 2 new tables, 11 new options
New tables |
---|
wp_webtechglobal_schedule |
wp_c2pprojects |
New WordPress options |
---|
widget_recent-posts |
csv2post_installedversion |
csv2post_notifications |
csv2post_is_installed |
widget_recent-comments |
csv2post_installeddate |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for CSV 2 POST
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,858 ▲97 | 14.26 ▼0.23 | 1.66 ▼0.37 | 43.70 ▼3.31 |
Dashboard /wp-admin | 2,264 ▲84 | 5.58 ▼0.11 | 90.51 ▲1.97 | 39.65 ▼5.99 |
Posts /wp-admin/edit.php | 2,169 ▲90 | 1.95 ▼0.01 | 40.27 ▲2.27 | 38.11 ▲1.64 |
Add New Post /wp-admin/post-new.php | 1,458 ▼68 | 17.82 ▼5.79 | 629.81 ▼49.25 | 49.00 ▼19.09 |
Media Library /wp-admin/upload.php | 1,463 ▲63 | 4.15 ▼0.08 | 98.32 ▼5.49 | 43.47 ▲0.14 |
Create /wp-admin/post-new.php?post_type=wtgcsvcontent | 2,320 | 7.57 | 176.88 | 72.55 |
All Content Templates /wp-admin/edit.php?post_type=wtgcsvcontent | 1,130 | 1.93 | 35.99 | 33.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/csv-2-post/classes/class-csv2post.php+402
count(): Parameter must be an array or an object that implements Countable
- Zombie tables were found after uninstall: 2 tables
- wp_c2pprojects
- wp_webtechglobal_schedule
- This plugin does not fully uninstall, leaving 11 options in the database
- db_upgraded
- csv2post_settings
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- csv2post_is_installed
- theysaidso_admin_options
- widget_theysaidso_widget
- csv2post_installedversion
- csv2post_notifications
- ...
Smoke tests 25% 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)
These server-side errors were triggered
- 27 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=wtgcsvcontent
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-content/plugins/csv-2-post/classes/class-csv2post.php+402
count(): Parameter must be an array or an object that implements Countable
SRP 0% 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
Please fix the following
- 67× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/csv-2-post/views/lastpost.php
- > /wp-content/plugins/csv-2-post/views/infoprojectsdata.php
- > /wp-content/plugins/csv-2-post/views/infochecklist.php
- > /wp-content/plugins/csv-2-post/views/infodirectorysources.php
- > /wp-content/plugins/csv-2-post/views/infoallprojectshistory.php
- > /wp-content/plugins/csv-2-post/views/import.php
- > /wp-content/plugins/csv-2-post/classes/class-files.php
- > /wp-content/plugins/csv-2-post/classes/class-ui.php
- > /wp-content/plugins/csv-2-post/views/infocsvfiles.php
- > /wp-content/plugins/csv-2-post/classes/class-csv2post.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function status_header() in wp-content/plugins/csv-2-post/uninstall.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/csv-2-post/inc/fields/automationsettings.php:3
- > PHP Fatal error
Uncaught Error: Class 'CSV2POST_UI' not found in wp-content/plugins/csv-2-post/classes/class-forms.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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
Attributes that need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== csv-2-post ===
)
csv-2-post/csv-2-post.php 92% from 13 tests
The main PHP file in "CSV 2 POST" ver. 8.3.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, 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
No dangerous file extensions were detected22,596 lines of code in 92 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 77 | 5,576 | 12,892 | 18,562 |
JavaScript | 5 | 282 | 303 | 2,668 |
CSS | 9 | 119 | 110 | 1,362 |
INI | 1 | 1 | 0 | 4 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 30.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 360.00 |
Average method complexity | 3.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 2 | |
Classes | 87 | |
▷ Abstract classes | 1 | 1.15% |
▷ Concrete classes | 86 | 98.85% |
▷ Final classes | 0 | 0.00% |
Methods | 1,173 | |
▷ Static methods | 14 | 1.19% |
▷ Public methods | 1,155 | 98.47% |
▷ Protected methods | 11 | 0.94% |
▷ Private methods | 7 | 0.60% |
Functions | 23 | |
▷ Named functions | 23 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 60 | |
▷ Global constants | 59 | 98.33% |
▷ Class constants | 1 | 1.67% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
28 PNG files occupy 2.13MB with 1.94MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/question_large.png | 64.36KB | 5.79KB | ▼ 91.01% |
images/themeforest-light-background.png | 24.50KB | 4.47KB | ▼ 81.76% |
images/info-icon.png | 29.12KB | 1.12KB | ▼ 96.14% |
images/chat-icon.png | 29.26KB | 0.91KB | ▼ 96.89% |
images/warning_extra.png | 105.76KB | 10.47KB | ▼ 90.10% |