74% ewebdevs-elements

Code Review | Ewebdevs Elements

WordPress plugin Ewebdevs Elements scored74%from 54 tests.

About plugin

  • Plugin page: ewebdevs-elements
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.6
  • WordPress version: 6.3.1
  • First release: Mar 15, 2021
  • Latest release: Mar 19, 2021
  • Number of updates: 6
  • Update frequency: every 1.2 days
  • Top authors: naimkst (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /376 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.24MB] [CPU: ▼48.28ms] Passed 4 tests

An overview of server-side resources used by Ewebdevs Elements
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.73 ▼0.7314.09 ▼28.45
Dashboard /wp-admin2.77 ▼0.5415.94 ▼38.32
Posts /wp-admin/edit.php2.77 ▼0.5914.78 ▼41.21
Add New Post /wp-admin/post-new.php2.77 ▼3.1216.80 ▼85.13
Media Library /wp-admin/upload.php2.77 ▼0.4615.39 ▼24.59

Server storage [IO: ▲4.00MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 56 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Ewebdevs Elements
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲7014.26 ▼0.101.84 ▲0.2341.94 ▲1.58
Dashboard /wp-admin2,215 ▲355.63 ▲0.1094.75 ▲2.3443.45 ▲0.02
Posts /wp-admin/edit.php2,117 ▲142.00 ▼0.1139.80 ▲2.5135.80 ▼0.72
Add New Post /wp-admin/post-new.php1,538 ▲1222.99 ▼0.47647.24 ▼45.6054.81 ▲0.54
Media Library /wp-admin/upload.php1,414 ▲204.21 ▼0.0999.26 ▲1.0845.34 ▲4.55

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% 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
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5747
    Function load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available.
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ewebdevselements\\add_action() in wp-content/plugins/ewebdevs-elements/plugin.php:104

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

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: elementor widget, elementor testimonial slider, elementor banner, elementor addons, elementor testimonial section...

ewebdevs-elements/ewebdevs-elements.php Passed 13 tests

This is the main PHP file of "Ewebdevs Elements" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
42 characters long description:
Ewebdevs Elements plugin for custom widget

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected14,752 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
CSS109361689,080
SVG41124,492
PHP6117374660
JavaScript85934438
PO File1314282

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity5.00
▷ Minimum class complexity2.00
▷ Maximum class complexity8.00
Average method complexity1.59
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods27
▷ Static methods13.70%
▷ Public methods2281.48%
▷ Protected methods414.81%
▷ Private methods13.70%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.71MB with 0.37MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/bg9.png384.00KB131.43KB▼ 65.77%
assets/images/resources/testi-bg.png44.59KB17.37KB▼ 61.06%
assets/js/skins/default/lightbox-close.png1.49KB1.13KB▼ 23.88%
assets/images/resources/bg1.png299.15KB128.27KB▼ 57.12%