Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.22MB] [CPU: ▼141.26ms] Passed 4 tests
Server-side resources used by Yumpu ePaper publishing
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.02 ▲0.30 | 35.28 ▲14.02 |
Dashboard /wp-admin | 3.31 ▲0.25 | 46.11 ▲3.16 |
Posts /wp-admin/edit.php | 3.36 ▲0.25 | 40.02 ▼2.47 |
Add New Post /wp-admin/post-new.php | 5.60 ▲0.17 | 93.16 ▼562.86 |
Media Library /wp-admin/upload.php | 3.19 ▲0.19 | 29.32 ▼2.85 |
Yumpu PDF Settings /wp-admin/options-general.php?page=yumpu-settings | 3.17 | 28.77 |
Server storage [IO: ▲8.64MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 618 new files
Database: 1 new table, no new options
New tables |
---|
wp_yumpu_documents |
Browser metrics Passed 4 tests
Yumpu ePaper publishing: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,747 ▲151 | 15.96 ▼0.06 | 8.00 ▼0.65 | 47.75 ▲2.89 |
Dashboard /wp-admin | 3,004 ▲73 | 5.95 ▼0.20 | 132.99 ▼8.75 | 109.53 ▼8.56 |
Posts /wp-admin/edit.php | 2,773 ▲34 | 2.69 ▼0.00 | 73.22 ▲4.93 | 94.38 ▼1.99 |
Add New Post /wp-admin/post-new.php | 1,894 ▲222 | 19.18 ▲0.25 | 360.02 ▼14.88 | 100.35 ▼7.41 |
Media Library /wp-admin/upload.php | 1,841 ▲34 | 5.08 ▲0.04 | 140.23 ▼5.02 | 119.05 ▼2.39 |
Yumpu PDF Settings /wp-admin/options-general.php?page=yumpu-settings | 1,115 | 2.63 | 77.03 | 74.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure failed, leaving 1 table in the database
- wp_yumpu_documents
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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 take a closer look at the following
- 9× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/yumpu-epaper-publishing/templates/admin_upload_response.php:2
- > PHP Fatal error
Uncaught YumpuEpaper_repository_exception: API-Error in wp-content/plugins/yumpu-epaper-publishing/lib/YumpuAPI.php:172
- > PHP Notice
Undefined index: tokenid in wp-content/plugins/yumpu-epaper-publishing/lib/epapers.php on line 7
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/yumpu-epaper-publishing/templates/admin_settings.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/yumpu-epaper-publishing/yumpu.php:55
- > PHP Warning
require(../../../../examples/server_side/scripts/ssp.class.php): failed to open stream: No such file or directory in wp-content/plugins/yumpu-epaper-publishing/misc/DataTables-1.10.12/extensions/Scroller/examples/data/ssp.php on line 53
- > PHP Fatal error
require(): Failed opening required '../../../../examples/server_side/scripts/ssp.class.php' (include_path='.:/usr/share/php') in wp-content/plugins/yumpu-epaper-publishing/misc/DataTables-1.10.12/extensions/Scroller/examples/data/ssp.php on line 53
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/yumpu-epaper-publishing/templates/admin_editor.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/yumpu-epaper-publishing/templates/admin_files.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: embed, yumpu, publishing, flipbook, publication...
yumpu-epaper-publishing/yumpu.php 92% from 13 tests
The entry point to "Yumpu ePaper publishing" version 2.0.24 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("yumpu-epaper-publishing.php" instead of "yumpu.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin201,792 lines of code in 532 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
HTML | 263 | 1,571 | 0 | 162,825 |
JavaScript | 97 | 8,124 | 21,977 | 30,139 |
CSS | 135 | 299 | 283 | 6,773 |
PHP | 15 | 344 | 369 | 1,474 |
Markdown | 14 | 242 | 0 | 297 |
Sass | 4 | 42 | 11 | 196 |
JSON | 4 | 0 | 0 | 88 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 9.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 90 | |
▷ Static methods | 10 | 11.11% |
▷ Public methods | 79 | 87.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 12.22% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 9 | 100.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
36 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
misc/js/yumpuEditor/icon.png | 1.42KB | 1.10KB | ▼ 22.80% |
misc/DataTables-1.10.2/extensions/TableTools/images/background.png | 0.92KB | 0.08KB | ▼ 91.21% |
misc/DataTables-1.10.2/extensions/TableTools/images/pdf.png | 4.22KB | 1.10KB | ▼ 73.99% |
misc/DataTables-1.10.2/extensions/TableTools/images/collection.png | 1.14KB | 0.17KB | ▼ 84.91% |
misc/DataTables-1.10.2/extensions/ColReorder/images/insert.png | 1.84KB | 0.82KB | ▼ 55.60% |