90% diystyle

Code Review | DiyStyle - Elementor addon for Vita Theme

WordPress plugin DiyStyle - Elementor addon for Vita Theme scored90%from 54 tests.

About plugin

  • Plugin page: diystyle
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.1
  • WordPress version: 6.3.1
  • First release: May 1, 2019
  • Latest release: May 1, 2019
  • Number of updates: 16
  • Update frequency: every 0.1 days
  • Top authors: codevz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /582 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▲0.85ms] Passed 4 tests

A check of server-side resources used by DiyStyle - Elementor addon for Vita Theme
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0245.95 ▲4.09
Dashboard /wp-admin3.36 ▲0.0655.05 ▼2.29
Posts /wp-admin/edit.php3.44 ▲0.0857.10 ▲4.03
Add New Post /wp-admin/post-new.php5.91 ▲0.0299.49 ▲10.15
Media Library /wp-admin/upload.php3.26 ▲0.0335.36 ▼2.42

Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by DiyStyle - Elementor addon for Vita Theme
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /6,224 ▲3,45316.91 ▲2.331.80 ▲0.0045.43 ▲9.18
Dashboard /wp-admin5,633 ▲3,4457.34 ▲2.46190.08 ▲76.2839.22 ▼5.20
Posts /wp-admin/edit.php5,569 ▲3,4775.09 ▲3.0993.27 ▲56.4433.97 ▼1.38
Add New Post /wp-admin/post-new.php4,406 ▲2,89223.70 ▲6.13692.08 ▼5.1437.50 ▼19.05
Media Library /wp-admin/upload.php4,740 ▲3,3494.73 ▲0.53153.55 ▲50.6844.02 ▼6.91

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: dynamic, style, css, elementor, styling

diystyle/diystyle.php Passed 13 tests

The principal PHP file in "DiyStyle - Elementor addon for Vita Theme" v. 1.0 is loaded by WordPress automatically on each request
34 characters long description:
Dynamic styles param for Elementor

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected2,864 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP7801651,227
CSS11358935
JavaScript114280668
SVG10134

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity3.56
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity1.70
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods33
▷ Static methods1648.48%
▷ Public methods3193.94%
▷ Protected methods26.06%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ 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.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png25.24KB11.56KB▼ 54.22%