90% global-elementor-buttons

Code Review | Global Elementor Buttons

WordPress plugin Global Elementor Buttons scored 90% from 54 tests.

About plugin

  • Plugin page: global-elementor-...
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.2
  • WordPress version: 6.3.1
  • First release: Jun 28, 2019
  • Latest release: Jun 29, 2019
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: tausworks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active / 1,137 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 gracefully, with no errors

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

Analyzing server-side resources used by Global Elementor Buttons
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.70 ▼1.13
Dashboard /wp-admin3.32 ▲0.0244.60 ▼7.73
Posts /wp-admin/edit.php3.37 ▲0.0250.67 ▲1.88
Add New Post /wp-admin/post-new.php5.90 ▲0.0283.23 ▼14.16
Media Library /wp-admin/upload.php3.24 ▲0.0239.27 ▲1.53

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Global Elementor Buttons
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲6013.19 ▼1.111.62 ▼0.7140.69 ▼4.54
Dashboard /wp-admin2,223 ▲375.90 ▲0.96108.24 ▼0.0539.57 ▼3.40
Posts /wp-admin/edit.php2,105 ▲162.07 ▲0.0540.87 ▲4.5036.96 ▲4.21
Add New Post /wp-admin/post-new.php1,545 ▲2623.25 ▲0.21595.51 ▼82.5062.91 ▲18.04
Media Library /wp-admin/upload.php1,399 ▲174.25 ▲0.04100.83 ▲2.1139.96 ▼3.39

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: global, buttons, elementor

global-elementor-buttons/tmx_global_elementor_buttons.php 92% from 13 tests

The primary PHP file in "Global Elementor Buttons" version 1.1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("global-elementor-buttons.php" instead of "tmx_global_elementor_buttons.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin329 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP26548328
CSS1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity7.00
▷ Minimum class complexity6.00
▷ Maximum class complexity8.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods20
▷ Static methods630.00%
▷ Public methods1785.00%
▷ Protected methods315.00%
▷ 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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin