Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.27MB] [CPU: ▼288.55ms] Passed 4 tests
A check of server-side resources used by PDF Flipbook, 3D Flipbook WordPress - DearFlip
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.30 | 55.36 ▲0.18 |
Dashboard /wp-admin | 3.70 ▲0.29 | 34.95 ▲1.79 |
Posts /wp-admin/edit.php | 3.93 ▲0.29 | 37.36 ▼0.85 |
Add New Post /wp-admin/post-new.php | 7.17 ▲0.20 | 108.08 ▼1,154.99 |
Media Library /wp-admin/upload.php | 3.58 ▲0.28 | 25.90 ▲1.45 |
Add New Book /wp-admin/post-new.php?post_type=dflip | 3.93 | 56.56 |
All Books /wp-admin/edit.php?post_type=dflip | 3.69 | 29.62 |
Categories /wp-admin/edit-tags.php?taxonomy=dflip_category&post_type=dflip | 3.58 | 29.38 |
Server storage [IO: ▲3.77MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 210 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by PDF Flipbook, 3D Flipbook WordPress - DearFlip
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,958 ▲204 | 16.78 ▲0.80 | 33.61 ▲27.53 | 18.61 ▲16.07 |
Dashboard /wp-admin | 2,932 ▲71 | 6.07 ▼0.11 | 126.55 ▼10.11 | 158.27 ▼7.10 |
Posts /wp-admin/edit.php | 2,732 ▲38 | 3.25 ▲0.01 | 63.47 ▼1.18 | 141.43 ▼2.54 |
Add New Post /wp-admin/post-new.php | 1,690 ▼21 | 16.51 ▼5.04 | 405.26 ▼39.35 | 154.76 ▼6.02 |
Media Library /wp-admin/upload.php | 1,743 ▲48 | 5.54 ▲0.03 | 138.61 ▼15.82 | 182.57 ▼18.26 |
Add New Book /wp-admin/post-new.php?post_type=dflip | 4,339 | 10.12 | 229.44 | 193.23 |
All Books /wp-admin/edit.php?post_type=dflip | 1,442 | 3.16 | 64.35 | 118.60 |
Categories /wp-admin/edit-tags.php?taxonomy=dflip_category&post_type=dflip | 1,678 | 2.76 | 56.44 | 111.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'DFlip' not found in wp-content/plugins/3d-flipbook-dflip-lite/inc/post-type.php:41
- > PHP Fatal error
Uncaught Error: Class 'DFlip' not found in wp-content/plugins/3d-flipbook-dflip-lite/inc/metaboxes.php:50
- > PHP Fatal error
Uncaught Error: Class 'DFlip' not found in wp-content/plugins/3d-flipbook-dflip-lite/inc/shortcode.php:37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% 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
7 plugin tags: flipbook, pdf viewer, 3d flipbook, pdf embed, pdf...
3d-flipbook-dflip-lite/3d-flipbook-dflip-lite.php 85% from 13 tests
Analyzing the main PHP file in "PDF Flipbook, 3D Flipbook WordPress - DearFlip" version 1.7.25
It is important to fix the following:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Description: Please keep the plugin description shorter than 140 characters (currently 203 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin7,240 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 427 | 133 | 3,232 |
JavaScript | 8 | 185 | 187 | 1,997 |
PHP | 5 | 360 | 568 | 1,499 |
SVG | 10 | 0 | 0 | 512 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 49.50 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 4.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 53.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 | 51 | |
▷ Static methods | 4 | 7.84% |
▷ Public methods | 47 | 92.16% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 7.84% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/chrome-extension.png | 13.08KB | 6.28KB | ▼ 52.01% |