Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/contentoptin/content-optin.php+36
Undefined variable: wpdb
Server metrics [RAM: ▼0.48MB] [CPU: ▼16.55ms] Passed 4 tests
A check of server-side resources used by ContentOptin Lite - WP Content Upgrade Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 37.38 ▼7.89 |
Dashboard /wp-admin | 3.56 ▲0.26 | 53.16 ▼0.84 |
Posts /wp-admin/edit.php | 3.68 ▲0.32 | 61.91 ▲13.95 |
Add New Post /wp-admin/post-new.php | 3.39 ▼2.50 | 41.16 ▼59.54 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 37.69 ▲2.06 |
ContentOptin /wp-admin/edit.php?post_type=contentoptin | 3.64 | 51.78 |
List Manager /wp-admin/edit.php?post_type=contentoptin&page=ms_co_maillist_page | 3.46 | 42.19 |
Analytic Insight /wp-admin/edit.php?post_type=contentoptin&page=ms_co_statistic_page | 3.43 | 34.68 |
Addons /wp-admin/edit.php?post_type=contentoptin&page=ms_co_integration_page | 3.43 | 32.85 |
Add New Optin /wp-admin/post-new.php?post_type=contentoptin | 3.39 | 36.55 |
Help /wp-admin/edit.php?post_type=contentoptin&page=ms_co_help | 3.46 | 37.28 |
Server storage [IO: ▲1.66MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 81 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_ms_co_emails |
wp_ms_co_stats |
New WordPress options |
---|
ms_co_db_version |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for ContentOptin Lite - WP Content Upgrade Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,073 ▲338 | 15.59 ▲1.28 | 6.17 ▲4.46 | 40.36 ▼7.60 |
Dashboard /wp-admin | 2,378 ▲193 | 7.03 ▲2.04 | 138.32 ▲24.70 | 80.90 ▲33.66 |
Posts /wp-admin/edit.php | 2,302 ▲213 | 3.87 ▲1.86 | 48.79 ▲13.64 | 64.57 ▲27.25 |
Add New Post /wp-admin/post-new.php | 1,557 ▲24 | 23.56 ▲0.33 | 652.41 ▼27.88 | 36.10 ▼21.84 |
Media Library /wp-admin/upload.php | 1,438 ▲50 | 4.70 ▲0.52 | 83.32 ▼23.29 | 94.63 ▲47.56 |
ContentOptin /wp-admin/edit.php?post_type=contentoptin | 1,821 | 3.97 | 48.41 | 63.98 |
List Manager /wp-admin/edit.php?post_type=contentoptin&page=ms_co_maillist_page | 1,131 | 3.62 | 39.45 | 62.73 |
Analytic Insight /wp-admin/edit.php?post_type=contentoptin&page=ms_co_statistic_page | 1,300 | 5.24 | 116.19 | 84.73 |
Addons /wp-admin/edit.php?post_type=contentoptin&page=ms_co_integration_page | 1,003 | 3.55 | 40.13 | 65.59 |
Add New Optin /wp-admin/post-new.php?post_type=contentoptin | 2,170 | 4.27 | 62.51 | 117.02 |
Help /wp-admin/edit.php?post_type=contentoptin&page=ms_co_help | 1,068 | 3.67 | 38.62 | 80.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/edit.php?post_type=contentoptin&page=ms_co_statistic_page
- > Notice in wp-content/plugins/contentoptin/inc/admin/stat.php+17
Undefined index: content_optin_search
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=contentoptin&page=ms_co_statistic_page
- > Notice in wp-content/plugins/contentoptin/inc/admin/stat.php+88
Undefined variable: selectedpost
- > GET request to /wp-admin/edit.php?post_type=contentoptin&page=ms_co_statistic_page
- > Warning in wp-content/plugins/contentoptin/inc/admin/stat.php+178
Division by zero
- > GET request to /wp-admin/edit.php?post_type=contentoptin&page=ms_co_statistic_page
- > Notice in wp-content/plugins/contentoptin/inc/admin/stat.php+309
Undefined variable: label
- > GET request to /wp-admin/edit.php?post_type=contentoptin&page=ms_co_statistic_page
- > Notice in wp-content/plugins/contentoptin/inc/admin/stat.php+310
Undefined variable: email
- > GET request to /wp-admin/edit.php?post_type=contentoptin&page=ms_co_statistic_page
- > Notice in wp-content/plugins/contentoptin/inc/admin/stat.php+311
Undefined variable: visit
- > GET request to /wp-admin/edit.php?post_type=contentoptin&page=ms_co_statistic_page
- > Notice in wp-content/plugins/contentoptin/inc/admin/stat.php+312
Undefined variable: optin_click
- > GET request to /wp-admin/edit.php?post_type=contentoptin&page=ms_co_integration_page
- > Notice in wp-content/plugins/contentoptin/inc/admin/integration.php+11
Undefined index: ms_co_int_menu_key
- > GET request to /wp-admin/post-new.php?post_type=contentoptin
- > Notice in wp-content/plugins/contentoptin/inc/admin/optin/metabox.php+429
Undefined index: content_optin_meta_noncename
- 16 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=contentoptin
- > Warning in wp-content/plugins/contentoptin/inc/admin/optin/metabox.php+101
Use of undefined constant key - assumed 'key' (this will throw an Error in a future version of PHP)
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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/contentoptin/content-optin.php
- 54× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
include(): Failed opening 'MS_CO_PLUGIN_DIR/inc/admin/misc/export_function.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/contentoptin/inc/admin_hook.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function remove_action() in wp-content/plugins/contentoptin/inc/popup/shortcode.php:4
- > PHP Warning
Use of undefined constant MS_CO_PLUGIN_DIR - assumed 'MS_CO_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/contentoptin/inc/admin_hook.php on line 6
- > PHP Warning
include(): Failed opening 'MS_CO_PLUGIN_DIR/inc/admin/list/list.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/contentoptin/inc/admin/maillist.php on line 14
- > PHP Warning
include(MS_CO_PLUGIN_DIR/inc/admin/integration.php): failed to open stream: No such file or directory in wp-content/plugins/contentoptin/inc/admin_hook.php on line 13
- > PHP Warning
Use of undefined constant MS_CO_PLUGIN_DIR - assumed 'MS_CO_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/contentoptin/inc/admin_hook.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/contentoptin/inc/popup/ajax_process.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function ms_co_popup_heading() in wp-content/plugins/contentoptin/inc/popup/template/theme4.php:11
- > PHP Warning
include(): Failed opening 'MS_CO_PLUGIN_DIR/inc/admin/maillist.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/contentoptin/inc/admin_hook.php on line 12
- > PHP Warning
include(): Failed opening 'MS_CO_PLUGIN_DIR/inc/admin/optin/optin_setting.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/contentoptin/inc/admin_hook.php on line 5
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: content upgrade, content bonus, lead magnet, lead generation, list building
contentoptin/content-optin.php 92% from 13 tests
The principal PHP file in "ContentOptin Lite - WP Content Upgrade Plugin" v. 1.1 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("contentoptin.php" instead of "content-optin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin5,497 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 9 | 588 | 453 | 2,429 |
PHP | 30 | 904 | 108 | 1,927 |
CSS | 3 | 244 | 22 | 1,140 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 59 | |
▷ Named functions | 59 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
26 PNG files occupy 1.10MB with 0.61MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/popup/template/images/theme3.png | 21.60KB | 11.47KB | ▼ 46.89% |
inc/popup/template/images/sidebox.PNG | 46.60KB | 17.55KB | ▼ 62.33% |
inc/popup/template/images/theme4i.png | 63.86KB | 29.73KB | ▼ 53.45% |
assets/screenshot-1.PNG | 54.15KB | 19.76KB | ▼ 63.51% |
inc/popup/template/images/theme6.png | 73.61KB | 34.66KB | ▼ 52.92% |