Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.26ms] Passed 4 tests
Analyzing server-side resources used by CSV to html
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.23 ▼1.01 |
Dashboard /wp-admin | 3.32 ▲0.02 | 43.57 ▼7.92 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 45.02 ▼0.64 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 81.74 ▼15.47 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.30 ▲2.93 |
CSV to HTML /wp-admin/tools.php?page=csv-to-html | 3.32 | 34.24 |
Server storage [IO: ▲0.91MB] [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: 162 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by CSV to html
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,035 ▲273 | 13.71 ▼1.00 | 10.87 ▲9.16 | 43.00 ▼1.51 |
Dashboard /wp-admin | 2,286 ▲105 | 5.71 ▲0.05 | 99.14 ▼5.12 | 37.73 ▼4.75 |
Posts /wp-admin/edit.php | 2,183 ▲83 | 2.10 ▲0.16 | 40.08 ▲4.58 | 33.56 ▲0.41 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 23.20 ▲0.09 | 681.38 ▼8.42 | 57.80 ▲2.16 |
Media Library /wp-admin/upload.php | 1,483 ▲86 | 4.36 ▲0.08 | 99.10 ▼1.33 | 41.47 ▼2.52 |
CSV to HTML /wp-admin/tools.php?page=csv-to-html | 4,909 | 2.30 | 38.99 | 32.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/csv-to-html/csvtohtml.php
- > /wp-content/plugins/csv-to-html/debug.php
- 75× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Box\\Spout\\Common\\Exception\\SpoutException' not found in wp-content/plugins/csv-to-html/spout-master/src/Spout/Writer/Exception/WriterException.php:12
- > PHP Fatal error
Uncaught Error: Class 'Box\\Spout\\Common\\Exception\\SpoutException' not found in wp-content/plugins/csv-to-html/spout-master/src/Spout/Common/Exception/UnsupportedTypeException.php:8
- > PHP Fatal error
Uncaught Error: Class 'Box\\Spout\\Writer\\Common\\Manager\\Style\\StyleRegistry' not found in wp-content/plugins/csv-to-html/spout-master/src/Spout/Writer/ODS/Manager/Style/StyleRegistry.php:11
- > PHP Fatal error
Uncaught Error: Class 'Box\\Spout\\Common\\Creator\\HelperFactory' not found in wp-content/plugins/csv-to-html/spout-master/src/Spout/Writer/ODS/Creator/HelperFactory.php:17
- > PHP Fatal error
Uncaught Error: Class 'Box\\Spout\\Reader\\ReaderAbstract' not found in wp-content/plugins/csv-to-html/spout-master/src/Spout/Reader/CSV/Reader.php:17
- > PHP Fatal error
Uncaught Error: Class 'Box\\Spout\\Writer\\Exception\\WriterException' not found in wp-content/plugins/csv-to-html/spout-master/src/Spout/Writer/Exception/WriterNotOpenedException.php:8
- > PHP Fatal error
Uncaught Error: Class 'Box\\Spout\\Reader\\ReaderAbstract' not found in wp-content/plugins/csv-to-html/spout-master/src/Spout/Reader/XLSX/Reader.php:18
- > PHP Fatal error
Uncaught Error: Class 'Box\\Spout\\Reader\\Exception\\ReaderException' not found in wp-content/plugins/csv-to-html/spout-master/src/Spout/Reader/Exception/SharedStringNotFoundException.php:8
- > PHP Fatal error
Uncaught Error: Class 'Box\\Spout\\Common\\Creator\\HelperFactory' not found in wp-content/plugins/csv-to-html/spout-master/src/Spout/Reader/XLSX/Creator/HelperFactory.php:14
- > PHP Fatal error
Uncaught Error: Class 'Box\\Spout\\Common\\Exception\\SpoutException' not found in wp-content/plugins/csv-to-html/spout-master/src/Spout/Common/Exception/IOException.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 90% 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
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
csv-to-html/csvtohtml.php 85% from 13 tests
The principal PHP file in "CSV to html" v. 2.0.6 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("csv-to-html.php" instead of "csvtohtml.php")
- Domain Path: The domain path folder was not found ("/lang")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected11,991 lines of code in 155 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 149 | 2,832 | 6,372 | 10,818 |
JavaScript | 1 | 200 | 94 | 742 |
CSS | 2 | 76 | 15 | 271 |
Markdown | 2 | 46 | 0 | 116 |
JSON | 1 | 0 | 0 | 44 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 130)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 8.54 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 535.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 130.00 |
Code structure | ||
---|---|---|
Namespaces | 49 | |
Interfaces | 14 | |
Traits | 1 | |
Classes | 131 | |
▷ Abstract classes | 13 | 9.92% |
▷ Concrete classes | 118 | 90.08% |
▷ Final classes | 0 | 0.00% |
Methods | 832 | |
▷ Static methods | 44 | 5.29% |
▷ Public methods | 554 | 66.59% |
▷ Protected methods | 181 | 21.75% |
▷ Private methods | 97 | 11.66% |
Functions | 8 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 8 | 100.00% |
Constants | 215 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 215 | 100.00% |
▷ Public constants | 215 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin