100% demo-your-work

Code Review | Demo Your Work

WordPress plugin Demo Your Work scored 100% from 54 tests.

About plugin

  • Plugin page: demo-your-work
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8
  • WordPress version: 5.8.1
  • First release: Apr 30, 2021
  • Latest release: Jul 30, 2021
  • Number of updates: 6
  • Update frequency: every 15.3 days
  • Top authors: chamwebdesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 121 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1334.45 ▲7.32
Dashboard /wp-admin3.08 ▲0.0242.32 ▼5.92
Posts /wp-admin/edit.php3.16 ▲0.0542.75 ▼1.89
Add New Post /wp-admin/post-new.php5.44 ▲0.0188.99 ▼573.62
Media Library /wp-admin/upload.php3.02 ▲0.0132.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,719 ▲12315.93 ▲0.008.51 ▲0.5447.88 ▼2.45
Dashboard /wp-admin2,983 ▲495.93 ▲0.01142.32 ▼7.63114.63 ▲2.54
Posts /wp-admin/edit.php2,755 ▲162.69 ▲0.0167.51 ▲1.9187.76 ▼3.15
Add New Post /wp-admin/post-new.php1,694 ▲1118.93 ▲2.14376.69 ▲25.6094.06 ▼28.98
Media Library /wp-admin/upload.php1,826 ▲195.03 ▲0.04141.79 ▼15.60123.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


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:
LanguageFilesBlank linesComment linesLines of code

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 code0.16
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods857.14%
▷ Protected methods321.43%
▷ Private methods321.43%
▷ Named functions466.67%
▷ Anonymous functions233.33%
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/images/monitor.png32.58KB14.67KB▼ 54.99%