89% devices-elementor

Code Review | Devices for Elementor

WordPress plugin Devices for Elementor scored 89% from 54 tests.

About plugin

  • Plugin page: devices-elementor
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.8
  • WordPress version: 6.3.1
  • First release: Apr 22, 2017
  • Latest release: Jul 5, 2017
  • Number of updates: 24
  • Update frequency: every 3.1 days
  • Top authors: namogo (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

900+ active / 33,762 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.20ms] Passed 4 tests

Server-side resources used by Devices for Elementor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0338.22 ▼2.46
Dashboard /wp-admin3.35 ▲0.0443.46 ▼3.15
Posts /wp-admin/edit.php3.40 ▲0.0445.51 ▼0.84
Add New Post /wp-admin/post-new.php5.95 ▲0.0683.25 ▼18.34
Media Library /wp-admin/upload.php3.27 ▲0.0436.10 ▲2.10

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Devices for Elementor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲9713.24 ▼1.344.39 ▲2.6036.71 ▼4.90
Dashboard /wp-admin2,249 ▲645.86 ▲1.0094.09 ▼8.1638.82 ▼0.99
Posts /wp-admin/edit.php2,131 ▲392.17 ▲0.1843.02 ▲0.9337.19 ▲2.29
Add New Post /wp-admin/post-new.php1,570 ▲5323.36 ▲5.84651.29 ▲19.5949.46 ▼17.98
Media Library /wp-admin/upload.php1,428 ▲434.23 ▲0.03101.68 ▼85.2041.87 ▼22.24

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3 in devices-elementor/assets to your readme.txt
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

devices-elementor/elementor-devices.php 92% from 13 tests

This is the main PHP file of "Devices for Elementor" version 1.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("devices-elementor.php" instead of "elementor-devices.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,056 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP5169221886
SVG6252488
CSS214162
JavaScript27320

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity3.33
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.32
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods22
▷ Static methods418.18%
▷ Public methods1672.73%
▷ Protected methods313.64%
▷ Private methods313.64%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.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
There were not PNG files found in your plugin