89% envato-elements

Code Review | Envato Elements - Photos & Elementor Templates

WordPress plugin Envato Elements - Photos & Elementor Templates scored89%from 54 tests.

About plugin

  • Plugin page: envato-elements
  • Plugin version: 2.0.12
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2
  • WordPress version: 6.3.1
  • First release: Jul 31, 2018
  • Latest release: Apr 17, 2023
  • Number of updates: 110
  • Update frequency: every 15.8 days
  • Top authors: dtbaker (75.45%)envato (19.09%)Brad Davis (6.36%)michaelsharman (1.82%)

Code review

54 tests

User reviews

60 reviews

Install metrics

1,000,000+ active /6,409,091 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼0.23ms] Passed 4 tests

An overview of server-side resources used by Envato Elements - Photos & Elementor Templates
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0332.81 ▼3.52
Dashboard /wp-admin3.35 ▲0.0545.15 ▼0.50
Posts /wp-admin/edit.php3.47 ▲0.1146.11 ▼4.71
Add New Post /wp-admin/post-new.php6.03 ▲0.14108.52 ▲17.70
Media Library /wp-admin/upload.php3.28 ▲0.0541.20 ▲7.82
Welcome /wp-admin/admin.php?page=envato-elements3.2431.04

Server storage [IO: ▲3.48MB] [DB: ▲0.58MB] Passed 3 tests

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 244 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
envato_elements_version
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
envato_elements_install_time
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Envato Elements - Photos & Elementor Templates
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,884 ▲13814.00 ▼0.421.62 ▼0.1639.88 ▼1.86
Dashboard /wp-admin2,287 ▲995.67 ▲0.79110.11 ▲6.4867.12 ▲24.57
Posts /wp-admin/edit.php2,179 ▲902.60 ▲0.6041.56 ▲5.6335.58 ▲4.16
Add New Post /wp-admin/post-new.php1,743 ▲21023.19 ▼0.01663.03 ▼31.1629.21 ▼21.48
Media Library /wp-admin/upload.php1,463 ▲724.99 ▲0.8097.42 ▼0.8578.94 ▲32.93
Template Kits /wp-admin/admin.php?page=envato-elements#/template-kits/premium-kits3,9207.7850.6165.96
Free Blocks /wp-admin/admin.php?page=envato-elements#/template-kits/free-blocks1,1553.1252.7032.13
Settings /wp-admin/admin.php?page=envato-elements#/settings1,2062.9448.3832.92
Installed Kits /wp-admin/admin.php?page=envato-elements#/template-kits/installed-kits1,0372.8841.5130.55
Photos /wp-admin/admin.php?page=envato-elements#/photos2,0154.6043.3038.33
Welcome /wp-admin/admin.php?page=envato-elements1,0112.8144.4131.28
Free Kits /wp-admin/admin.php?page=envato-elements#/template-kits/free-kits1,8925.6480.5343.60

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

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
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Add an image for screenshot #5 (**Envato Elements Photos Inside Elementor.**)
The official readme.txt is a good inspiration

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

Analyzing the main PHP file in "Envato Elements - Photos & Elementor Templates" version 2.0.12
72 characters long description:
Access beautifully designed Template Kits + Photos from Envato Elements.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin34,123 lines of code in 207 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript66,0164,86823,762
JSX1054763874,498
PHP408241,5413,115
Sass4736452,160
CSS4401441
SVG511147

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity14.44
▷ Minimum class complexity1.00
▷ Maximum class complexity50.00
Average method complexity3.73
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes34
▷ Abstract classes411.76%
▷ Concrete classes3088.24%
▷ Final classes00.00%
Methods157
▷ Static methods21.27%
▷ Public methods14894.27%
▷ Protected methods10.64%
▷ Private methods85.10%
Functions11
▷ Named functions436.36%
▷ Anonymous functions763.64%
Constants26
▷ Global constants1661.54%
▷ Class constants1038.46%
▷ Public constants10100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
15 PNG files occupy 1.31MB with 0.86MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/623b705990823b2ece04.png118.27KB38.91KB▼ 67.10%
assets/img/f5dd8db270f82286e8e330efae4d7bc8.png140.06KB39.41KB▼ 71.86%
assets/img/37f916d95a987d2be04618bda81ef636.png67.78KB27.70KB▼ 59.13%
assets/b961b7df6f56f84a1b98.png64.57KB23.80KB▼ 63.15%
assets/97ef867a853d80864ccb.png65.92KB21.50KB▼ 67.38%