83% rometheme-for-elementor

Code Review | RomethemeKit For Elementor

WordPress plugin RomethemeKit For Elementor scored 83% from 54 tests.

About plugin

  • Plugin page: rometheme-for-ele...
  • Plugin version: 1.3.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Jan 6, 2023
  • Latest release: Sep 27, 2023
  • Number of updates: 23
  • Update frequency: every 11.5 days
  • Top authors: dickoandrean (60.87%)rometheme (43.48%)

Code review

54 tests

User reviews

3 reviews

Install metrics

4,000+ active / 13,992 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
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▲5.86ms] Passed 4 tests

An overview of server-side resources used by RomethemeKit For Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0159.81 ▲9.50
Dashboard /wp-admin3.32 ▲0.0155.89 ▲2.14
Posts /wp-admin/edit.php3.43 ▲0.0861.81 ▲11.92
Add New Post /wp-admin/post-new.php5.90 ▲0.01103.37 ▲10.43
Media Library /wp-admin/upload.php3.24 ▲0.0142.37 ▲1.35

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 110 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for RomethemeKit For Elementor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,867 ▲5613.21 ▲0.042.44 ▲0.3044.54 ▲0.63
Dashboard /wp-admin2,236 ▲275.80 ▼0.05106.28 ▼6.3875.34 ▲31.50
Posts /wp-admin/edit.php2,134 ▲481.98 ▼0.0338.65 ▼0.5535.12 ▼0.97
Add New Post /wp-admin/post-new.php1,438 ▼9617.75 ▼5.60786.42 ▲95.0558.00 ▼3.25
Media Library /wp-admin/upload.php1,430 ▲454.26 ▲0.01114.58 ▼4.2552.05 ▲0.99

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

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

SRP 50% from 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
Almost there! Just fix the following items
  • 28× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/rometheme-for-elementor/widgets/rkit_widgets/social_share.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/rometheme-for-elementor/widgets/rkit_widgets/rkit_line_chart.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/rometheme-for-elementor/widgets/rkit_widgets/rkit_blockquote.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/rometheme-for-elementor/widgets/rkit_widgets/rkit_tabs.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_url() in wp-content/plugins/rometheme-for-elementor/modules/Form/form-view.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/rometheme-for-elementor/RomeTheme.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/rometheme-for-elementor/widgets/rkit_widgets/rkit_card_slider.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/rometheme-for-elementor/widgets/rkit_widgets/rkit_team.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/rometheme-for-elementor/widgets/rkit_widgets/rkit_blog_post.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/rometheme-for-elementor/widgets/rkit_widgets/rkit_animated_heading.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes: You can take inspiration from this readme.txt

rometheme-for-elementor/RomeTheme.php 92% from 13 tests

"RomethemeKit For Elementor" version 1.3.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("rometheme-for-elementor.php" instead of "RomeTheme.php")

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
Everything looks great! No dangerous files found in this plugin50,897 lines of code in 91 files:
LanguageFilesBlank linesComment linesLines of code
CSS281,9576522,720
PHP331,73326114,751
JavaScript244,0371,51313,267
SVG51093
JSON10066

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity10.54
▷ Minimum class complexity2.00
▷ Maximum class complexity45.00
Average method complexity1.90
▷ Minimum method complexity1.00
▷ Maximum method complexity44.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes28
▷ Abstract classes00.00%
▷ Concrete classes28100.00%
▷ Final classes00.00%
Methods283
▷ Static methods289.89%
▷ Public methods23884.10%
▷ Protected methods4415.55%
▷ Private methods10.35%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.73MB with 0.46MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
view/images/section-1.png28.60KB11.34KB▼ 60.34%
view/images/logoRT.png12.05KB5.16KB▼ 57.15%
view/images/rometheme.png436.14KB174.37KB▼ 60.02%
view/images/png1.png26.51KB9.22KB▼ 65.20%
view/images/section2.png165.48KB47.03KB▼ 71.58%