Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼9.14ms] Passed 4 tests
An overview of server-side resources used by Issuu PDF Sync
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 36.19 ▼2.62 |
Dashboard /wp-admin | 3.44 ▲0.09 | 47.62 ▼13.73 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 47.83 ▲0.70 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 81.00 ▼19.26 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 35.24 ▼0.96 |
Issuu PDF Sync /wp-admin/options-general.php?page=ips-options | 3.40 | 35.78 |
Server storage [IO: ▲1.21MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 51 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
ips_options |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Issuu PDF Sync
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.16 ▼0.22 | 1.58 ▼0.19 | 36.97 ▼5.84 |
Dashboard /wp-admin | 2,202 ▲31 | 5.63 ▼0.04 | 85.74 ▼17.97 | 35.73 ▼11.93 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.14 ▲0.16 | 38.50 ▲2.35 | 37.06 ▲0.25 |
Add New Post /wp-admin/post-new.php | 1,542 ▲16 | 23.14 ▼0.20 | 586.45 ▼27.46 | 59.67 ▲12.50 |
Media Library /wp-admin/upload.php | 1,398 ▲4 | 4.20 ▲0.09 | 99.07 ▼2.22 | 43.27 ▲2.10 |
Issuu PDF Sync /wp-admin/options-general.php?page=ips-options | 1,431 | 2.63 | 48.28 | 36.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- ips_options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/issuu-pdf-sync/views/admin-insert-modal.tpl.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/issuu-pdf-sync/views/admin-no-pdf-yet.tpl.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/issuu-pdf-sync/issuu-pdf-sync.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/issuu-pdf-sync/views/admin-options.tpl.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/issuu-pdf-sync/views/admin-sync-input.tpl.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/issuu-pdf-sync/views/admin-media-javascript.tpl.php:4
- > 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 93% from 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
8 plugin tags: synchronisation, pdf, flipbook, upload, book...
issuu-pdf-sync/issuu-pdf-sync.php 85% from 13 tests
The main PHP file in "Issuu PDF Sync" ver. 3.1.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Git Repository: Please do not include Git repositories in your plugin
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,225 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 6 | 409 | 457 | 1,081 |
PHP | 10 | 270 | 193 | 1,013 |
XML | 5 | 49 | 0 | 81 |
JavaScript | 2 | 11 | 3 | 50 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 38.25 |
▷ Minimum class complexity | 25.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 5.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 20 | 64.52% |
▷ Public methods | 30 | 96.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.23% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.25MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/issuu_logo.png | 1.03KB | 1.11KB | 0.00% |
images/default.png | 73.36KB | 30.33KB | ▼ 58.66% |
images/layout-double-pages.png | 0.32KB | 0.18KB | ▼ 42.90% |
images/screenshot-5.png | 74.33KB | 30.08KB | ▼ 59.54% |
images/layout-single-page.png | 0.19KB | 0.12KB | ▼ 36.08% |