Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼145.51ms] Passed 4 tests
This is a short check of server-side resources used by Demo Your Work
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 34.45 ▲7.32 |
Dashboard /wp-admin | 3.08 ▲0.02 | 42.32 ▼5.92 |
Posts /wp-admin/edit.php | 3.16 ▲0.05 | 42.75 ▼1.89 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 88.99 ▼573.62 |
Media Library /wp-admin/upload.php | 3.02 ▲0.01 | 32.09 ▼0.62 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Demo Your Work
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,719 ▲123 | 15.93 ▲0.00 | 8.51 ▲0.54 | 47.88 ▼2.45 |
Dashboard /wp-admin | 2,983 ▲49 | 5.93 ▲0.01 | 142.32 ▼7.63 | 114.63 ▲2.54 |
Posts /wp-admin/edit.php | 2,755 ▲16 | 2.69 ▲0.01 | 67.51 ▲1.91 | 87.76 ▼3.15 |
Add New Post /wp-admin/post-new.php | 1,694 ▲11 | 18.93 ▲2.14 | 376.69 ▲25.60 | 94.06 ▼28.98 |
Media Library /wp-admin/upload.php | 1,826 ▲19 | 5.03 ▲0.04 | 141.79 ▼15.60 | 123.07 ▲2.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: elementor, elementor widget, elementor addon, products, woocommerce
demo-your-work/demo-your-work.php Passed 13 tests
The main PHP script in "Demo Your Work" version 1.0.1 is automatically included on every request by WordPress
138 characters long description:
Demo Your Work is a showcase plugin for WordPress Elementor Page Builder. It's a Mac manotor when you hover, scroll up the selected image.
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
There were no executable files found in this plugin219 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 61 | 157 | 151 |
CSS | 1 | 2 | 0 | 67 |
Markdown | 1 | 1 | 0 | 1 |
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.16 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 57.14% |
▷ Protected methods | 3 | 21.43% |
▷ Private methods | 3 | 21.43% |
Functions | 6 | |
▷ Named functions | 4 | 66.67% |
▷ Anonymous functions | 2 | 33.33% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/monitor.png | 32.58KB | 14.67KB | ▼ 54.99% |