84% spark-for-elementor

Code Review | Themexriver Addon

WordPress plugin Themexriver Addon scored84%from 54 tests.

About plugin

  • Plugin page: spark-for-elementor
  • Plugin version: 0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Jan 18, 2023
  • Latest release: Jan 18, 2023
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: themexriver1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /143 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.15MB] [CPU: ▼9.74ms] Passed 4 tests

An overview of server-side resources used by Themexriver Addon
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1332.85 ▼13.24
Dashboard /wp-admin3.46 ▲0.1552.26 ▲2.87
Posts /wp-admin/edit.php3.58 ▲0.2149.49 ▼4.71
Add New Post /wp-admin/post-new.php6.06 ▲0.1784.80 ▼20.46
Media Library /wp-admin/upload.php3.39 ▲0.1536.76 ▼0.56

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Themexriver Addon
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲6914.14 ▼0.212.71 ▲0.6345.42 ▲2.10
Dashboard /wp-admin2,209 ▲295.60 ▼0.0697.86 ▲8.0240.23 ▼4.46
Posts /wp-admin/edit.php2,112 ▲122.13 ▲0.1137.09 ▼2.7532.03 ▼4.62
Add New Post /wp-admin/post-new.php1,539 ▲221.03 ▲2.78641.71 ▼4.8747.45 ▼19.11
Media Library /wp-admin/upload.php1,411 ▲114.26 ▲0.05107.05 ▼1.2842.87 ▼4.64

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

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

Smoke tests 75% from 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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 72× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/spark-for-elementor/widgets/common/client/view.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_json_encode() in wp-content/plugins/spark-for-elementor/widgets/common/scroll-feedback/view.php:36
    • > PHP Fatal error
      Uncaught Error: Class 'Themexriver_Addon\\Themexriver_Addon_Helper' not found in wp-content/plugins/spark-for-elementor/widgets/common/iconbox-1/view.php:3
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/spark-for-elementor/widgets/common/team/view.php on line 8
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/spark-for-elementor/widgets/common/scroll-feedback/view.php on line 11
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/spark-for-elementor/widgets/common/client/view.php on line 5
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/spark-for-elementor/widgets/common/client/view.php on line 6
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/spark-for-elementor/widgets/common/accordion/view.php:4
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/spark-for-elementor/widgets/common/scroll-feedback/view.php on line 6
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/spark-for-elementor/widgets/common/team/view.php on line 5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

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
5 plugin tags: elementor widgets, addons, header footer, elementor, template library

spark-for-elementor/index.php 92% from 13 tests

The main file in "Themexriver Addon" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("spark-for-elementor.php" instead of "index.php")

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 detected6,182 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
PHP25529583,687
CSS399111,345
JavaScript318091783
SVG100362
JSON1205

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity3.88
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods92
▷ Static methods2122.83%
▷ Public methods7682.61%
▷ Protected methods1617.39%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin