84% hide-edit-with-elementor

Code Review | Hide Edit With Elementor

WordPress plugin Hide Edit With Elementor scored84%from 54 tests.

About plugin

  • Plugin page: hide-edit-with-el...
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Oct 26, 2022
  • Latest release: Jan 10, 2023
  • Number of updates: 21
  • Update frequency: every 3.8 days
  • Top authors: StuckOn_dev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /1,156 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

Server-side resources used by Hide Edit With Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.19 ▼1.54
Dashboard /wp-admin3.31 ▲0.0147.55 ▼1.25
Posts /wp-admin/edit.php3.37 ▲0.0046.58 ▼7.73
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.01 ▼13.85
Media Library /wp-admin/upload.php3.24 ▲0.0035.51 ▲0.19

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Hide Edit With Elementor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲7913.30 ▼1.071.70 ▼0.3840.67 ▼8.00
Dashboard /wp-admin2,220 ▲324.88 ▼1.00109.55 ▲4.9142.80 ▼2.54
Posts /wp-admin/edit.php2,102 ▲132.03 ▼0.1340.71 ▼0.8035.70 ▼1.00
Add New Post /wp-admin/post-new.php1,530 ▼323.10 ▼0.07622.63 ▼37.4353.43 ▼8.13
Media Library /wp-admin/upload.php1,399 ▲144.26 ▲0.1397.00 ▼8.7542.12 ▼2.32

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • 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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/hide-edit-with-elementor/hide-edit-with-elementor.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hide-edit-with-elementor/includes/plugin.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (screenshot-1.png shows the setting box on edit pages.) image not found
The official readme.txt might help

hide-edit-with-elementor/hide-edit-with-elementor.php Passed 13 tests

The entry point to "Hide Edit With Elementor" version 1.2.0 is a PHP file that has certain tags in its header comment area
135 characters long description:
Hide the Edit With Elementor button and links for pages and posts that you do not want it used for eg. a front page with custom fields.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin96 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP2863369
JavaScript10414
XML30013

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.74MB with 0.73MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png754.06KB1.69KB▼ 99.78%