Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼0.84ms] Passed 4 tests
An overview of server-side resources used by Export Users To PDF
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.61 ▼7.60 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.70 ▲1.63 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 54.50 ▲4.30 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.39 ▼0.47 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.05 ▲3.08 |
Server storage [IO: ▲9.85MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 283 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Export Users To PDF
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 14.74 ▲0.36 | 2.06 ▼0.32 | 44.85 ▼1.76 |
Dashboard /wp-admin | 2,206 ▲18 | 5.91 ▲0.04 | 110.14 ▲5.56 | 43.63 ▲0.77 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.05 ▼0.11 | 51.36 ▲14.11 | 37.88 ▲3.04 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 18.64 ▼4.40 | 618.48 ▼23.17 | 55.50 ▼1.55 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.21 ▲0.01 | 95.49 ▲0.67 | 41.66 ▲0.51 |
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 did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 125× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Sabberworm\\CSS\\Property\\AtRule' not found in wp-content/plugins/export-users-to-pdf/dompdf/vendor/sabberworm/php-css-parser/src/Property/CSSNamespace.php:11
- > PHP Fatal error
Uncaught Error: Class 'Svg\\Tag\\Shape' not found in wp-content/plugins/export-users-to-pdf/dompdf/vendor/phenx/php-svg-lib/src/Svg/Tag/Rect.php:11
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\Renderer\\AbstractRenderer' not found in wp-content/plugins/export-users-to-pdf/dompdf/vendor/dompdf/dompdf/src/Renderer/ListBullet.php:22
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\Table\\Table' not found in wp-content/plugins/export-users-to-pdf/dompdf/vendor/phenx/php-font-lib/src/FontLib/Table/Type/post.php:18
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\Glyph\\Outline' not found in wp-content/plugins/export-users-to-pdf/dompdf/vendor/phenx/php-font-lib/src/FontLib/Glyph/OutlineComposite.php:17
- > PHP Fatal error
Uncaught Error: Class 'Svg\\Tag\\Shape' not found in wp-content/plugins/export-users-to-pdf/dompdf/vendor/phenx/php-svg-lib/src/Svg/Tag/Circle.php:11
- > PHP Fatal error
Uncaught Error: Class 'Svg\\Tag\\Shape' not found in wp-content/plugins/export-users-to-pdf/dompdf/vendor/phenx/php-svg-lib/src/Svg/Tag/Polyline.php:11
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\Renderer\\Block' not found in wp-content/plugins/export-users-to-pdf/dompdf/vendor/dompdf/dompdf/src/Renderer/Image.php:21
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\BinaryStream' not found in wp-content/plugins/export-users-to-pdf/dompdf/vendor/phenx/php-font-lib/src/FontLib/Header.php:17
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameReflower\\AbstractFrameReflower' not found in wp-content/plugins/export-users-to-pdf/dompdf/vendor/dompdf/dompdf/src/FrameReflower/Table.php:20
- > 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 uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: No descriptions were found for these screenshots #1, #2 in export-users-to-pdf/assets to your readme.txt
export-users-to-pdf/Export-Users-To-PDF.php 92% from 13 tests
"Export Users To PDF" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("export-users-to-pdf.php" instead of "Export-Users-To-PDF.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected40,104 lines of code in 211 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 195 | 8,725 | 18,041 | 38,273 |
Markdown | 5 | 242 | 0 | 910 |
JSON | 6 | 0 | 0 | 439 |
CSS | 1 | 92 | 38 | 391 |
YAML | 2 | 17 | 5 | 66 |
HTML | 1 | 0 | 0 | 17 |
SVG | 1 | 0 | 0 | 8 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Please tend to the following items
- Method cyclomatic complexity has to be reduced to less than 100 (currently 651)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 38.74 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 809.00 |
Average method complexity | 4.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 651.00 |
Code structure | ||
---|---|---|
Namespaces | 33 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 177 | |
▷ Abstract classes | 12 | 6.78% |
▷ Concrete classes | 165 | 93.22% |
▷ Final classes | 0 | 0.00% |
Methods | 2,034 | |
▷ Static methods | 129 | 6.34% |
▷ Public methods | 1,713 | 84.22% |
▷ Protected methods | 244 | 12.00% |
▷ Private methods | 77 | 3.79% |
Functions | 22 | |
▷ Named functions | 4 | 18.18% |
▷ Anonymous functions | 18 | 81.82% |
Constants | 205 | |
▷ Global constants | 2 | 0.98% |
▷ Class constants | 203 | 99.02% |
▷ Public constants | 203 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
dompdf/vendor/dompdf/dompdf/lib/res/broken_image.png | 0.60KB | 0.47KB | ▼ 22.33% |