Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.71MB] [CPU: ▼4.65ms] Passed 4 tests
Analyzing server-side resources used by Import CSV, Excel, XML, JSON, SQL and multiple formats as posts or users (Feed2Post)
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.20 ▲0.73 | 44.21 ▼6.82 |
Dashboard /wp-admin | 4.03 ▲0.68 | 50.64 ▼20.97 |
Posts /wp-admin/edit.php | 4.08 ▲0.72 | 53.53 ▲5.61 |
Add New Post /wp-admin/post-new.php | 6.61 ▲0.72 | 96.11 ▲3.60 |
Media Library /wp-admin/upload.php | 3.95 ▲0.72 | 40.21 ▲6.07 |
Settings /wp-admin/edit.php?post_type=feed2post_feed&page=feed2post_options | 3.93 | 35.01 |
Feeds /wp-admin/edit.php?post_type=feed2post_feed | 4.00 | 40.95 |
Add /wp-admin/post-new.php?post_type=feed2post_feed | 4.15 | 47.00 |
Log file /wp-admin/edit.php?post_type=feed2post_feed&page=feed2post_log | 3.93 | 38.33 |
Server storage [IO: ▲7.54MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 1,296 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
feed2post_log_file |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Import CSV, Excel, XML, JSON, SQL and multiple formats as posts or users (Feed2Post)
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲41 | 14.32 ▲0.11 | 1.58 ▼0.32 | 41.86 ▼2.29 |
Dashboard /wp-admin | 2,230 ▲56 | 5.62 ▲0.06 | 88.86 ▼6.68 | 43.74 ▲5.20 |
Posts /wp-admin/edit.php | 2,135 ▲35 | 3.44 ▲1.47 | 72.14 ▲38.01 | 35.52 ▼1.10 |
Add New Post /wp-admin/post-new.php | 1,555 ▲20 | 23.27 ▼1.55 | 672.71 ▲38.83 | 49.81 ▼14.70 |
Media Library /wp-admin/upload.php | 1,435 ▲32 | 4.17 ▼0.02 | 99.70 ▼1.44 | 42.88 ▼1.56 |
Settings /wp-admin/edit.php?post_type=feed2post_feed&page=feed2post_options | 1,256 | 3.76 | 73.76 | 38.97 |
Feeds /wp-admin/edit.php?post_type=feed2post_feed | 1,095 | 3.49 | 44.50 | 27.84 |
Add /wp-admin/post-new.php?post_type=feed2post_feed | 1,519 | 2.48 | 51.76 | 49.73 |
Log file /wp-admin/edit.php?post_type=feed2post_feed&page=feed2post_log | 824 | 3.55 | 36.41 | 24.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- feed2post_log_file
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/feed2post-ircf/vendor/markbaker/matrix/buildPhar.php
- 585× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_URIScheme' not found in wp-content/plugins/feed2post-ircf/vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIScheme/mailto.php:12
- > PHP Fatal error
Uncaught Error: Interface 'PhpOffice\\PhpSpreadsheet\\Chart\\Renderer\\IRenderer' not found in wp-content/plugins/feed2post-ircf/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/Renderer/JpGraphRendererBase.php:27
- > PHP Fatal error
Trait 'PhpOffice\\PhpSpreadsheet\\Calculation\\ArrayEnabled' not found in wp-content/plugins/feed2post-ircf/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/DateTimeExcel/Days360.php on line 10
- > PHP Fatal error
Trait 'PhpOffice\\PhpSpreadsheet\\Calculation\\ArrayEnabled' not found in wp-content/plugins/feed2post-ircf/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Information/Value.php on line 13
- > PHP Fatal error
Trait 'PhpOffice\\PhpSpreadsheet\\Calculation\\ArrayEnabled' not found in wp-content/plugins/feed2post-ircf/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/TextData/Concatenate.php on line 12
- > PHP Fatal error
Uncaught Error: Class 'Feed2Post_Feed' not found in wp-content/plugins/feed2post-ircf/includes/feed/feed2post-csv.php:2
- > PHP Fatal error
Trait 'PhpOffice\\PhpSpreadsheet\\Calculation\\ArrayEnabled' not found in wp-content/plugins/feed2post-ircf/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/Exp.php on line 8
- > PHP Fatal error
Trait 'PhpOffice\\PhpSpreadsheet\\Calculation\\ArrayEnabled' not found in wp-content/plugins/feed2post-ircf/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Permutations.php on line 11
- > PHP Fatal error
Uncaught Error: Interface 'PhpOffice\\PhpSpreadsheet\\Cell\\IValueBinder' not found in wp-content/plugins/feed2post-ircf/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Cell/DefaultValueBinder.php:9
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_Strategy_Composite' not found in wp-content/plugins/feed2post-ircf/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Strategy/Core.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 26 tag instead of maximum 10
feed2post-ircf/feed2post.php 85% from 13 tests
The main PHP file in "Import CSV, Excel, XML, JSON, SQL and multiple formats as posts or users (Feed2Post)" ver. 1.21 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("feed2post-ircf.php" instead of "feed2post.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin124,926 lines of code in 1,091 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,009 | 24,009 | 60,027 | 118,277 |
Markdown | 31 | 1,037 | 0 | 3,104 |
JSON | 17 | 0 | 0 | 1,665 |
CSS | 4 | 56 | 28 | 588 |
PO File | 1 | 240 | 299 | 576 |
YAML | 7 | 69 | 2 | 288 |
XML | 7 | 22 | 2 | 162 |
JavaScript | 4 | 7 | 9 | 129 |
reStructuredText | 9 | 115 | 236 | 122 |
Twig | 1 | 1 | 0 | 14 |
INI | 1 | 1 | 1 | 1 |
PHP code 0% from 2 tests
A short review of cyclomatic complexity and code structure
It is recommended to fix the following
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 1,020)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 333)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 18.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,020.00 |
Average method complexity | 3.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 333.00 |
Code structure | ||
---|---|---|
Namespaces | 109 | |
Interfaces | 42 | |
Traits | 6 | |
Classes | 925 | |
▷ Abstract classes | 56 | 6.05% |
▷ Concrete classes | 869 | 93.95% |
▷ Final classes | 9 | 1.04% |
Methods | 6,967 | |
▷ Static methods | 1,865 | 26.77% |
▷ Public methods | 5,130 | 73.63% |
▷ Protected methods | 518 | 7.44% |
▷ Private methods | 1,319 | 18.93% |
Functions | 253 | |
▷ Named functions | 163 | 64.43% |
▷ Anonymous functions | 90 | 35.57% |
Constants | 1,609 | |
▷ Global constants | 11 | 0.68% |
▷ Class constants | 1,598 | 99.32% |
▷ Public constants | 1,402 | 87.73% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/marker-shadow.png | 0.60KB | 1.16KB | 0.00% |
assets/images/marker-icon.png | 1.43KB | 1.55KB | 0.00% |