78% aarambha-demo-sites

Code Review | Aarambha Demo Sites

WordPress plugin Aarambha Demo Sites scored78%from 54 tests.

About plugin

  • Plugin page: aarambha-demo-sites
  • Plugin version: 1.1.7
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.4
  • WordPress version: 6.3.1
  • First release: Aug 25, 2020
  • Latest release: Nov 22, 2023
  • Number of updates: 21
  • Update frequency: every 56.4 days
  • Top authors: aarambhathemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active /13,795 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.21ms] Passed 4 tests

A check of 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.0642.45 ▼2.10
Dashboard /wp-admin3.34 ▲0.0347.80 ▲1.23
Posts /wp-admin/edit.php3.39 ▲0.0345.94 ▼5.31
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.03 ▼10.67
Media Library /wp-admin/upload.php3.26 ▲0.0336.16 ▲5.42

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Aarambha Demo Sites
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲6014.68 ▲0.431.94 ▲0.2144.61 ▼1.55
Dashboard /wp-admin2,206 ▲265.54 ▼0.1089.72 ▲0.3541.63 ▼1.94
Posts /wp-admin/edit.php2,117 ▲171.98 ▼0.0239.95 ▼4.1735.66 ▼12.65
Add New Post /wp-admin/post-new.php1,538 ▲823.24 ▼0.05587.77 ▼59.4053.38 ▲0.18
Media Library /wp-admin/upload.php1,414 ▲174.09 ▼0.0998.08 ▲2.4042.29 ▲1.94

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 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
  • 9× 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/complete.php:14
    • > 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 esc_html_e() in wp-content/plugins/aarambha-demo-sites/inc/views/import.php:3
    • > 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: Class 'WP_Customize_Setting' not found in wp-content/plugins/aarambha-demo-sites/inc/main/classes/customize/class-aarambha-ds-customize-importer-setting.php:14
    • > 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 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/popups/activate-theme.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for 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.)
The official readme.txt is a good inspiration

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

The main file in "Aarambha Demo Sites" v. 1.1.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin8,803 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
PHP291,0521,5143,723
JavaScript35561,3883,623
CSS3101661,457

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity31.24
▷ Minimum class complexity1.00
▷ Maximum class complexity214.00
Average method complexity4.29
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes211.76%
Methods156
▷ Static methods1710.90%
▷ Public methods13385.26%
▷ Protected methods31.92%
▷ Private methods2012.82%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants25
▷ Global constants25100.00%
▷ Class constants00.00%
▷ Public constants00.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 PNG files occupy 0.23MB with 0.14MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icon-256x256.png67.54KB24.32KB▼ 63.98%
banner-772x250.png169.56KB67.26KB▼ 60.33%