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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.11 ▲0.60 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.26 ▼0.30 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 45.00 ▼7.63 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 80.95 ▼17.44 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.35 ▲0.03 | 1.78 ▲0.20 | 44.47 ▲4.29 |
Dashboard /wp-admin | 2,201 ▲21 | 5.58 ▼0.08 | 88.29 ▼2.69 | 38.62 ▼6.87 |
Posts /wp-admin/edit.php | 2,109 ▲6 | 2.13 ▲0.14 | 34.79 ▼3.84 | 35.10 ▲1.79 |
Add New Post /wp-admin/post-new.php | 1,532 ▲3 | 23.00 ▼0.37 | 669.43 ▼40.37 | 53.21 ▲2.48 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.19 ▲0.02 | 93.61 ▼1.46 | 43.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 8,233 | 191 | 26,911 |
PHP | 92 | 3,527 | 496 | 21,668 |
JavaScript | 13 | 1,673 | 2,535 | 7,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 code | 0.21 |
Average class complexity | 9.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 2.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 85 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 91 | |
▷ Abstract classes | 1 | 1.10% |
▷ Concrete classes | 90 | 98.90% |
▷ Final classes | 1 | 1.11% |
Methods | 466 | |
▷ Static methods | 8 | 1.72% |
▷ Public methods | 293 | 62.88% |
▷ Protected methods | 167 | 35.84% |
▷ Private methods | 6 | 1.29% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 6 | 85.71% |
▷ Class constants | 1 | 14.29% |
▷ Public constants | 1 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/portfolio-small-blank.png | 2.48KB | 0.13KB | ▼ 94.56% |
assets/img/banner-shadow.png | 4.66KB | 4.72KB | 0.00% |
assets/img/portfolio-small.png | 3.36KB | 1.11KB | ▼ 66.91% |
assets/img/magazine-elements.png | 8.50KB | 2.55KB | ▼ 69.98% |