Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼7.40ms] Passed 4 tests
Server-side resources used by Conditional Content by Crowd Favorite
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 34.28 ▼3.70 |
Dashboard /wp-admin | 3.38 ▲0.07 | 44.61 ▼3.94 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 43.38 ▼4.86 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 88.75 ▼17.11 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.69 ▲2.98 |
Add New /wp-admin/post-new.php?post_type=cf_cc_condition | 3.45 | 57.25 |
Settings /wp-admin/edit.php?post_type=cf_cc_condition&page=cf-conditional-content-settings | 3.35 | 34.05 |
All Conditions /wp-admin/edit.php?post_type=cf_cc_condition | 3.35 | 36.44 |
Server storage [IO: ▲1.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 79 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Conditional Content by Crowd Favorite
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,932 ▲197 | 13.64 ▼1.09 | 7.96 ▲6.36 | 42.98 ▲1.16 |
Dashboard /wp-admin | 2,240 ▲55 | 4.81 ▼0.09 | 94.52 ▼16.73 | 40.18 ▼3.65 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.01 ▼0.03 | 34.45 ▼6.02 | 34.05 ▼1.06 |
Add New Post /wp-admin/post-new.php | 6,423 ▲4,895 | 25.69 ▲7.50 | 870.74 ▲270.84 | 61.15 ▲3.09 |
Media Library /wp-admin/upload.php | 1,419 ▲31 | 4.17 ▼0.00 | 96.60 ▼5.18 | 43.55 ▼0.18 |
Add New /wp-admin/post-new.php?post_type=cf_cc_condition | 2,458 | 3.68 | 76.20 | 41.64 |
Settings /wp-admin/edit.php?post_type=cf_cc_condition&page=cf-conditional-content-settings | 1,043 | 2.46 | 28.08 | 55.12 |
All Conditions /wp-admin/edit.php?post_type=cf_cc_condition | 1,136 | 2.82 | 36.34 | 33.46 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
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)
Everything seems fine, however this is by no means 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
Please fix the following items
- 25× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: condition_type in wp-content/plugins/conditional-content-cf-lite/admin/views/partials/field-user-behavior-logged.php on line 11
- > PHP Notice
Undefined variable: rule_user_behavior in wp-content/plugins/conditional-content-cf-lite/admin/views/partials/field-user-behavior-returning.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function selected() in wp-content/plugins/conditional-content-cf-lite/admin/views/partials/field-operator.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/conditional-content-cf-lite/admin/views/partials/field-end-date.php:27
- > PHP Notice
Undefined variable: current_datetime_count in wp-content/plugins/conditional-content-cf-lite/admin/views/partials/field-start-date.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/conditional-content-cf-lite/admin/views/partials/field-user-behavior-returning.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/conditional-content-cf-lite/admin/views/partials/field-start-date.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/conditional-content-cf-lite/admin/views/partials/field-trigger-select.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/conditional-content-cf-lite/admin/views/partials/field-user-behavior-returning-custom.php:19
- > PHP Notice
Undefined variable: condition_type in wp-content/plugins/conditional-content-cf-lite/admin/views/partials/field-start-date.php on line 14
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/edit.php?post_type=cf_cc_condition&page=cf-conditional-content-settings
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).disableSelection is not a function" "TypeError: $(...).disableSelection is not a function\n at Object.initObjects (/wp-content/plugins/conditional-content-cf-lite/admin/build/app.js?ver=1583226450:128:63)\n at Object.init (/wp-content/plugins/conditional-content-cf-lite/admin/build/app.js?ver=1583226450:15:25)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/conditional-content-cf-lite/admin/build/app.js?ver=1583226450:158:23)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/edit.php?post_type=cf_cc_condition&page=cf-conditional-content-settings
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).disableSelection is not a function
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
10 plugin tags: replace content, dynamic web content, adaptive content, crowd favorite, website personalization...
conditional-content-cf-lite/conditional-content-cf-lite.php 92% from 13 tests
Analyzing the main PHP file in "Conditional Content by Crowd Favorite" version 2.1.2
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected14,475 lines of code in 69 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 38 | 887 | 2,532 | 4,960 |
JSON | 1 | 0 | 0 | 3,717 |
CSS | 9 | 552 | 52 | 2,231 |
JavaScript | 13 | 704 | 205 | 2,134 |
Sass | 6 | 232 | 2 | 1,431 |
SVG | 1 | 0 | 0 | 1 |
XML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 39.15 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 3.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 192 | |
▷ Static methods | 21 | 10.94% |
▷ Public methods | 117 | 60.94% |
▷ Protected methods | 15 | 7.81% |
▷ Private methods | 60 | 31.25% |
Functions | 19 | |
▷ Named functions | 16 | 84.21% |
▷ Anonymous functions | 3 | 15.79% |
Constants | 36 | |
▷ Global constants | 26 | 72.22% |
▷ Class constants | 10 | 27.78% |
▷ Public constants | 9 | 90.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.08MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/flags.png | 77.51KB | 25.56KB | ▼ 67.03% |
admin/assets/images/logo.png | 1.65KB | 0.22KB | ▼ 86.91% |