Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.07MB] [CPU: ▼159.75ms] Passed 4 tests
An overview of server-side resources used by Responsive Flipbooks
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.98 ▲0.15 | 40.29 ▲4.76 |
Dashboard /wp-admin | 3.04 ▼0.02 | 28.63 ▼20.63 |
Posts /wp-admin/edit.php | 3.10 ▼0.01 | 32.44 ▼12.96 |
Add New Post /wp-admin/post-new.php | 5.10 ▼0.33 | 72.94 ▼600.88 |
Media Library /wp-admin/upload.php | 3.06 ▲0.06 | 28.53 ▼4.52 |
Server storage [IO: ▲0.59MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 76 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Responsive Flipbooks
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,904 ▲308 | 17.51 ▲1.94 | 13.15 ▲2.89 | 42.01 ▼3.46 |
Dashboard /wp-admin | 3,187 ▲253 | 8.18 ▲2.18 | 197.25 ▲51.71 | 110.03 ▼0.79 |
Posts /wp-admin/edit.php | 2,987 ▲248 | 4.38 ▲1.66 | 115.85 ▲34.61 | 88.30 ▼17.30 |
Add New Post /wp-admin/post-new.php | 1,636 ▲21 | 21.17 ▼0.12 | 305.42 ▼14.25 | 127.62 ▲23.68 |
Media Library /wp-admin/upload.php | 1,833 ▲26 | 4.84 ▼0.19 | 147.72 ▼23.55 | 114.84 ▼2.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/responsive-flipbooks/inc/classes/responsive-flipbooks-tinymce-addons.class.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/responsive-flipbooks/inc/shortcodes.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function PeakResponsiveFlipbooks\\plugin_dir_path() in wp-content/plugins/responsive-flipbooks/inc/loader.php:228
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: responsive, turnjs, html5, flipbooks, gallery
responsive-flipbooks/responsive-flipbooks.php Passed 13 tests
The primary PHP file in "Responsive Flipbooks" version 1.0 is used by WordPress to initiate all plugin functionality
81 characters long description:
Plugin provides easy managing process of responsive HTML5 flipbooks in wordpress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin10,080 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 13 | 838 | 797 | 7,370 |
CSS | 9 | 181 | 127 | 2,171 |
PHP | 6 | 84 | 29 | 538 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 14.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 1 | 2.50% |
▷ Public methods | 40 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
42 compressed PNG files occupy 0.05MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/classes/js/jquery-ui/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
inc/classes/js/jquery-ui/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
inc/classes/js/jquery-ui/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
assets/images/jquery-ui/ui-bg_glass_100_fdf5ce_1x400.png | 0.12KB | 0.16KB | 0.00% |
assets/images/folder.png | 2.23KB | 1.08KB | ▼ 51.60% |