Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/intravert/modules/widgets.php+85
Function create_function() is deprecated
Server metrics [RAM: ▼1.97MB] [CPU: ▼60.77ms] Passed 4 tests
A check of server-side resources used by Intravert for Wordpress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.37 ▼40.03 |
Dashboard /wp-admin | 2.05 ▼1.30 | 5.98 ▼58.65 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.80 ▼49.24 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.62 ▼95.16 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.23 ▼32.60 |
Intravert /wp-admin/options-general.php?page=wap_settings | 2.05 | 6.71 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_ads_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Intravert for Wordpress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,386 ▲640 | 16.54 ▲2.33 | 17.43 ▲15.80 | 45.57 ▲3.47 |
Dashboard /wp-admin | 2,344 ▲167 | 6.18 ▲0.53 | 100.11 ▲11.37 | 42.39 ▼2.41 |
Posts /wp-admin/edit.php | 2,344 ▲241 | 3.33 ▲1.39 | 46.50 ▲1.80 | 29.40 ▼11.25 |
Add New Post /wp-admin/post-new.php | 1,541 ▲13 | 18.52 ▼4.44 | 603.15 ▼95.75 | 45.15 ▼10.82 |
Media Library /wp-admin/upload.php | 1,413 ▲10 | 4.04 ▼0.09 | 78.38 ▼32.43 | 44.23 ▼1.82 |
Intravert /wp-admin/options-general.php?page=wap_settings | 1,195 | 2.97 | 41.03 | 59.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/intravert/modules/widgets.php+85
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_ads_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=wap_settings
- > Deprecated in wp-content/plugins/intravert/modules/widgets.php+85
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=wap_settings
- > Notice in wp-content/plugins/intravert/modules/hooks.php+100
Undefined index: adsapi
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wap_settings
- > Notice in wp-content/plugins/intravert/modules/settings.php+97
Undefined index: refresh
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wap_settings
- > Notice in wp-content/plugins/intravert/modules/settings.php+432
Undefined variable: locale_taro
- > GET request to /wp-admin/options-general.php?page=wap_settings
- > Notice in wp-content/plugins/intravert/modules/settings.php+13
Undefined index: save_settings_field
- > GET request to /wp-admin/options-general.php?page=wap_settings
- > Notice in wp-content/plugins/intravert/modules/settings.php+119
Undefined variable: out
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wap_settings
- > Notice in wp-content/plugins/intravert/modules/settings.php+160
Undefined index: id
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wap_settings
- > Notice in wp-content/plugins/intravert/modules/settings.php+160
Undefined index: class
- > GET request to /wp-admin/options-general.php?page=wap_settings
- > Notice in wp-content/plugins/intravert/modules/settings.php+138
Undefined index: placeholder
- 7 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wap_settings
- > Notice in wp-content/plugins/intravert/modules/settings.php+174
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=wap_settings
- > Notice in wp-content/plugins/intravert/modules/settings.php+160
Undefined index: style
- > GET request to /wp-admin/options-general.php?page=wap_settings
- > Notice in wp-content/plugins/intravert/modules/settings.php+167
Undefined index: sub_text
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/intravert/modules/widgets.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_Action() in wp-content/plugins/intravert/modules/settings.php:424
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/intravert/modules/shortcodes.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/intravert/modules/scripts.php:65
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/intravert/modules/scripts.php:65
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/intravert/modules/hooks.php:98
- > PHP Fatal error
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 undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: sponsor, billboard, ads, advertisement, ad space...
intravert/wp-intravert-api.php 92% from 13 tests
The entry point to "Intravert for Wordpress" version 1.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("intravert.php" instead of "wp-intravert-api.php")
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
There were no executable files found in this plugin8,187 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 2 | 0 | 7,487 |
PHP | 6 | 213 | 20 | 692 |
JavaScript | 2 | 4 | 0 | 8 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 17.60 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 5.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 47.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.02MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
modules/inc/assets/img/glyphicons-halflings.png | 12.50KB | 10.35KB | ▼ 17.19% |
modules/inc/assets/img/glyphicons-halflings-white.png | 8.57KB | 9.20KB | 0.00% |