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
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > User deprecated in wp-includes/functions.php+5747
Function add_option was called with an argument that is deprecated since version 2.3.0 with no alternative available.
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.04ms] Passed 4 tests
Analyzing server-side resources used by Popup Shraddha
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 43.54 ▼0.74 |
Dashboard /wp-admin | 3.34 ▼0.00 | 52.78 ▼14.83 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 51.28 ▲0.96 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 99.85 ▲4.06 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 37.62 ▼1.54 |
Server storage [IO: ▲1.18MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 26 new files
Database: 1 new table, 10 new options
New tables |
---|
wp_popup_shraddha |
New WordPress options |
---|
popup_shraddha_db_version |
widget_recent-comments |
om_top_bar_setting |
om_middle_bar_setting |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
om_footer_bar_setting |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Popup Shraddha
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,919 ▲173 | 13.83 ▼0.52 | 9.94 ▲8.23 | 48.08 ▲8.34 |
Dashboard /wp-admin | 2,210 ▲30 | 5.61 ▼0.08 | 88.47 ▼3.74 | 39.94 ▼1.47 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 2.04 ▲0.04 | 35.02 ▼5.34 | 35.64 ▼4.98 |
Add New Post /wp-admin/post-new.php | 1,547 ▲14 | 18.23 ▼5.17 | 607.67 ▼38.90 | 69.84 ▲11.60 |
Media Library /wp-admin/upload.php | 1,415 ▲15 | 4.24 ▲0.08 | 101.32 ▼8.09 | 47.60 ▲1.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 75% 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)
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
The following issues need your attention
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/popup-shraddha/admin/function/form_submit.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/popup-shraddha/html_container.php:41
- > PHP Fatal error
Uncaught Error: Call to a member function get_row() on null in wp-content/plugins/popup-shraddha/admin/function/html_container.php:2
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/popup-shraddha/admin/function/html_container.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/popup-shraddha/including_js_css.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/popup-shraddha/index.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/popup-shraddha/admin/function/admin_main_menu.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== Popup Shraddha===
)
popup-shraddha/index.php 77% from 13 tests
This is the main PHP file of "Popup Shraddha" version 01.04.02, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Text Domain: The text domain should only use lowercase characters and dashes
- Domain Path: The domain path folder was not found ("/languages/")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("popup-shraddha.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,372 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 2 | 0 | 0 | 928 |
PHP | 6 | 40 | 17 | 267 |
CSS | 4 | 9 | 19 | 138 |
JavaScript | 4 | 8 | 36 | 39 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
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 | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin