Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/wppageflip/pageflipbook.php+53
Undefined variable: table_prefix
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.42ms] Passed 4 tests
An overview of server-side resources used by A Page Flip Book
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 44.12 ▲4.14 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.73 ▼5.57 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.02 ▼7.23 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 95.27 ▼13.18 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.66 ▲0.30 |
Server storage [IO: ▲2.19MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 97 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for A Page Flip Book
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.22 ▼1.09 | 1.54 ▼0.07 | 39.44 ▼3.61 |
Dashboard /wp-admin | 2,209 ▲21 | 5.88 ▲0.89 | 106.66 ▼9.72 | 42.52 ▼3.13 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▼0.01 | 40.90 ▲0.40 | 34.41 ▼0.78 |
Add New Post /wp-admin/post-new.php | 1,535 ▲21 | 23.24 ▲5.69 | 600.51 ▼17.15 | 53.66 ▲0.85 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.22 ▲0.03 | 95.89 ▼1.17 | 41.62 ▼3.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% 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
Please fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wppageflip/upgrade.php
- > /wp-content/plugins/wppageflip/js/insertdialog.php
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wppageflip/pageflipbook.php:28
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wppageflip/display_page.php on line 3
- > PHP Warning
Use of undefined constant TXT_WPPF_UPGRADE - assumed 'TXT_WPPF_UPGRADE' (this will throw an Error in a future version of PHP) in wp-content/plugins/wppageflip/upgrade.php on line 4
- > WordPress database error Table 'potrivit.wp_pageflipbook' doesn't exist for query SELECT DISTINCT id_book FROM `wp_pageflipbook`
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wppageflip/pageflipbook.php on line 26
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wppageflip/display_page.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wppageflip/quicktags.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (Easy to configure), #2 (Easy to manage), #3 (Enjoy your book !)
- Plugin Name: Please specify the plugin name on the first line (
=== wppageflip ===
) - Tags: Please reduce the number of tags, currently 39 tag instead of maximum 10
wppageflip/pageflipbook.php 85% from 13 tests
This is the main PHP file of "A Page Flip Book" version 3.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 191 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wppageflip.php" instead of "pageflipbook.php")
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
Good job! No executable or dangerous file extensions detected3,906 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 247 | 329 | 2,450 |
JavaScript | 11 | 250 | 108 | 1,421 |
CSS | 1 | 3 | 0 | 18 |
XML | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 108.00 |
▷ Minimum class complexity | 108.00 |
▷ Maximum class complexity | 108.00 |
Average method complexity | 5.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 58.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 92.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 8.00% |
Functions | 29 | |
▷ Named functions | 29 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 167 | |
▷ Global constants | 166 | 99.40% |
▷ Class constants | 1 | 0.60% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
24 PNG files occupy 1.17MB with 0.58MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/vPLUS.png | 5.34KB | 3.24KB | ▼ 39.27% |
images/image.png | 0.50KB | 0.59KB | 0.00% |
screenshot-2.png | 245.91KB | 63.82KB | ▼ 74.05% |
images/controls/zoom-minus-grey.png | 4.36KB | 1.48KB | ▼ 66.09% |
images/controls/zoom-plus-grey.png | 4.38KB | 1.46KB | ▼ 66.54% |