Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.50MB] [CPU: ▲1.61ms] Passed 4 tests
Analyzing server-side resources used by Popup Like box - Page Plugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.04 ▲0.57 | 48.18 ▲5.90 |
Dashboard /wp-admin | 3.80 ▲0.50 | 51.60 ▲4.00 |
Posts /wp-admin/edit.php | 3.84 ▲0.48 | 47.46 ▼1.03 |
Add New Post /wp-admin/post-new.php | 6.45 ▲0.56 | 85.91 ▼2.13 |
Media Library /wp-admin/upload.php | 3.68 ▲0.45 | 38.52 ▲5.60 |
Facebook Popup Likebox /wp-admin/options-general.php?page=ays-facebook-popup-likebox | 3.74 | 42.71 |
Server storage [IO: ▲1.49MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 56 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_ays_fbl |
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
ays_fpl_banner_time |
ays_fbl_db_version |
ays_fpl_sale_btn |
widget_recent-posts |
Browser metrics Passed 4 tests
Popup Like box - Page Plugin: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,250 ▲478 | 16.21 ▲1.80 | 83.16 ▲81.24 | 53.19 ▲8.19 |
Dashboard /wp-admin | 2,216 ▲36 | 5.52 ▼0.14 | 87.04 ▼14.51 | 82.18 ▲35.11 |
Posts /wp-admin/edit.php | 2,124 ▲24 | 2.01 ▼0.00 | 38.21 ▼3.96 | 36.18 ▼0.41 |
Add New Post /wp-admin/post-new.php | 1,547 ▲12 | 23.15 ▼0.08 | 690.75 ▲26.71 | 36.67 ▼18.13 |
Media Library /wp-admin/upload.php | 1,424 ▲27 | 4.14 ▼0.02 | 89.52 ▼10.27 | 65.80 ▲23.57 |
Facebook Popup Likebox /wp-admin/options-general.php?page=ays-facebook-popup-likebox | 1,725 | 5.49 | 106.18 | 127.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- ays_fpl_sale_btn
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- ays_fpl_banner_time
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/ays-facebook-popup-likebox/public/partials/ays-facebook-popup-likebox-public-display.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/ays-facebook-popup-likebox/admin/partials/actions/ays-facebook-popup-likebox-admin-actions.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/ays-facebook-popup-likebox/admin/partials/ays-facebook-popup-likebox-admin-display.php:26
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/ays-facebook-popup-likebox/includes/lists/class-fb-popup-likbox-list-table.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots need descriptions #3, #4, #5, #6 in ays-facebook-popup-likebox/assets to your readme.txt
ays-facebook-popup-likebox/ays-facebook-popup-likebox.php Passed 13 tests
The primary PHP file in "Popup Like box - Page Plugin" version 3.7.2 is used by WordPress to initiate all plugin functionality
95 characters long description:
With the help of this amazing plugin you can promote your Facebook page and add number of Like
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 plugin6,162 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 551 | 882 | 3,211 |
CSS | 7 | 462 | 330 | 2,079 |
PO File | 1 | 172 | 218 | 435 |
JavaScript | 6 | 59 | 15 | 374 |
SVG | 3 | 0 | 0 | 63 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 111)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 36.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 122.00 |
Average method complexity | 5.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 111.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 66 | |
▷ Static methods | 8 | 12.12% |
▷ Public methods | 59 | 89.39% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 10.61% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
13 PNG files occupy 0.71MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/black-friday-great-bundle.png | 4.99KB | 4.89KB | ▼ 1.94% |
admin/images/winter_bundle_logo_background_2.png | 357.75KB | 171.13KB | ▼ 52.16% |
admin/images/black_friday_greate_bundle_mobile.png | 18.39KB | 18.43KB | 0.00% |
admin/images/remove-normal.png | 2.75KB | 1.96KB | ▼ 28.81% |
admin/images/winter_bundle_logo.png | 25.05KB | 6.65KB | ▼ 73.46% |