10% popup-shraddha

Code Review | Popup Shraddha

WordPress plugin Popup Shraddhascored10%from 54 tests.

About plugin

  • Plugin page: popup-shraddha
  • Plugin version: 01.04.02
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.8.2
  • WordPress version: 6.3.1
  • First release: Oct 15, 2015
  • Latest release: Nov 25, 2021
  • Number of updates: 13
  • Update frequency: every 171.8 days
  • Top authors: siddharthsingh91 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /927 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0443.54 ▼0.74
Dashboard /wp-admin3.34 ▼0.0052.78 ▼14.83
Posts /wp-admin/edit.php3.39 ▲0.0451.28 ▲0.96
Add New Post /wp-admin/post-new.php5.92 ▲0.0499.85 ▲4.06
Media Library /wp-admin/upload.php3.26 ▲0.0437.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,919 ▲17313.83 ▼0.529.94 ▲8.2348.08 ▲8.34
Dashboard /wp-admin2,210 ▲305.61 ▼0.0888.47 ▼3.7439.94 ▼1.47
Posts /wp-admin/edit.php2,112 ▲122.04 ▲0.0435.02 ▼5.3435.64 ▼4.98
Add New Post /wp-admin/post-new.php1,547 ▲1418.23 ▼5.17607.67 ▼38.9069.84 ▲11.60
Media Library /wp-admin/upload.php1,415 ▲154.24 ▲0.08101.32 ▼8.0947.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

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=== )
You can take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
SVG200928
PHP64017267
CSS4919138
JavaScript483639

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 code0.16
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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