Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲5.12MB] [CPU: ▲29.59ms] 75% from 4 tests
An overview of server-side resources used by Pretty Opt In Lite - Content Locker for Lead Generation
The following require your attention
- Extra RAM: The extra memory usage must be under 5MB (currently 5.12MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.90 ▲5.43 | 70.47 ▲30.68 |
Dashboard /wp-admin | 8.92 ▲5.61 | 75.73 ▲30.71 |
Posts /wp-admin/edit.php | 8.92 ▲5.56 | 85.82 ▲39.97 |
Add New Post /wp-admin/post-new.php | 9.78 ▲3.89 | 109.66 ▲23.63 |
Media Library /wp-admin/upload.php | 8.92 ▲5.68 | 67.14 ▲33.34 |
Freemius Debug [v.2.5.4.2] /wp-admin/admin.php?page=freemius | 8.92 | 59.99 |
Server storage [IO: ▲10.32MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2,918 new files
Database: 1 new table, 11 new options
New tables |
---|
wp_pretty_leads |
New WordPress options |
---|
db_upgraded |
fs_debug_mode |
fs_active_plugins |
pretty_predefine_privacy |
widget_recent-posts |
fs_accounts |
widget_recent-comments |
theysaidso_admin_options |
pretty_predefine_terms |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
Pretty Opt In Lite - Content Locker for Lead Generation: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,968 ▲207 | 13.88 ▼0.39 | 10.30 ▲8.73 | 28.12 ▼11.78 |
Dashboard /wp-admin | 2,225 ▲48 | 5.56 ▼0.10 | 81.71 ▼6.52 | 39.40 ▼0.73 |
Posts /wp-admin/edit.php | 2,137 ▲37 | 2.02 ▲0.00 | 39.90 ▲4.72 | 40.07 ▼0.78 |
Add New Post /wp-admin/post-new.php | 1,553 ▲27 | 17.98 ▼5.60 | 603.08 ▼44.15 | 58.27 ▼0.33 |
Media Library /wp-admin/upload.php | 1,433 ▲33 | 4.21 ▲0.02 | 95.49 ▼7.78 | 45.35 ▲1.68 |
Freemius Debug [v.2.5.4.2] /wp-admin/admin.php?page=freemius | 1,088 | 1.66 | 23.99 | 25.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/pretty-opt-in-lite/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- Zombie tables detected upon uninstall: 1 table
- wp_pretty_leads
- Zombie WordPress options were found after uninstall: 11 options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- pretty_predefine_privacy
- can_compress_scripts
- fs_debug_mode
- db_upgraded
- fs_accounts
- fs_active_plugins
- theysaidso_admin_options
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 50× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/pretty-opt-in-lite/admin/views/integrations/sections/tab-apps.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/pretty-opt-in-lite/admin/views/locker/list/widget-popup.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/pretty-opt-in-lite/admin/views/settings/sections/tab-notifications.php:3
- > PHP Warning
Use of undefined constant PRETTY_OPT_IN_URL - assumed 'PRETTY_OPT_IN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/pretty-opt-in-lite/admin/views/locker/list/widget-popup.php on line 19
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/pretty-opt-in-lite/admin/views/dashboard/content.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/pretty-opt-in-lite/admin/views/settings/content.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/pretty-opt-in-lite/admin/views/leads/header.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function pretty_opt_in_get_addon_data() in wp-content/plugins/pretty-opt-in-lite/admin/views/integrations/popups/freshmail.php:2
- > PHP Warning
Use of undefined constant PRETTY_OPT_IN_URL - assumed 'PRETTY_OPT_IN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/pretty-opt-in-lite/admin/views/locker/list/widget-popup.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/pretty-opt-in-lite/admin/views/settings/sections/tab-subscription.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 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
These attributes need to be fixed:
- Screenshots: No descriptions were found for these screenshots #1, #10, #11, #12, #13, #14, #2, #3, #4, #5, #6, #7, #8, #9 in pretty-opt-in-lite/assets to your readme.txt
- Tags: You are using too many tags: 11 tag instead of maximum 10
pretty-opt-in-lite/pretty-opt-in-lite.php Passed 13 tests
The main PHP script in "Pretty Opt In Lite - Content Locker for Lead Generation" version 1.3.11 is automatically included on every request by WordPress
128 characters long description:
Pretty Opt In makes you can create the premium content locker (e.g. downloads, discounts, videos and so on) for lead generation.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin44,868 lines of code in 1,985 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 194 | 9,263 | 18,955 | 37,260 |
CSS | 18 | 525 | 50 | 4,198 |
SVG | 1,738 | 0 | 1 | 2,069 |
JavaScript | 32 | 365 | 457 | 1,083 |
Markdown | 1 | 68 | 0 | 214 |
HTML | 2 | 0 | 0 | 44 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please tend to the following items
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,079)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 59.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,079.00 |
Average method complexity | 4.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 79 | |
▷ Abstract classes | 6 | 7.59% |
▷ Concrete classes | 73 | 92.41% |
▷ Final classes | 0 | 0.00% |
Methods | 1,441 | |
▷ Static methods | 203 | 14.09% |
▷ Public methods | 1,035 | 71.83% |
▷ Protected methods | 25 | 1.73% |
▷ Private methods | 381 | 26.44% |
Functions | 131 | |
▷ Named functions | 131 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 152 | |
▷ Global constants | 101 | 66.45% |
▷ Class constants | 51 | 33.55% |
▷ Public constants | 51 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
25 PNG files occupy 5.00MB with 2.74MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/template/pretty-minimal.png | 4.75KB | 2.45KB | ▼ 48.48% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
assets/images/welcome/pretty-edit-locker.png | 154.47KB | 45.33KB | ▼ 70.66% |
assets/images/template/black-bg.png | 3,353.87KB | 1,176.73KB | ▼ 64.91% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |