83% platonic-support-for-elementor

Code Review | Platonic Support for Elementor

WordPress plugin Platonic Support for Elementor scored83%from 54 tests.

About plugin

  • Plugin page: platonic-support-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2.14+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-5.8
  • WordPress version: 6.3.1
  • First release: Aug 13, 2021
  • Latest release: Aug 13, 2021
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: harris6791 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /287 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
Installer ran successfully

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

A check of server-side resources used by Platonic Support for Elementor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0241.09 ▼0.32
Dashboard /wp-admin3.33 ▲0.0346.74 ▼6.02
Posts /wp-admin/edit.php3.38 ▲0.0247.05 ▼1.80
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.13 ▼7.17
Media Library /wp-admin/upload.php3.25 ▲0.0235.74 ▼0.99

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Platonic Support for Elementor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4514.33 ▼0.191.90 ▲0.3046.74 ▲8.64
Dashboard /wp-admin2,212 ▲355.57 ▼0.0982.81 ▼9.4639.17 ▼6.34
Posts /wp-admin/edit.php2,120 ▲201.97 ▼0.0539.02 ▲5.0639.74 ▲2.40
Add New Post /wp-admin/post-new.php1,550 ▲2423.10 ▲0.09675.23 ▲9.6957.32 ▲1.72
Media Library /wp-admin/upload.php1,417 ▲174.17 ▼0.0696.54 ▼14.9441.53 ▼8.42

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/platonic-support-for-elementor/widgets/product-widgets.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/platonic-support-for-elementor/widgets/posts-widgets.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/platonic-support-for-elementor/widgets/sale-widgets.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif).) image not found
  • Donate link: Invalid URI found ("??????")
You can look at the official readme.txt

platonic-support-for-elementor/platonic-for-elementor.php 85% from 13 tests

The main PHP file in "Platonic Support for Elementor" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("platonic-support-for-elementor.php" instead of "platonic-for-elementor.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin447 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4165343447

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity3.50
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.34
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods29
▷ Static methods13.45%
▷ Public methods2379.31%
▷ Protected methods620.69%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected