Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲5.10MB] [CPU: ▲27.02ms] 75% from 4 tests
This is a short check of server-side resources used by Real3D Flipbook PDF Viewer Lite
Please have a look at the following items
- Extra RAM: The extra memory usage should kept under 5MB (currently 5.10MB on /wp-admin/admin.php?page=real3d_flipbook_import)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.91 ▲5.44 | 70.53 ▲33.25 |
Dashboard /wp-admin | 8.93 ▲5.62 | 81.15 ▲36.73 |
Posts /wp-admin/edit.php | 8.93 ▲5.57 | 81.97 ▲31.69 |
Add New Post /wp-admin/post-new.php | 9.64 ▲3.75 | 107.08 ▲9.09 |
Media Library /wp-admin/upload.php | 8.93 ▲5.70 | 69.83 ▲34.06 |
Add new /wp-admin/post-new.php?post_type=r3d | 8.93 | 82.55 |
Add-ons /wp-admin/admin.php?page=real3d_flipbook_addons | 8.93 | 57.72 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 8.93 | 58.06 |
Authors /wp-admin/edit-tags.php?taxonomy=r3d_author&post_type=r3d | 8.93 | 60.44 |
Categories /wp-admin/edit-tags.php?taxonomy=r3d_category&post_type=r3d | 8.93 | 60.27 |
Activation /wp-admin/admin.php?page=real3d_flipbook_activation | 8.93 | 57.67 |
Upgrade to PRO /wp-admin/admin.php?page=real3d_flipbook_upgrade | 8.93 | 56.06 |
Settings /wp-admin/admin.php?page=real3d_flipbook_settings | 8.93 | 62.96 |
Flipbooks /wp-admin/edit.php?post_type=r3d | 8.93 | 65.37 |
Import / Export /wp-admin/admin.php?page=real3d_flipbook_import | 8.93 | 54.81 |
Server storage [IO: ▲14.69MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 414 new files
Database: no new tables, 10 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
real3dflipbook_global |
widget_recent-comments |
fs_active_plugins |
widget_theysaidso_widget |
widget_recent-posts |
fs_accounts |
theysaidso_admin_options |
fs_debug_mode |
Browser metrics Passed 4 tests
Real3D Flipbook PDF Viewer Lite: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,897 ▲111 | 14.17 ▼0.20 | 1.96 ▲0.04 | 36.03 ▼6.18 |
Dashboard /wp-admin | 2,275 ▲98 | 5.51 ▼0.04 | 96.46 ▲6.69 | 46.64 ▲5.91 |
Posts /wp-admin/edit.php | 2,181 ▲84 | 2.01 ▼0.02 | 35.57 ▼3.98 | 38.31 ▼0.68 |
Add New Post /wp-admin/post-new.php | 1,667 ▲141 | 21.60 ▼2.08 | 659.85 ▼24.76 | 37.13 ▼31.04 |
Media Library /wp-admin/upload.php | 1,477 ▲77 | 4.20 ▲0.04 | 93.50 ▼8.64 | 45.88 ▲0.60 |
Add new /wp-admin/post-new.php?post_type=r3d | 10,827 | 7.38 | 501.90 | 53.15 |
Add-ons /wp-admin/admin.php?page=real3d_flipbook_addons | 980 | 2.16 | 26.08 | 32.13 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 1,135 | 1.70 | 23.10 | 27.52 |
Authors /wp-admin/edit-tags.php?taxonomy=r3d_author&post_type=r3d | 1,364 | 2.27 | 27.46 | 33.42 |
Categories /wp-admin/edit-tags.php?taxonomy=r3d_category&post_type=r3d | 1,372 | 2.30 | 27.34 | 30.65 |
Activation /wp-admin/admin.php?page=real3d_flipbook_activation | 2,001 | 3.23 | 53.56 | 39.59 |
Upgrade to PRO /wp-admin/admin.php?page=real3d_flipbook_upgrade | 742 | 1.51 | 6.63 | 22.94 |
Settings /wp-admin/admin.php?page=real3d_flipbook_settings | 7,457 | 4.22 | 326.88 | 38.76 |
Flipbooks /wp-admin/edit.php?post_type=r3d | 1,182 | 1.96 | 32.05 | 35.95 |
Import / Export /wp-admin/admin.php?page=real3d_flipbook_import | 887 | 2.16 | 23.48 | 29.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/real3d-flipbook-lite/freemius/includes/class-freemius.php+8515
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 10 options
- widget_theysaidso_widget
- can_compress_scripts
- real3dflipbook_global
- fs_accounts
- widget_recent-posts
- widget_recent-comments
- fs_active_plugins
- theysaidso_admin_options
- fs_debug_mode
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=real3d_flipbook_activation
- > POST request to /wp-admin/admin-ajax.php?page=real3d_flipbook_admin
- > Warning in wp-content/plugins/real3d-flipbook-lite/includes/Real3DFlipbook.php+335
Invalid argument supplied for foreach()
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=real3d_flipbook_upgrade
- > Warning in wp-includes/pluggable.php+1438
Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2838)
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 take a closer look at the following
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/real3d-flipbook-lite/includes/single-r3d.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/real3d-flipbook-lite/includes/Real3DFlipbook.php:26
- > PHP Fatal error
Uncaught Error: Class 'Real3DFlipbook' not found in wp-content/plugins/real3d-flipbook-lite/includes/post-type.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/real3d-flipbook-lite/includes/archive-r3d.php:2
- > PHP Warning
Use of undefined constant REAL3D_FLIPBOOK_VERSION - assumed 'REAL3D_FLIPBOOK_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/real3d-flipbook-lite/includes/Real3DFlipbook.php on line 25
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/real3d-flipbook-lite/includes/taxonomy-r3d_category.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- > GET request to /wp-admin/post-new.php?post_type=r3d
- > Network (severe)
wp-admin/undefined - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: No descriptions were found for these screenshots #1, #10, #11, #12, #13, #2, #3, #4, #5, #6, #7, #8, #9 in real3d-flipbook-lite/assets to your readme.txt
real3d-flipbook-lite/real3d-flipbook-lite.php Passed 13 tests
The main file in "Real3D Flipbook PDF Viewer Lite" v. 3.42 serves as a complement to information provided in readme.txt and as the entry point to the plugin
71 characters long description:
Real3D FlipBook Lite - create realistic 3D flipbook from PDF or images.
Code Analysis 97% from 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 plugin43,548 lines of code in 185 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 133 | 8,861 | 17,330 | 35,426 |
JavaScript | 28 | 1,229 | 499 | 6,676 |
CSS | 20 | 158 | 212 | 1,149 |
Markdown | 1 | 68 | 0 | 214 |
SVG | 1 | 0 | 0 | 66 |
XML | 1 | 3 | 0 | 16 |
JSON | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please tend to the following items
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,088)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 92.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,088.00 |
Average method complexity | 4.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 50 | |
▷ Abstract classes | 2 | 4.00% |
▷ Concrete classes | 48 | 96.00% |
▷ Final classes | 0 | 0.00% |
Methods | 1,308 | |
▷ Static methods | 200 | 15.29% |
▷ Public methods | 915 | 69.95% |
▷ Protected methods | 20 | 1.53% |
▷ Private methods | 373 | 28.52% |
Functions | 116 | |
▷ Named functions | 116 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 147 | |
▷ Global constants | 100 | 68.03% |
▷ Class constants | 47 | 31.97% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |