10% aarambha-demo-sites

Code Review | Aarambha Demo Sites

WordPress plugin Aarambha Demo Sites scored 10% from 54 tests.

About plugin

  • Plugin page: aarambha-demo-sites
  • Plugin version: 1.1.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-5.9
  • WordPress version: 5.9.2
  • First release: Aug 25, 2020
  • Latest release: Apr 5, 2022
  • Number of updates: 11
  • Update frequency: every 53.6 days
  • Top authors: aarambhathemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

700+ active / 6,967 total downloads


Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/aarambha-demo-sites/inc/main/class-aarambha-ds.php+166
    require_once(wp-content/plugins/aarambha-demo-sites/inc/main/classes/importer/class-aarambha-ds-elementor-importer.php): failed to open stream: No such file or directory

Server metrics [RAM: ▼0.02MB] [CPU: ▼299.20ms] Passed 4 tests

Analyzing server-side resources used by Aarambha Demo Sites
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0170.99 ▼4.20
Dashboard /wp-admin3.41 ▲0.0052.00 ▲8.16
Posts /wp-admin/edit.php3.64 ▲0.0051.88 ▲3.29
Add New Post /wp-admin/post-new.php6.88 ▼0.09116.33 ▼1,199.52
Media Library /wp-admin/upload.php3.29 ▲0.0040.72 ▲3.63

Server storage [IO: ▲0.61MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Aarambha Demo Sites
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,821 ▲6415.96 ▲0.4410.01 ▲0.884.73 ▲0.89
Dashboard /wp-admin2,914 ▲356.41 ▼0.02195.89 ▼9.89192.69 ▼29.09
Posts /wp-admin/edit.php2,686 ▲13.45 ▲0.01109.16 ▲21.49176.15 ▼7.26
Add New Post /wp-admin/post-new.php1,635 ▼516.98 ▼4.31626.21 ▼74.09202.28 ▼39.49
Media Library /wp-admin/upload.php1,692 ▼35.69 ▼0.03192.53 ▲5.54248.61 ▼6.88

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

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)
Good news, no errors were detected

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
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/aarambha-demo-sites/inc/views/popups/failed.php
  • 8× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/aarambha-demo-sites/inc/views/importing.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/aarambha-demo-sites/inc/views/popups/purchase-theme.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/aarambha-demo-sites/inc/views/plugins-list.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/aarambha-demo-sites/inc/views/popups/information.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_admin_page_title() in wp-content/plugins/aarambha-demo-sites/inc/views/body.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/aarambha-demo-sites/inc/views/complete.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/aarambha-demo-sites/inc/views/popups/activate-theme.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/aarambha-demo-sites/inc/views/import.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found


Plugin configuration 93% 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 require attention:
  • Screenshots: Please add images for these screenshots: #1 (Theme Demos listing page.), #2 (Install and activate the required plugins.), #3 (Thus, Import the Demo with one click.)
Please take inspiration from this readme.txt

aarambha-demo-sites/aarambha-demo-sites.php 92% from 13 tests

Analyzing the main PHP file in "Aarambha Demo Sites" version 1.1.4
You should first fix the following items:
  • Requires at least: Required version must match the one declared in readme.txt ("5.7" instead of "5.9")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin8,288 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity44.09
▷ Minimum class complexity1.00
▷ Maximum class complexity283.00
Average method complexity4.18
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes218.18%
▷ Static methods106.71%
▷ Public methods9664.43%
▷ Protected methods3422.82%
▷ Private methods1912.75%
▷ Named functions14100.00%
▷ Anonymous functions00.00%
▷ Global constants2492.31%
▷ Class constants27.69%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.23MB with 0.14MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
banner-772x250.png169.56KB67.26KB▼ 60.33%
icon-256x256.png67.54KB24.32KB▼ 63.98%