90% wrapper-link-elementor

Code Review | Wrapper Link Elementor

WordPress plugin Wrapper Link Elementor scored90%from 54 tests.

About plugin

  • Plugin page: wrapper-link-elem...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Jan 13, 2023
  • Latest release: Jan 13, 2023
  • Number of updates: 6
  • Update frequency: every 17.2 days
  • Top authors: pedrogusmao02 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active /1,522 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.03MB] [CPU: ▼10.94ms] Passed 4 tests

Analyzing server-side resources used by Wrapper Link Elementor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.46 ▼8.72
Dashboard /wp-admin3.34 ▼0.0050.88 ▼18.07
Posts /wp-admin/edit.php3.39 ▲0.0454.18 ▲2.71
Add New Post /wp-admin/post-new.php5.92 ▲0.0496.21 ▼19.52
Media Library /wp-admin/upload.php3.26 ▲0.0441.29 ▲2.55

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Wrapper Link Elementor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲3514.27 ▼0.291.75 ▼0.2139.69 ▼3.40
Dashboard /wp-admin2,209 ▲325.56 ▼0.0486.18 ▼10.0343.12 ▲4.67
Posts /wp-admin/edit.php2,117 ▲171.99 ▲0.0235.69 ▼2.2933.10 ▼2.27
Add New Post /wp-admin/post-new.php1,549 ▲2318.28 ▼4.74643.91 ▼43.2275.15 ▲21.42
Media Library /wp-admin/upload.php1,417 ▲174.21 ▲0.01100.92 ▼7.3641.94 ▼6.82

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
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 just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: elementor, link

wrapper-link-elementor/wrapper.php 92% from 13 tests

The principal PHP file in "Wrapper Link Elementor" v. 1.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wrapper-link-elementor.php" instead of "wrapper.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected207 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP4176128165
JavaScript132529
CSS10013

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.14
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods7
▷ Static methods114.29%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin