Benchmarks
Plugin footprint 57% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- The plugin cannot be installed
- > Warning in wp-content/plugins/vertical-diamond-flipbook-flash/index.php+386
fopen(wp-content/plugins/vertical-diamond-flipbook-flash/templates/template-flipbook.php): failed to open stream: No such file or directory
Server metrics [RAM: ▲0.23MB] [CPU: ▼19.39ms] Passed 4 tests
A check of server-side resources used by Nature FlipBook WordPress Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.87 ▲0.41 | 40.92 ▼1.73 |
Dashboard /wp-admin | 3.60 ▲0.29 | 38.09 ▼11.77 |
Posts /wp-admin/edit.php | 3.67 ▲0.31 | 41.48 ▼10.37 |
Add New Post /wp-admin/post-new.php | 5.84 ▼0.05 | 75.88 ▼53.70 |
Media Library /wp-admin/upload.php | 3.58 ▲0.35 | 35.55 ▲3.35 |
Add New Page /wp-admin/post-new.php?post_type=jq_flipbook_v3 | 3.65 | 41.80 |
All Pages /wp-admin/edit.php?post_type=jq_flipbook_v3 | 3.66 | 35.88 |
Settings /wp-admin/edit.php?post_type=jq_flipbook_v3&page=Settings | 3.58 | 30.08 |
Help /wp-admin/edit.php?post_type=jq_flipbook_v3&page=nfb | 3.58 | 31.29 |
Books /wp-admin/edit-tags.php?taxonomy=jq_flipbook_v3_tax&post_type=jq_flipbook_v3 | 3.66 | 39.96 |
Server storage [IO: ▲1.50MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
These are issues you should consider
- Illegal file modification found: 1 file (0.00KB) outside of "wp-content/plugins/vertical-diamond-flipbook-flash/" and "wp-content/uploads/"
- (new file) wp-content/themes/twentytwentyone/template-flipbook.php
Filesystem: 51 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
nfb_global |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Nature FlipBook WordPress Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,014 ▲257 | 15.11 ▲0.79 | 1.85 ▼0.06 | 38.13 ▼6.11 |
Dashboard /wp-admin | 2,389 ▲201 | 6.50 ▲1.62 | 132.14 ▲13.36 | 40.04 ▼4.50 |
Posts /wp-admin/edit.php | 2,305 ▲219 | 3.37 ▲1.31 | 51.42 ▲12.49 | 34.01 ▲1.10 |
Add New Post /wp-admin/post-new.php | 1,550 ▲8 | 23.29 ▲5.13 | 672.94 ▲16.27 | 37.58 ▼9.55 |
Media Library /wp-admin/upload.php | 1,442 ▲57 | 4.26 ▼0.05 | 81.99 ▼22.67 | 42.84 ▼1.79 |
Add New Page /wp-admin/post-new.php?post_type=jq_flipbook_v3 | 2,522 | 7.77 | 187.63 | 76.32 |
All Pages /wp-admin/edit.php?post_type=jq_flipbook_v3 | 1,334 | 3.58 | 48.86 | 28.91 |
Settings /wp-admin/edit.php?post_type=jq_flipbook_v3&page=Settings | 1,068 | 3.19 | 39.38 | 23.89 |
Help /wp-admin/edit.php?post_type=jq_flipbook_v3&page=nfb | 1,094 | 3.19 | 40.96 | 72.86 |
Books /wp-admin/edit-tags.php?taxonomy=jq_flipbook_v3_tax&post_type=jq_flipbook_v3 | 1,500 | 3.31 | 42.44 | 29.24 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- nfb_global
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=jq_flipbook_v3&page=nfb
- > Notice in wp-content/plugins/vertical-diamond-flipbook-flash/lib/structure.php+906
Undefined index: taxonomy
- > GET request to /wp-admin/post-new.php?post_type=jq_flipbook_v3
- > Notice in wp-content/plugins/vertical-diamond-flipbook-flash/lib/structure.php+586
Trying to get property 'slug' of non-object
- > GET request to /wp-admin/post-new.php?post_type=jq_flipbook_v3
- > Notice in wp-content/plugins/vertical-diamond-flipbook-flash/lib/function.php+316
Trying to get property 'term_id' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=jq_flipbook_v3
- > Notice in wp-content/plugins/vertical-diamond-flipbook-flash/lib/structure.php+619
Undefined variable: thumbpage
- > GET request to /wp-admin/edit.php?post_type=jq_flipbook_v3&page=Settings
- > Notice in wp-content/plugins/vertical-diamond-flipbook-flash/lib/structure.php+390
Undefined index: custom_css
SRP 0% 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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/vertical-diamond-flipbook-flash/css/editor.php
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/vertical-diamond-flipbook-flash/lib/shortcodes.php:83
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vertical-diamond-flipbook-flash/lib/function.php:773
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vertical-diamond-flipbook-flash/lib/structure.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/vertical-diamond-flipbook-flash/lib/categories_custom_fields.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/vertical-diamond-flipbook-flash/index.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vertical-diamond-flipbook-flash/lib/simple-page-ordering.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: flipbook, pdf viewer, pdf flipbook, pdf embed
vertical-diamond-flipbook-flash/index.php 92% from 13 tests
"Nature FlipBook WordPress Plugin" version 1.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("vertical-diamond-flipbook-flash.php" instead of "index.php")
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
Good job! No executable or dangerous file extensions detected6,986 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 10 | 1,235 | 401 | 2,636 |
PHP | 7 | 1,184 | 481 | 2,620 |
CSS | 8 | 399 | 91 | 1,210 |
SVG | 1 | 0 | 0 | 520 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 22.50 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 4.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 1 | 7.14% |
▷ Public methods | 10 | 71.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 28.57% |
Functions | 59 | |
▷ Named functions | 59 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.19MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
flipbook/img/logo_home.png | 2.64KB | 1.20KB | ▼ 54.41% |
flipbook/img/bg.png | 66.03KB | 4.58KB | ▼ 93.06% |
img/empty.png | 4.61KB | 2.26KB | ▼ 50.94% |
flipbook/img/icons.png | 50.89KB | 1.04KB | ▼ 97.96% |
img/jscolor/hv.png | 2.80KB | 7.32KB | 0.00% |