Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.26MB] [CPU: ▼7.74ms] Passed 4 tests
Server-side resources used by PDF Flipbook, 3D Flipbook - DearFlip
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.23 | 34.80 ▼4.96 |
Dashboard /wp-admin | 3.58 ▲0.24 | 44.81 ▼16.28 |
Posts /wp-admin/edit.php | 3.70 ▲0.34 | 43.53 ▼2.11 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.29 | 95.07 ▼7.62 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 35.15 ▲1.68 |
All Books /wp-admin/edit.php?post_type=dflip | 3.55 | 36.32 |
Add New Book /wp-admin/post-new.php?post_type=dflip | 3.63 | 56.28 |
Categories /wp-admin/edit-tags.php?taxonomy=dflip_category&post_type=dflip | 3.63 | 32.99 |
Server storage [IO: ▲4.18MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 217 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for PDF Flipbook, 3D Flipbook - DearFlip
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,962 ▲201 | 13.99 ▼0.25 | 26.02 ▲24.43 | 39.01 ▲0.01 |
Dashboard /wp-admin | 2,229 ▲49 | 5.60 ▼0.02 | 84.19 ▼2.45 | 37.49 ▼2.50 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 1.98 ▼0.00 | 35.92 ▲0.58 | 36.36 ▲2.01 |
Add New Post /wp-admin/post-new.php | 1,564 ▲38 | 18.66 ▼4.33 | 624.56 ▼47.98 | 65.93 ▲12.82 |
Media Library /wp-admin/upload.php | 1,437 ▲37 | 4.16 ▼0.07 | 97.15 ▼5.17 | 44.70 ▼0.88 |
All Books /wp-admin/edit.php?post_type=dflip | 1,119 | 1.98 | 30.32 | 30.20 |
Add New Book /wp-admin/post-new.php?post_type=dflip | 3,343 | 8.50 | 206.55 | 60.62 |
Categories /wp-admin/edit-tags.php?taxonomy=dflip_category&post_type=dflip | 1,313 | 2.12 | 25.34 | 30.35 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
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 everything seems fine, this is not 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
Almost there! Just fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > 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/shortcode.php:37
- > PHP Fatal error
Uncaught Error: Class 'DFlip' not found in wp-content/plugins/3d-flipbook-dflip-lite/inc/metaboxes.php:50
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: 3d flipbook, pdf, pdf viewer, pdf flipbook, flip book...
3d-flipbook-dflip-lite/3d-flipbook-dflip-lite.php 85% from 13 tests
The entry point to "PDF Flipbook, 3D Flipbook - DearFlip" version 2.0.86 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 203 characters long)
- Text Domain: The text domain should only use lowercase characters and dashes
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
There were no executable files found in this plugin6,426 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 427 | 133 | 3,230 |
PHP | 6 | 360 | 570 | 1,498 |
JavaScript | 8 | 185 | 177 | 1,186 |
SVG | 10 | 0 | 0 | 512 |
PHP code Passed 2 tests
This is a very shot review 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.48 |
Average class complexity | 49.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 4.76 |
▷ 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% |