Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▲3.61ms] Passed 4 tests
This is a short check of server-side resources used by PubyDoc - Data Tables and Charts
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 46.06 ▲0.02 |
Dashboard /wp-admin | 3.53 ▲0.23 | 54.18 ▼5.41 |
Posts /wp-admin/edit.php | 3.64 ▲0.29 | 67.35 ▲13.00 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.23 | 109.20 ▲11.62 |
Media Library /wp-admin/upload.php | 3.45 ▲0.23 | 46.59 ▲8.21 |
Add Table /wp-admin/admin.php?page=pyt-tables&tab=tables-new | 3.63 | 64.07 |
All Tables /wp-admin/admin.php?page=pyt-tables&tab=tables | 3.55 | 56.04 |
Settings /wp-admin/admin.php?page=pyt-tables&tab=settings | 3.55 | 51.10 |
Diagrams /wp-admin/admin.php?page=pyt-tables&tab=diagrams | 3.87 | 59.22 |
Server storage [IO: ▲44.24MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
It is recommended to fix the following issues
- Try to limit filesystem usage to 25MB (currently using 44.24MB)
Filesystem: 1,180 new files
Database: 3 new tables, 10 new options
New tables |
---|
wp_pyt_modules |
wp_pyt_tables |
wp_pyt_diagrams |
New WordPress options |
---|
wp_pyt_db_version |
pyt_plugin_activation_errors |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
wp_pyt_db_installed |
theysaidso_admin_options |
pyt_plug_was_used |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for PubyDoc - Data Tables and Charts
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲36 | 14.65 ▼0.13 | 1.72 ▼0.24 | 40.28 ▼1.16 |
Dashboard /wp-admin | 2,245 ▲39 | 4.87 ▲0.08 | 102.37 ▼14.70 | 37.29 ▼7.62 |
Posts /wp-admin/edit.php | 2,125 ▲33 | 2.01 ▲0.02 | 39.66 ▲4.77 | 32.78 ▼0.51 |
Add New Post /wp-admin/post-new.php | 1,563 ▲44 | 23.27 ▲0.09 | 630.63 ▼16.55 | 54.97 ▲8.32 |
Media Library /wp-admin/upload.php | 1,421 ▲33 | 4.22 ▲0.10 | 113.51 ▲4.42 | 43.00 ▼2.33 |
Add Table /wp-admin/admin.php?page=pyt-tables&tab=tables-new | 1,727 | 4.21 | 73.59 | 108.43 |
All Tables /wp-admin/admin.php?page=pyt-tables&tab=tables | 1,596 | 4.68 | 112.29 | 42.04 |
Settings /wp-admin/admin.php?page=pyt-tables&tab=settings | 1,231 | 3.91 | 64.59 | 38.37 |
Diagrams /wp-admin/admin.php?page=pyt-tables&tab=diagrams | 3,050 | 11.91 | 277.25 | 110.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_pyt_tables
- wp_pyt_diagrams
- This plugin did not uninstall successfully, leaving 8 options in the database
- db_upgraded
- pyt_plug_was_used
- pyt_plugin_activation_errors
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
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)
Good news, no errors were detected
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
Almost there! Just fix the following items
- 84× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/pubydoc-data-tables-and-charts/common/lib/TCPDF/examples/example_028.php
- > /wp-content/plugins/pubydoc-data-tables-and-charts/common/lib/TCPDF/examples/example_011.php
- > /wp-content/plugins/pubydoc-data-tables-and-charts/common/lib/TCPDF/examples/example_038.php
- > /wp-content/plugins/pubydoc-data-tables-and-charts/common/lib/TCPDF/examples/barcodes/example_2d_qrcode_png.php
- > /wp-content/plugins/pubydoc-data-tables-and-charts/common/lib/TCPDF/examples/example_019.php
- > /wp-content/plugins/pubydoc-data-tables-and-charts/common/lib/TCPDF/examples/barcodes/example_2d_pdf417_svg.php
- > /wp-content/plugins/pubydoc-data-tables-and-charts/common/lib/TCPDF/examples/example_040.php
- > /wp-content/plugins/pubydoc-data-tables-and-charts/common/lib/TCPDF/examples/example_013.php
- > /wp-content/plugins/pubydoc-data-tables-and-charts/common/lib/TCPDF/examples/example_046.php
- > /wp-content/plugins/pubydoc-data-tables-and-charts/common/lib/TCPDF/examples/barcodes/example_2d_pdf417_png.php
- 241× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Reader\\BaseReader' not found in wp-content/plugins/pubydoc-data-tables-and-charts/common/lib/PhpOffice/PhpSpreadsheet/Reader/Xml.php:26
- > PHP Fatal error
Uncaught Error: Class 'ModelPyt' not found in wp-content/plugins/pubydoc-data-tables-and-charts/modules/tables/models/cells.php:2
- > PHP Fatal error
Uncaught Error: Class 'ViewPyt' not found in wp-content/plugins/pubydoc-data-tables-and-charts/modules/tables/views/tables.php:2
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Reader\\Xlsx\\BaseParserClass' not found in wp-content/plugins/pubydoc-data-tables-and-charts/common/lib/PhpOffice/PhpSpreadsheet/Reader/Xlsx/ColumnAndRowAttributes.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function bcadd() in wp-content/plugins/pubydoc-data-tables-and-charts/common/lib/TCPDF/tcpdf_barcodes_1d.php:2080
- > PHP Fatal error
Uncaught Error: Interface 'PhpOffice\\PhpSpreadsheet\\RichText\\ITextElement' not found in wp-content/plugins/pubydoc-data-tables-and-charts/common/lib/PhpOffice/PhpSpreadsheet/RichText/TextElement.php:5
- > PHP Fatal error
Uncaught Error: Class 'BaseObjectPyt' not found in wp-content/plugins/pubydoc-data-tables-and-charts/classes/view.php:2
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical\\Distributions\\GammaBase' not found in wp-content/plugins/pubydoc-data-tables-and-charts/common/lib/PhpOffice/PhpSpreadsheet/Calculation/Statistical/Distributions/Gamma.php:8
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Reader\\Xlsx\\BaseParserClass' not found in wp-content/plugins/pubydoc-data-tables-and-charts/common/lib/PhpOffice/PhpSpreadsheet/Reader/Xlsx/SheetViewOptions.php:8
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Writer\\Xlsx\\WriterPart' not found in wp-content/plugins/pubydoc-data-tables-and-charts/common/lib/PhpOffice/PhpSpreadsheet/Writer/Xlsx/Drawing.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 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
6 plugin tags: spreadsheet, excell, table builder, data table, charts...
pubydoc-data-tables-and-charts/publish-your-table.php 77% from 13 tests
The primary PHP file in "PubyDoc - Data Tables and Charts" version 2.0.5 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Domain Path: The domain path folder does not exist ("/languages")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("pubydoc-data-tables-and-charts.php" instead of "publish-your-table.php")
Code Analysis 0% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
These items require your attention
- Do not include executable or dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/pubydoc-data-tables-and-charts/common/lib/TCPDF/examples/data/cert/tcpdf.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 789 | 19,493 | 56,658 | 136,482 |
JavaScript | 62 | 830 | 451 | 11,961 |
SVG | 4 | 1 | 1 | 4,553 |
CSS | 42 | 185 | 145 | 3,987 |
Markdown | 7 | 296 | 0 | 753 |
JSON | 3 | 0 | 0 | 196 |
XML | 3 | 15 | 2 | 73 |
PHP code 0% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 4,391)
- Please reduce cyclomatic complexity of methods to less than 100 (currently 502)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 35.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4,391.00 |
Average method complexity | 4.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 502.00 |
Code structure | ||
---|---|---|
Namespaces | 71 | |
Interfaces | 10 | |
Traits | 0 | |
Classes | 532 | |
▷ Abstract classes | 33 | 6.20% |
▷ Concrete classes | 499 | 93.80% |
▷ Final classes | 2 | 0.40% |
Methods | 5,548 | |
▷ Static methods | 1,697 | 30.59% |
▷ Public methods | 4,173 | 75.22% |
▷ Protected methods | 479 | 8.63% |
▷ Private methods | 896 | 16.15% |
Functions | 48 | |
▷ Named functions | 17 | 35.42% |
▷ Anonymous functions | 31 | 64.58% |
Constants | 1,196 | |
▷ Global constants | 184 | 15.38% |
▷ Class constants | 1,012 | 84.62% |
▷ Public constants | 958 | 94.66% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
67 compressed PNG files occupy 0.66MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
common/lib/TCPDF/examples/images/alpha.png | 23.33KB | 30.34KB | 0.00% |
common/lib/colorpicker/images/custom_submit.png | 0.97KB | 0.99KB | 0.00% |
modules/tables/assets/css/images/calendar.png | 0.48KB | 0.45KB | ▼ 4.52% |
common/lib/colorpicker/images/custom_rgb_r.png | 0.99KB | 0.74KB | ▼ 25.34% |
common/css/images/license.png | 0.70KB | 0.54KB | ▼ 23.78% |