Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼10.08ms] Passed 4 tests
Analyzing server-side resources used by Page In Page
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.84 ▼1.34 |
Dashboard /wp-admin | 3.33 ▼0.02 | 44.61 ▼17.53 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 45.22 ▼1.15 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 78.15 ▼18.50 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 31.33 ▼2.93 |
Page-In-Page Plugin /wp-admin/options-general.php?page=wp-pip-admin-settings | 3.27 | 29.82 |
Server storage [IO: ▲0.83MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 31 new files
Database: no new tables, 10 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
_twl_pip_facebook-settings |
_twl_pip_twitter-settings |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
_twl_pip_cache_feeds |
widget_twl_page_in_page_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Page In Page
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,891 ▲120 | 13.87 ▼0.50 | 4.95 ▲2.95 | 42.21 ▼2.95 |
Dashboard /wp-admin | 2,214 ▲23 | 4.85 ▼0.04 | 99.96 ▼6.47 | 38.65 ▼7.52 |
Posts /wp-admin/edit.php | 2,094 ▲5 | 2.06 ▲0.01 | 39.58 ▲4.71 | 35.43 ▲1.80 |
Add New Post /wp-admin/post-new.php | 1,521 ▼14 | 23.09 ▼0.08 | 677.41 ▼1.03 | 60.93 ▲7.18 |
Media Library /wp-admin/upload.php | 1,396 ▲11 | 4.20 ▲0.00 | 98.40 ▼3.49 | 45.09 ▼1.17 |
Page-In-Page Plugin /wp-admin/options-general.php?page=wp-pip-admin-settings | 1,052 | 2.07 | 24.17 | 73.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 10 options
- db_upgraded
- widget_twl_page_in_page_widget
- _twl_pip_twitter-settings
- widget_recent-posts
- _twl_pip_facebook-settings
- theysaidso_admin_options
- widget_recent-comments
- _twl_pip_cache_feeds
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=wp-pip-admin-settings
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=wp-pip-admin-settings
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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 take a closer look at the following
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/page-in-page/inc/templates/twitter-feed-item.php
- > /wp-content/plugins/page-in-page/inc/templates/fb-feed-container.php
- > /wp-content/plugins/page-in-page/inc/templates/twitter-feed-container.php
- > /wp-content/plugins/page-in-page/inc/templates/fb-feed-item.php
- 37× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: item_link_link in wp-content/plugins/page-in-page/inc/templates/fb-feed-item.php on line 19
- > PHP Notice
Undefined variable: item_status_link in wp-content/plugins/page-in-page/inc/templates/twitter-feed-item.php on line 30
- > PHP Notice
Undefined variable: item_short_date in wp-content/plugins/page-in-page/inc/templates/twitter-feed-item.php on line 13
- > PHP Notice
Undefined variable: item_fb_link in wp-content/plugins/page-in-page/inc/templates/fb-feed-item.php on line 36
- > PHP Notice
Undefined variable: item_name in wp-content/plugins/page-in-page/inc/templates/twitter-feed-item.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/page-in-page/inc/templates/admin-settings.php:1
- > PHP Warning
Use of undefined constant TWL_PIP_CLASSPATH - assumed 'TWL_PIP_CLASSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/page-in-page/classes/classes.php on line 8
- > PHP Notice
Undefined variable: twitter_logo in wp-content/plugins/page-in-page/inc/templates/twitter-feed-item.php on line 30
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/page-in-page/classes/widgets.php:19
- > PHP Notice
Undefined variable: item_page_link in wp-content/plugins/page-in-page/inc/templates/fb-feed-item.php on line 10
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: widget, insert post in page, twitter feeds, page, facebook posts...
page-in-page/page-in-page.php 92% from 13 tests
The main PHP file in "Page In Page" ver. 2.0.3 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 279 characters long)
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
It is important to fix the following items
- For security reasons, never distribute binary or executable files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/page-in-page/sdk/fb/fb_ca_chain_bundle.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 473 | 1,019 | 2,482 |
CSS | 1 | 53 | 9 | 277 |
JavaScript | 1 | 0 | 4 | 0 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 30.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 121.00 |
Average method complexity | 3.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 1 | 9.09% |
▷ Concrete classes | 10 | 90.91% |
▷ Final classes | 0 | 0.00% |
Methods | 138 | |
▷ Static methods | 31 | 22.46% |
▷ Public methods | 65 | 47.10% |
▷ Protected methods | 58 | 42.03% |
▷ Private methods | 15 | 10.87% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 8 | 66.67% |
▷ Class constants | 4 | 33.33% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 17.02KB | 9.34KB | ▼ 45.12% |
assets/screenshot-1.png | 25.76KB | 10.81KB | ▼ 58.02% |
inc/twitter_logo.png | 1.09KB | 1.22KB | 0.00% |