Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Warning in wp-content/plugins/issuu-panel/includes/classes/class.issuupanelfoldercacheentitymanager.php+45
file_put_contents(wp-content/uploads/issuu-panel-folder/folder-documents.txt): failed to open stream: No such file or directory
Server metrics [RAM: ▲0.25MB] [CPU: ▲0.17ms] Passed 4 tests
A check of server-side resources used by Issuu Panel
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.28 | 45.68 ▲5.69 |
Dashboard /wp-admin | 3.55 ▲0.25 | 51.74 ▲1.10 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 51.77 ▲1.61 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 97.57 ▼7.74 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 43.53 ▲7.97 |
Server storage [IO: ▲1.17MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 129 new files
Database: no new tables, 15 new options
New WordPress options |
---|
issuu_painel_cache_status |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
issuu_painel_enabled_user |
issuu_painel_shortcode_cache |
widget_theysaidso_widget |
issuu_painel_api_key |
widget_issuupanelwidget |
db_upgraded |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Issuu Panel
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,926 ▲165 | 13.44 ▼0.77 | 11.41 ▲9.94 | 42.49 ▼0.07 |
Dashboard /wp-admin | 2,206 ▲28 | 5.56 ▼0.10 | 90.25 ▼25.71 | 65.42 ▲19.43 |
Posts /wp-admin/edit.php | 2,129 ▲29 | 1.94 ▼0.03 | 38.64 ▼5.00 | 35.33 ▼3.74 |
Add New Post /wp-admin/post-new.php | 1,698 ▲170 | 22.33 ▼0.95 | 631.44 ▼11.56 | 48.36 ▼9.44 |
Media Library /wp-admin/upload.php | 1,418 ▲21 | 4.16 ▼0.03 | 96.67 ▼4.40 | 77.35 ▲29.69 |
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
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/issuu-panel/includes/classes/class.issuupaneldebug.php+155
unlink(wp-content/uploads/issuu-panel-folder/): Is a directory
- Zombie WordPress options were found after uninstall: 15 options
- issuu_painel_enabled_user
- can_compress_scripts
- issuu_painel_debug
- theysaidso_admin_options
- issuu_painel_reader
- widget_recent-posts
- issuu_painel_cron
- widget_theysaidso_widget
- issuu_painel_api_secret
- db_upgraded
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 fix the following items
- 37× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'IssuuPanelSubmenu' not found in wp-content/plugins/issuu-panel/menu/document/config.php:3
- > PHP Fatal error
Uncaught Error: Call to a member function getMobileDetect() on null in wp-content/plugins/issuu-panel/shortcode/generator.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function the_issuu_message() in wp-content/plugins/issuu-panel/menu/document/forms/url-upload.php:2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/issuu-panel/shortcode/the-last-document-folder.php on line 47
- > PHP Fatal error
Uncaught Error: Interface 'IssuuPanelPage' not found in wp-content/plugins/issuu-panel/includes/classes/class.issuupanelsubmenu.php:3
- > PHP Fatal error
Uncaught Error: Interface 'IssuuPanelService' not found in wp-content/plugins/issuu-panel/shortcode/class.issuupanelshortcodes.php:3
- > PHP Notice
Undefined variable: atts in wp-content/plugins/issuu-panel/shortcode/the-last-document-folder.php on line 47
- > PHP Fatal error
Uncaught Error: Interface 'IssuuPanelHook' not found in wp-content/plugins/issuu-panel/includes/classes/class.issuupanelfilter.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/issuu-panel/widget/class.issuupanelwidget.php:3
- > PHP Fatal error
Uncaught Error: Interface 'IssuuPanelPage' not found in wp-content/plugins/issuu-panel/menu/main/config.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 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
8 plugin tags: folders, issuu, documents, admin, embed...
issuu-panel/issuu-panel.php Passed 13 tests
"Issuu Panel" version 1.6.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
98 characters long description:
Admin panel for Issuu. You can upload your documents, create folders and embed documents in posts.
Code Analysis Passed 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
Success! There were no dangerous files found in this plugin9,507 lines of code in 95 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 63 | 987 | 1,503 | 6,867 |
CSS | 13 | 143 | 7 | 821 |
PO File | 3 | 295 | 6 | 675 |
Markdown | 3 | 105 | 0 | 561 |
JavaScript | 12 | 43 | 10 | 519 |
XML | 1 | 45 | 78 | 64 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 13.35 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 2.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 40 | |
▷ Abstract classes | 2 | 5.00% |
▷ Concrete classes | 38 | 95.00% |
▷ Final classes | 0 | 0.00% |
Methods | 340 | |
▷ Static methods | 12 | 3.53% |
▷ Public methods | 294 | 86.47% |
▷ Protected methods | 18 | 5.29% |
▷ Private methods | 28 | 8.24% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 20 | |
▷ Global constants | 9 | 45.00% |
▷ Class constants | 11 | 55.00% |
▷ Public constants | 11 | 100.00% |
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
18 PNG files occupy 0.67MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-6.png | 88.36KB | 29.44KB | ▼ 66.69% |
screenshot-9.png | 95.04KB | 36.73KB | ▼ 61.35% |
screenshot-5.png | 66.61KB | 25.40KB | ▼ 61.86% |
screenshot-3.png | 29.75KB | 29.39KB | ▼ 1.23% |
includes/reader/img/icon.png | 0.73KB | 0.96KB | 0.00% |