Benchmarks
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 40.89 ▼1.54 |
Dashboard /wp-admin | 3.45 ▲0.11 | 47.62 ▼10.51 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 44.97 ▼2.28 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 81.93 ▼8.80 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 34.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 |
---|
__ceylon_demo_setup_do_redirect |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Ceylon Demo Installer
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲70 | 14.39 ▲0.16 | 1.67 ▼0.08 | 42.92 ▼1.87 |
Dashboard /wp-admin | 2,208 ▲28 | 5.58 ▼0.03 | 94.11 ▲4.82 | 43.28 ▲2.77 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.01 ▲0.01 | 34.97 ▼2.95 | 35.26 ▼1.60 |
Add New Post /wp-admin/post-new.php | 1,537 ▲11 | 22.95 ▼0.17 | 624.72 ▼71.33 | 54.04 ▼3.74 |
Media Library /wp-admin/upload.php | 1,416 ▲13 | 4.21 ▲0.02 | 104.01 ▲6.76 | 42.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
Optimizations
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)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 240 | 517 | 744 |
CSS | 1 | 5 | 0 | 56 |
JSON | 25 | 0 | 0 | 25 |
JavaScript | 1 | 5 | 5 | 23 |
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 code | 0.34 |
Average class complexity | 6.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 6 | 18.18% |
▷ Public methods | 29 | 87.88% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 12.12% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.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
10 compressed PNG files occupy 1.46MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/demo-data/e-star/demo-2/screenshot.png | 115.27KB | 111.41KB | ▼ 3.35% |
includes/demo-data/general/demo-4/screenshot.png | 145.86KB | 141.98KB | ▼ 2.66% |
includes/demo-data/wp-dark/demo-1/screenshot.png | 257.45KB | 256.24KB | 0.47% |
includes/demo-data/e-star/demo-4/screenshot.png | 145.86KB | 141.98KB | ▼ 2.66% |
includes/demo-data/e-star/demo-3/screenshot.png | 194.68KB | 189.34KB | ▼ 2.74% |