84% elvez-edit-powered-by

Code Review | Elvez Edit Powered By

WordPress plugin Elvez Edit Powered By scored84%from 54 tests.

About plugin

  • Plugin page: elvez-edit-powere...
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.8
  • WordPress version: 6.3.1
  • First release: Aug 10, 2020
  • Latest release: Aug 23, 2021
  • Number of updates: 10
  • Update frequency: every 37.8 days
  • Top authors: elvezcojp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /775 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.79ms] Passed 4 tests

A check of server-side resources used by Elvez Edit Powered By
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0340.75 ▲0.33
Dashboard /wp-admin3.33 ▲0.0243.97 ▼5.57
Posts /wp-admin/edit.php3.44 ▲0.0844.35 ▲0.62
Add New Post /wp-admin/post-new.php5.92 ▲0.0481.79 ▼14.53
Media Library /wp-admin/upload.php3.25 ▲0.0236.47 ▲1.92
Edit Powerd-by /wp-admin/admin.php?page=elvez-edit-powered-by3.2130.55

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Elvez Edit Powered By
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,915 ▲18013.52 ▼0.868.91 ▲7.0942.93 ▼6.39
Dashboard /wp-admin2,236 ▲484.89 ▼0.21103.33 ▼13.4543.00 ▼1.14
Posts /wp-admin/edit.php2,113 ▲242.04 ▲0.0536.78 ▲0.0130.54 ▼4.78
Add New Post /wp-admin/post-new.php1,537 ▲323.38 ▲0.40673.41 ▲24.4463.12 ▲3.75
Media Library /wp-admin/upload.php1,415 ▲244.20 ▼0.0099.22 ▼1.7743.13 ▼0.88
Edit Powerd-by /wp-admin/admin.php?page=elvez-edit-powered-by8142.0424.3325.63

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • elvez_edit_powered_by_powered_by_text
    • elvez_edit_powered_by_powered_by_url

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please take a closer look at the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/elvez-edit-powered-by/public/partials/elvez-edit-powered-by-public-display.php
    • > /wp-content/plugins/elvez-edit-powered-by/admin/partials/elvez-edit-powered-by-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% 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
4 plugin tags: copyright, powered_by, theme, footer

elvez-edit-powered-by/elvez-edit-powered-by.php 85% from 13 tests

Analyzing the main PHP file in "Elvez Edit Powered By" version 1.0.3
Please take the time to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.0" instead of "5.2")
  • Requires PHP: The required version number must match the one declared in readme.txt ("7.4" instead of "7.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected509 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP12152625280
CSS33042212
JavaScript262717

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity2.14
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.26
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods31
▷ Static methods412.90%
▷ Public methods2683.87%
▷ Protected methods00.00%
▷ Private methods516.13%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants16
▷ Global constants16.25%
▷ Class constants1593.75%
▷ Public constants15100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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