84% suprementor

Code Review | Supreme Products & Posts for Elementor

WordPress plugin Supreme Products & Posts for Elementor scored84%from 54 tests.

About plugin

  • Plugin page: suprementor
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.6
  • WordPress version: 6.3.1
  • First release: Jan 26, 2021
  • Latest release: Jan 26, 2021
  • Number of updates: 2
  • Update frequency: every 3.0 days
  • Top authors: suprementor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /257 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.05MB] [CPU: ▼7.83ms] Passed 4 tests

An overview of server-side resources used by Supreme Products & Posts for Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0534.87 ▼3.33
Dashboard /wp-admin3.35 ▲0.0547.83 ▲5.15
Posts /wp-admin/edit.php3.40 ▲0.0541.91 ▼9.49
Add New Post /wp-admin/post-new.php5.94 ▲0.0579.88 ▼14.61
Media Library /wp-admin/upload.php3.28 ▲0.0533.82 ▼3.90

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 160 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Supreme Products & Posts for Elementor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7213.21 ▼1.091.86 ▲0.3641.35 ▲4.21
Dashboard /wp-admin2,218 ▲264.86 ▼0.07103.55 ▼16.3541.93 ▼2.23
Posts /wp-admin/edit.php2,106 ▲172.05 ▲0.0036.89 ▼3.3630.15 ▼3.34
Add New Post /wp-admin/post-new.php1,542 ▲918.28 ▼4.57641.53 ▼14.7262.49 ▲8.62
Media Library /wp-admin/upload.php1,403 ▲154.23 ▼0.0297.02 ▼2.8640.62 ▼1.10

Uninstaller [IO: ▲0.00MB] [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
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Please take a closer look at the following
  • 22× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/suprementor/modules/author-info/widgets/author-info.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Suprementor\\Base\\Module_Base' not found in wp-content/plugins/suprementor/modules/author-info/module.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/suprementor/modules/post-archive/widgets/post-archive.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Group_Control_Base' not found in wp-content/plugins/suprementor/group-controls/get-posts.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/suprementor/modules/product-category-box/widgets/product-category-box.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Group_Control_Base' not found in wp-content/plugins/suprementor/group-controls/get-post.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/suprementor/modules/post-archive-nav/widgets/post-archive-nav.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Suprementor\\Base\\Module_Base' not found in wp-content/plugins/suprementor/modules/post-list/module.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Suprementor\\Base\\Module_Base' not found in wp-content/plugins/suprementor/modules/product-category-box/module.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Suprementor\\Base\\Module_Base' not found in wp-content/plugins/suprementor/modules/post-box/module.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

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
No plugin tags provided

suprementor/suprementor.php Passed 13 tests

"Supreme Products & Posts for Elementor" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
64 characters long description:
Database powered Elementor widgets for building blogs and shops.

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
Everything looks great! No dangerous files found in this plugin22,814 lines of code in 159 files:
LanguageFilesBlank linesComment linesLines of code
PHP1564,4982,32514,548
CSS102,8758,264
JavaScript2222

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity4.45
▷ Minimum class complexity1.00
▷ Maximum class complexity34.00
Average method complexity1.93
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces41
Interfaces0
Traits0
Classes155
▷ Abstract classes10.65%
▷ Concrete classes15499.35%
▷ Final classes00.00%
Methods573
▷ Static methods20235.25%
▷ Public methods54795.46%
▷ Protected methods254.36%
▷ Private methods10.17%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants233.33%
▷ Class constants466.67%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin