Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.36MB] [CPU: ▼3.69ms] Passed 4 tests
Server-side resources used by Bg forReaders
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.15 ▲0.41 | 49.44 ▲3.52 |
Dashboard /wp-admin | 3.97 ▲0.41 | 55.58 ▲0.99 |
Posts /wp-admin/edit.php | 4.02 ▲0.34 | 54.85 ▲1.98 |
Add New Post /wp-admin/post-new.php | 6.51 ▲0.36 | 88.77 ▼21.24 |
Media Library /wp-admin/upload.php | 3.83 ▲0.34 | 44.00 ▲5.40 |
For Readers /wp-admin/options-general.php?page=bg-forreaders/bg-forreaders.php | 3.83 | 39.39 |
Server storage [IO: ▲17.92MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 681 new files
Database: no new tables, 55 new options
New WordPress options |
---|
bg_forreaders_top_offset |
bg_forreaders_add_author |
bg_forreaders_cover_year |
bg_forreaders_while_saved |
bg_forreaders_separator |
bg_forreaders_before |
bg_forreaders_offline_query |
bg_forreaders_cats |
bg_forreaders_after |
bg_forreaders_text_color |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Bg forReaders
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲42 | 14.21 ▼0.17 | 1.89 ▲0.27 | 45.36 ▲1.61 |
Dashboard /wp-admin | 2,204 ▲27 | 5.68 ▲0.03 | 88.64 ▼2.13 | 42.32 ▼3.22 |
Posts /wp-admin/edit.php | 2,109 ▲6 | 2.04 ▲0.03 | 36.49 ▼8.74 | 33.47 ▼5.23 |
Add New Post /wp-admin/post-new.php | 1,544 ▼1 | 20.55 ▼2.75 | 640.80 ▼101.09 | 54.34 ▼1.74 |
Media Library /wp-admin/upload.php | 1,412 ▲12 | 4.28 ▲0.03 | 97.29 ▼4.68 | 44.79 ▼1.27 |
For Readers /wp-admin/options-general.php?page=bg-forreaders/bg-forreaders.php | 1,066 | 2.05 | 23.11 | 43.98 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
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)
Everything seems fine, however 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
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/bg-forreaders/includes/lib/phpMobi/index.php
- > /wp-content/plugins/bg-forreaders/bg-forreaders.php
- 244× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Barcode\\AbstractBarcode' not found in wp-content/plugins/bg-forreaders/includes/lib/mpdf80/vendor/mpdf/mpdf/src/Barcode/Codabar.php:9
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\BlockTag' not found in wp-content/plugins/bg-forreaders/includes/lib/mpdf80/vendor/mpdf/mpdf/src/Tag/Div.php:5
- > PHP Fatal error
Uncaught Error: Interface 'DeepCopy\\Filter\\Filter' not found in wp-content/plugins/bg-forreaders/includes/lib/mpdf80/vendor/myclabs/deep-copy/src/DeepCopy/Filter/Doctrine/DoctrineCollectionFilter.php:11
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\InlineTag' not found in wp-content/plugins/bg-forreaders/includes/lib/mpdf80/vendor/mpdf/mpdf/src/Tag/Kbd.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\Tag' not found in wp-content/plugins/bg-forreaders/includes/lib/mpdf80/vendor/mpdf/mpdf/src/Tag/TextCircle.php:8
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\SetHtmlPageFooter' not found in wp-content/plugins/bg-forreaders/includes/lib/mpdf80/vendor/mpdf/mpdf/src/Tag/SetPageFooter.php:5
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/bg-forreaders/includes/lib/mpdf80/vendor/setasign/fpdi/src/PdfParser/Type/PdfToken.php:16
- > PHP Fatal error
Uncaught Error: Class 'Psr\\Log\\AbstractLogger' not found in wp-content/plugins/bg-forreaders/includes/lib/mpdf80/vendor/psr/log/Psr/Log/Test/TestLogger.php:57
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Log\\LoggerAwareInterface' not found in wp-content/plugins/bg-forreaders/includes/lib/mpdf80/vendor/mpdf/mpdf/src/Writer/ResourceWriter.php:9
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\InlineTag' not found in wp-content/plugins/bg-forreaders/includes/lib/mpdf80/vendor/mpdf/mpdf/src/Tag/Strong.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: e-book, fb2, mobi, pdf, opds...
bg-forreaders/bg-forreaders.php Passed 13 tests
"Bg forReaders" version 3.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
97 characters long description:
Convert post content to most popular e-book formats for readers and displays a form for download.
Code Analysis 95% from 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 detected87,694 lines of code in 504 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 454 | 12,942 | 16,319 | 83,995 |
Markdown | 15 | 488 | 0 | 1,354 |
JSON | 16 | 0 | 0 | 793 |
CSS | 4 | 82 | 19 | 579 |
PO File | 1 | 143 | 172 | 351 |
HTML | 2 | 3 | 0 | 318 |
YAML | 7 | 58 | 4 | 196 |
XML | 3 | 10 | 0 | 75 |
JavaScript | 1 | 0 | 0 | 30 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 0% from 2 tests
An overview of cyclomatic complexity and code structure
It is recommended to fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 7,024)
- Method cyclomatic complexity has to be reduced to less than 100 (currently 460)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 51.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7,024.00 |
Average method complexity | 10.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 460.00 |
Code structure | ||
---|---|---|
Namespaces | 49 | |
Interfaces | 25 | |
Traits | 6 | |
Classes | 343 | |
▷ Abstract classes | 12 | 3.50% |
▷ Concrete classes | 331 | 96.50% |
▷ Final classes | 14 | 4.23% |
Methods | 2,002 | |
▷ Static methods | 175 | 8.74% |
▷ Public methods | 1,763 | 88.06% |
▷ Protected methods | 77 | 3.85% |
▷ Private methods | 162 | 8.09% |
Functions | 84 | |
▷ Named functions | 45 | 53.57% |
▷ Anonymous functions | 39 | 46.43% |
Constants | 630 | |
▷ Global constants | 40 | 6.35% |
▷ Class constants | 590 | 93.65% |
▷ Public constants | 590 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/document-epub.png | 3.97KB | 3.23KB | ▼ 18.63% |
css/document-fb2.png | 3.81KB | 3.01KB | ▼ 21.16% |
css/document-pdf.png | 3.78KB | 3.00KB | ▼ 20.71% |
css/document-mobi.png | 3.98KB | 3.20KB | ▼ 19.65% |