83% ceylon-demo-installer

Code Review | Ceylon Demo Installer

WordPress plugin Ceylon Demo Installer scored83%from 54 tests.

About plugin

  • Plugin page: ceylon-demo-insta...
  • Plugin version: 1.1.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.8
  • WordPress version: 6.3.1
  • First release: Jan 24, 2021
  • Latest release: Dec 3, 2021
  • Number of updates: 31
  • Update frequency: every 10.2 days
  • Top authors: ceylonthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /49,962 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.14MB] [CPU: ▼5.93ms] Passed 4 tests

Analyzing server-side resources used by Ceylon Demo Installer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1440.89 ▼1.54
Dashboard /wp-admin3.45 ▲0.1147.62 ▼10.51
Posts /wp-admin/edit.php3.57 ▲0.2144.97 ▼2.28
Add New Post /wp-admin/post-new.php6.04 ▲0.1581.93 ▼8.80
Media Library /wp-admin/upload.php3.38 ▲0.1534.36 ▼2.11

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 52 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Ceylon Demo Installer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲7014.39 ▲0.161.67 ▼0.0842.92 ▼1.87
Dashboard /wp-admin2,208 ▲285.58 ▼0.0394.11 ▲4.8243.28 ▲2.77
Posts /wp-admin/edit.php2,116 ▲162.01 ▲0.0134.97 ▼2.9535.26 ▼1.60
Add New Post /wp-admin/post-new.php1,537 ▲1122.95 ▼0.17624.72 ▼71.3354.04 ▼3.74
Media Library /wp-admin/upload.php1,416 ▲134.21 ▲0.02104.01 ▲6.7642.65 ▼1.03

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • __ceylon_demo_setup_do_redirect
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/ceylon-demo-installer/ceylon-demo-installer.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Donate link: Please fix this invalid URI: "ceylonthemes.com"
  • Screenshots: Add an image for screenshot #1 (Ceylon Demo Setup)
You can look at the official readme.txt

ceylon-demo-installer/ceylon-demo-installer.php 85% from 13 tests

The principal PHP file in "Ceylon Demo Installer" v. 1.1.4 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected848 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity6.29
▷ Minimum class complexity1.00
▷ Maximum class complexity30.00
Average method complexity2.12
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
▷ Static methods618.18%
▷ Public methods2987.88%
▷ Protected methods00.00%
▷ Private methods412.12%
▷ Named functions9100.00%
▷ Anonymous functions00.00%
▷ Global constants6100.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
10 compressed PNG files occupy 1.46MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/demo-data/e-star/demo-2/screenshot.png115.27KB111.41KB▼ 3.35%
includes/demo-data/general/demo-4/screenshot.png145.86KB141.98KB▼ 2.66%
includes/demo-data/e-star/demo-4/screenshot.png145.86KB141.98KB▼ 2.66%
includes/demo-data/e-star/demo-3/screenshot.png194.68KB189.34KB▼ 2.74%