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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.44MB] [CPU: ▼1.77ms] Passed 4 tests
A check of server-side resources used by MPL-Publisher — Ebook & Audiobook Creator
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.92 ▲0.45 | 39.73 ▼2.31 |
Dashboard /wp-admin | 3.79 ▲0.44 | 59.60 ▼7.34 |
Posts /wp-admin/edit.php | 3.83 ▲0.47 | 60.60 ▲13.12 |
Add New Post /wp-admin/post-new.php | 6.38 ▲0.49 | 89.02 ▼5.68 |
Media Library /wp-admin/upload.php | 3.62 ▲0.39 | 42.21 ▲8.25 |
Publish eBook /wp-admin/admin.php?page=publisher | 4.08 | 52.41 |
Resources /wp-admin/admin.php?page=mpl-extensions | 3.67 | 41.71 |
Cover Editor /wp-admin/admin.php?page=mpl-cover | 3.67 | 42.32 |
Server storage [IO: ▲7.60MB] [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: 870 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
mpl_publisher_status |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_mpl_publisher |
Browser metrics Passed 4 tests
An overview of browser requirements for MPL-Publisher — Ebook & Audiobook Creator
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,002 ▲255 | 17.65 ▲3.22 | 1.72 ▼0.05 | 37.92 ▼6.72 |
Dashboard /wp-admin | 2,399 ▲219 | 8.37 ▲2.72 | 157.44 ▲59.53 | 46.85 ▲1.44 |
Posts /wp-admin/edit.php | 2,341 ▲241 | 5.77 ▲3.83 | 68.71 ▲29.52 | 35.40 ▲0.35 |
Add New Post /wp-admin/post-new.php | 1,595 ▲69 | 24.59 ▲1.15 | 665.04 ▲70.74 | 37.34 ▼11.73 |
Media Library /wp-admin/upload.php | 1,481 ▲84 | 6.07 ▲1.96 | 92.76 ▼5.50 | 40.49 ▼2.17 |
Publish eBook /wp-admin/admin.php?page=publisher | 2,908 | 5.68 | 102.09 | 158.95 |
Resources /wp-admin/admin.php?page=mpl-extensions | 1,439 | 6.01 | 66.16 | 123.58 |
Cover Editor /wp-admin/admin.php?page=mpl-cover | 4,991 | 5.93 | 97.76 | 37.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_mpl_publisher
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 14× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/mpl-publisher/vendor/wallabag/phpepub/legacy/EPub.Test.Example.php
- > /wp-content/plugins/mpl-publisher/vendor/phpzip/phpzip/legacy/ZipStream.Example1s.php
- > /wp-content/plugins/mpl-publisher/views/logo.php
- > /wp-content/plugins/mpl-publisher/vendor/phpzip/phpzip/legacy/ZipStream.Example2b.php
- > /wp-content/plugins/mpl-publisher/vendor/phpzip/phpzip/legacy/Zip.ErrorCatch1.php
- > /wp-content/plugins/mpl-publisher/vendor/phpzip/phpzip/legacy/ZipStream.Example1.php
- > /wp-content/plugins/mpl-publisher/vendor/masterminds/html5/bin/entities.php
- > /wp-content/plugins/mpl-publisher/vendor/grandt/binstring/BinString.Example2.php
- > /wp-content/plugins/mpl-publisher/vendor/phpzip/phpzip/legacy/ZipStream.Example2.php
- > /wp-content/plugins/mpl-publisher/vendor/phpzip/phpzip/legacy/Zip.Example1.php
- 494× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpWord\\Style\\Image' not found in wp-content/plugins/mpl-publisher/vendor/phpoffice/phpword/src/PhpWord/Style/Line.php:23
- > PHP Fatal error
Uncaught Error: Class 'MPL\\Publisher\\PremiumPublisher' not found in wp-content/plugins/mpl-publisher/libs/AudiobookPublisher.php:5
- > PHP Fatal error
Uncaught Error: Class 'Intervention\\Image\\Commands\\AbstractCommand' not found in wp-content/plugins/mpl-publisher/vendor/intervention/image/src/Intervention/Image/Commands/ResponseCommand.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPePub\\Core\\Structure\CX\\AbstractNavEntry' not found in wp-content/plugins/mpl-publisher/vendor/wallabag/phpepub/src/PHPePub/Core/Structure/NCX/NavPoint.php:14
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpWord\\Writer\\ODText\\Style\\AbstractStyle' not found in wp-content/plugins/mpl-publisher/vendor/phpoffice/phpword/src/PhpWord/Writer/ODText/Style/Font.php:25
- > PHP Fatal error
Uncaught Error: Class 'Intervention\\Image\\Commands\\AbstractCommand' not found in wp-content/plugins/mpl-publisher/vendor/intervention/image/src/Intervention/Image/Gd/Commands/ContrastCommand.php:7
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpWord\\Writer\\ODText\\Element\\AbstractElement' not found in wp-content/plugins/mpl-publisher/vendor/phpoffice/phpword/src/PhpWord/Writer/ODText/Element/Table.php:29
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpWord\\Collection\\AbstractCollection' not found in wp-content/plugins/mpl-publisher/vendor/phpoffice/phpword/src/PhpWord/Collection/Titles.php:25
- > PHP Fatal error
Uncaught Error: Class 'PHPZip\\Zip\\Core\\AbstractException' not found in wp-content/plugins/mpl-publisher/vendor/phpzip/phpzip/src/Zip/Exception/BufferNotEmpty.php:16
- > PHP Fatal error
Uncaught Error: Class 'Intervention\\Image\\Commands\\AbstractCommand' not found in wp-content/plugins/mpl-publisher/vendor/intervention/image/src/Intervention/Image/Commands/TextCommand.php:7
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: docx, ebook, kindle, epub, audiobook
mpl-publisher/mpl-publisher.php 92% from 13 tests
The entry point to "MPL-Publisher — Ebook & Audiobook Creator" version 2.10.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
These items require your attention
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/mpl-publisher/vendor/wallabag/phpepub/legacy/install.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 665 | 11,874 | 35,828 | 54,711 |
Markdown | 36 | 1,273 | 0 | 3,411 |
JSON | 24 | 0 | 0 | 2,214 |
HTML | 3 | 141 | 61 | 1,658 |
PO File | 3 | 538 | 746 | 1,564 |
CSS | 11 | 148 | 17 | 809 |
JavaScript | 11 | 205 | 109 | 663 |
YAML | 14 | 62 | 25 | 397 |
XML | 9 | 7 | 9 | 206 |
Bourne Shell | 2 | 12 | 15 | 46 |
DOS Batch | 1 | 0 | 0 | 3 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Please tend to the following items
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 130)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 11.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 299.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 130.00 |
Code structure | ||
---|---|---|
Namespaces | 84 | |
Interfaces | 25 | |
Traits | 2 | |
Classes | 595 | |
▷ Abstract classes | 43 | 7.23% |
▷ Concrete classes | 552 | 92.77% |
▷ Final classes | 29 | 5.25% |
Methods | 3,768 | |
▷ Static methods | 469 | 12.45% |
▷ Public methods | 3,072 | 81.53% |
▷ Protected methods | 307 | 8.15% |
▷ Private methods | 389 | 10.32% |
Functions | 118 | |
▷ Named functions | 66 | 55.93% |
▷ Anonymous functions | 52 | 44.07% |
Constants | 941 | |
▷ Global constants | 43 | 4.57% |
▷ Class constants | 898 | 95.43% |
▷ Public constants | 896 | 99.78% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
15 PNG files occupy 0.88MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/imgs/cover-placeholder.png | 2.27KB | 2.18KB | ▼ 3.75% |
assets/css/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
assets/imgs/theme-crimson.png | 310.69KB | 229.89KB | ▼ 26.01% |
vendor/phpoffice/phpword/src/PhpWord/resources/ppt.png | 1.84KB | 1.79KB | ▼ 2.97% |
assets/imgs/amazon-apps-store-us-black.png | 5.19KB | 2.73KB | ▼ 47.37% |