Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.89MB] [CPU: ▼176.72ms] Passed 4 tests
Analyzing server-side resources used by PDF Flip Book by Kenrys
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.14 | 35.06 ▲16.84 |
Dashboard /wp-admin | 2.75 ▼0.30 | 23.59 ▼29.27 |
Posts /wp-admin/edit.php | 2.76 ▼0.35 | 18.53 ▼28.25 |
Add New Post /wp-admin/post-new.php | 2.76 ▼2.68 | 21.62 ▼634.90 |
Media Library /wp-admin/upload.php | 2.76 ▼0.25 | 18.63 ▼14.47 |
Server storage [IO: ▲2.13MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by PDF Flip Book by Kenrys
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,718 ▲146 | 15.85 ▼0.15 | 9.50 ▼0.78 | 48.13 ▲0.06 |
Dashboard /wp-admin | 2,982 ▲45 | 5.94 ▼0.00 | 142.97 ▼9.97 | 107.26 ▼4.01 |
Posts /wp-admin/edit.php | 2,754 ▲15 | 2.72 ▲0.02 | 71.67 ▲8.94 | 83.83 ▼7.43 |
Add New Post /wp-admin/post-new.php | 1,693 ▲195 | 18.34 ▼0.47 | 395.04 ▼8.11 | 109.28 ▼11.77 |
Media Library /wp-admin/upload.php | 1,822 ▲15 | 5.01 ▼0.03 | 152.96 ▲6.14 | 120.10 ▲0.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/pdf-flip-book-by-kenrys/PDF_Flip_Book_Kenrys.php+14
Undefined variable: name
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)
Good news, no errors were detected
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 output text when accessed directly:
- > /wp-content/plugins/pdf-flip-book-by-kenrys/PDF_Flip_Book_Kenrys_settings.php
- 16× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: ani in wp-content/plugins/pdf-flip-book-by-kenrys/template.php on line 160
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/pdf-flip-book-by-kenrys/template.php on line 107
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/pdf-flip-book-by-kenrys/template.php on line 146
- > PHP Notice
Undefined variable: ani in wp-content/plugins/pdf-flip-book-by-kenrys/template.php on line 30
- > PHP Notice
Undefined variable: ani in wp-content/plugins/pdf-flip-book-by-kenrys/template.php on line 172
- > PHP Notice
Undefined variable: kenrys_atts in wp-content/plugins/pdf-flip-book-by-kenrys/template.php on line 107
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/pdf-flip-book-by-kenrys/template.php:230
- > PHP Notice
Undefined variable: ani in wp-content/plugins/pdf-flip-book-by-kenrys/template.php on line 128
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pdf-flip-book-by-kenrys/PDF_Flip_Book_Kenrys.php:16
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/pdf-flip-book-by-kenrys/template.php on line 106
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
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
4 plugin tags: flipbook, shortcode, pdf, visual composer
pdf-flip-book-by-kenrys/PDF_Flip_Book_Kenrys.php 85% from 13 tests
The main PHP script in "PDF Flip Book by Kenrys" version 1.1.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("pdf-flip-book-by-kenrys.php" instead of "PDF_Flip_Book_Kenrys.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 162 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin60,802 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 1,985 | 384 | 60,202 |
PHP | 3 | 149 | 145 | 597 |
CSS | 2 | 0 | 0 | 2 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin