Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.02MB] [CPU: ▼295.47ms] Passed 4 tests
Analyzing server-side resources used by danixland asciinema shortcode
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 54.28 ▲2.33 |
Dashboard /wp-admin | 3.41 ▲0.00 | 35.41 ▲0.83 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 37.46 ▲0.12 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 94.11 ▼1,184.12 |
Media Library /wp-admin/upload.php | 3.29 ▲0.00 | 25.06 ▲1.31 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for danixland asciinema shortcode
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲21 | 15.78 ▲0.13 | 5.75 ▲0.04 | 2.37 ▲0.26 |
Dashboard /wp-admin | 2,892 ▲34 | 6.07 ▼0.11 | 116.25 ▼23.44 | 169.90 ▲5.36 |
Posts /wp-admin/edit.php | 2,688 ▼6 | 3.23 ▼0.00 | 64.74 ▲0.98 | 141.34 ▲1.53 |
Add New Post /wp-admin/post-new.php | 1,661 ▼0 | 16.56 ▲0.58 | 409.63 ▲23.25 | 158.56 ▲3.58 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.45 ▼0.02 | 141.36 ▼0.98 | 195.52 ▲12.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/danixland-asciinema/danixland-asciinema.php
- > /wp-content/plugins/danixland-asciinema/index.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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: asciinema, video, shortcode
danixland-asciinema/danixland-asciinema.php Passed 13 tests
"danixland asciinema shortcode" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
60 characters long description:
A simple shortcode plugin to embed videos from asciinema.org
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected23 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 5 | 15 | 23 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
No PNG files were detected