Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼0.58ms] Passed 4 tests
An overview of server-side resources used by LVL99 Omny Embed
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.87 ▲4.92 |
Dashboard /wp-admin | 3.34 ▲0.04 | 53.97 ▲4.91 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 43.53 ▼11.61 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 91.85 ▲5.72 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.01 ▼0.55 |
Omny Embed /wp-admin/options-general.php?page=lvl99-omny-embed-options | 3.26 | 28.85 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for LVL99 Omny Embed
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲98 | 13.91 ▲0.58 | 9.05 ▲4.61 | 43.74 ▲3.89 |
Dashboard /wp-admin | 2,212 ▲9 | 5.86 ▲0.06 | 105.95 ▲11.69 | 40.01 ▲1.93 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.01 ▲0.05 | 35.02 ▼1.83 | 36.39 ▲0.66 |
Add New Post /wp-admin/post-new.php | 1,519 ▼23 | 17.58 ▼0.55 | 616.83 ▼58.28 | 62.07 ▲5.86 |
Media Library /wp-admin/upload.php | 1,394 ▲3 | 4.22 ▲0.01 | 94.82 ▼9.36 | 42.65 ▼3.42 |
Omny Embed /wp-admin/options-general.php?page=lvl99-omny-embed-options | 1,017 | 2.04 | 24.25 | 41.65 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=lvl99-omny-embed-options
- > Warning in wp-content/plugins/lvl99-omny-embed/lib/classes/lvl99-plugin.php+591
count(): Parameter must be an array or an object that implements Countable
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
- 5× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/lvl99-omny-embed/views/admin-index.php
- > /wp-content/plugins/lvl99-omny-embed/classes/lvl99-omny-embed.php
- > /wp-content/plugins/lvl99-omny-embed/lvl99-omny-embed.php
- > /wp-content/plugins/lvl99-omny-embed/views/admin-options.php
- > /wp-content/plugins/lvl99-omny-embed/lib/classes/lvl99-plugin.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: Screenshot #1 (Configurable options) image not found
- Requires at least: The plugin version is formatted incorrectly
lvl99-omny-embed/lvl99-omny-embed.php Passed 13 tests
The main PHP script in "LVL99 Omny Embed" version 0.1.0 is automatically included on every request by WordPress
135 characters long description:
Easily embed media hosted on Omny within your WordPress site. Supports omnyapp.com and omnycontent.com URLs and the `[omny]` shortcode.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,716 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 333 | 758 | 1,048 |
JavaScript | 3 | 80 | 125 | 287 |
Bourne Shell | 1 | 29 | 35 | 135 |
CSS | 2 | 29 | 4 | 110 |
Markdown | 2 | 80 | 0 | 96 |
JSON | 1 | 0 | 0 | 40 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 101.50 |
▷ Minimum class complexity | 65.00 |
▷ Maximum class complexity | 138.00 |
Average method complexity | 4.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 73.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 61 | |
▷ Static methods | 6 | 9.84% |
▷ Public methods | 50 | 81.97% |
▷ Protected methods | 11 | 18.03% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.15MB with 0.10MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 150.40KB | 43.75KB | ▼ 70.91% |