90% hash-elements

Code Review | Hash Elements

WordPress plugin Hash Elements scored90%from 54 tests.

About plugin

  • Plugin page: hash-elements
  • Plugin version: 1.3.2
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Jul 1, 2020
  • Latest release: Oct 10, 2023
  • Number of updates: 47
  • Update frequency: every 25.6 days
  • Top authors: hashthemes (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

7,000+ active /84,967 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.19ms] Passed 4 tests

An overview of server-side resources used by Hash Elements
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.11 ▲0.60
Dashboard /wp-admin3.32 ▲0.0246.26 ▼0.30
Posts /wp-admin/edit.php3.38 ▲0.0245.00 ▼7.63
Add New Post /wp-admin/post-new.php5.91 ▲0.0280.95 ▼17.44
Media Library /wp-admin/upload.php3.25 ▲0.0233.39 ▲0.80

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 118 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Hash Elements
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.35 ▲0.031.78 ▲0.2044.47 ▲4.29
Dashboard /wp-admin2,201 ▲215.58 ▼0.0888.29 ▼2.6938.62 ▼6.87
Posts /wp-admin/edit.php2,109 ▲62.13 ▲0.1434.79 ▼3.8435.10 ▲1.79
Add New Post /wp-admin/post-new.php1,532 ▲323.00 ▼0.37669.43 ▼40.3753.21 ▲2.48
Media Library /wp-admin/upload.php1,406 ▲64.19 ▲0.0293.61 ▼1.4643.88 ▲1.46

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: page builder, drag and drop, hashthemes, elementor

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

The principal PHP file in "Hash Elements" v. 1.3.2 is loaded by WordPress automatically on each request
84 characters long description:
Elementor addons for WordPress Themes developed by HashThemes https://hashthemes.com

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
There were no executable files found in this plugin55,781 lines of code in 110 files:
LanguageFilesBlank linesComment linesLines of code
CSS58,23319126,911
PHP923,52749621,668
JavaScript131,6732,5357,202

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of 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.21
Average class complexity9.12
▷ Minimum class complexity1.00
▷ Maximum class complexity35.00
Average method complexity2.59
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces85
Interfaces0
Traits0
Classes91
▷ Abstract classes11.10%
▷ Concrete classes9098.90%
▷ Final classes11.11%
Methods466
▷ Static methods81.72%
▷ Public methods29362.88%
▷ Protected methods16735.84%
▷ Private methods61.29%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants685.71%
▷ Class constants114.29%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/portfolio-small-blank.png2.48KB0.13KB▼ 94.56%
assets/img/banner-shadow.png4.66KB4.72KB0.00%
assets/img/portfolio-small.png3.36KB1.11KB▼ 66.91%
assets/img/magazine-elements.png8.50KB2.55KB▼ 69.98%