89% themeshark-elementor

Code Review | ThemeShark Templates & Widgets for Elementor

WordPress plugin ThemeShark Templates & Widgets for Elementor scored89%from 54 tests.

About plugin

  • Plugin page: themeshark-elementor
  • Plugin version: 1.1.7
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.8
  • WordPress version: 6.3.1
  • First release: Sep 16, 2021
  • Latest release: Sep 19, 2021
  • Number of updates: 5
  • Update frequency: every 0.6 days
  • Top authors: themeshark (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active /2,351 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
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by ThemeShark Templates & Widgets for Elementor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.48 ▼1.24
Dashboard /wp-admin3.33 ▲0.0248.42 ▼6.39
Posts /wp-admin/edit.php3.38 ▲0.0251.95 ▲2.67
Add New Post /wp-admin/post-new.php5.91 ▲0.0288.96 ▼11.61
Media Library /wp-admin/upload.php3.25 ▲0.0238.78 ▲2.88

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 147 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for ThemeShark Templates & Widgets for Elementor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲1214.25 ▼0.341.66 ▼0.0944.60 ▲2.74
Dashboard /wp-admin2,201 ▲215.54 ▼0.0287.13 ▼6.5241.98 ▼6.44
Posts /wp-admin/edit.php2,112 ▲91.96 ▼0.0134.24 ▼5.5836.06 ▼1.24
Add New Post /wp-admin/post-new.php1,535 ▲623.27 ▲0.09645.72 ▼18.9352.92 ▼2.75
Media Library /wp-admin/upload.php1,412 ▲124.17 ▲0.01108.90 ▲9.1149.93 ▲4.60

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

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 no errors were found, this is by no means an exhaustive test

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
Looking good! No server-side errors or output on direct access of PHP files

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 96% from 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
8 plugin tags: widgets, themeshark, elementor widgets, templates, elementor addon...

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

The main PHP file in "ThemeShark Templates & Widgets for Elementor" ver. 1.1.7 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 148 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin43,482 lines of code in 134 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript342,9632,21121,048
PHP603,5551,48317,672
CSS327542274,183
JSON400455
SVG402124

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity14.66
▷ Minimum class complexity1.00
▷ Maximum class complexity88.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces11
Interfaces0
Traits3
Classes56
▷ Abstract classes58.93%
▷ Concrete classes5191.07%
▷ Final classes1529.41%
Methods672
▷ Static methods12618.75%
▷ Public methods45267.26%
▷ Protected methods14421.43%
▷ Private methods7611.31%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.00%
Constants83
▷ Global constants44.82%
▷ Class constants7995.18%
▷ Public constants79100.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
3 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/themeshark-logo.png35.30KB14.59KB▼ 58.67%
assets/images/placeholder.png6.00KB5.03KB▼ 16.19%
(invalid) assets/images/gravatar-standard.png3.26KB0.00KB▼ 100.00%