83% e-namad-shamed-logo-manager

Code Review | E-namad & Shamed Logo Manager

WordPress plugin E-namad & Shamed Logo Manager scored83%from 54 tests.

About plugin

  • Plugin page: e-namad-shamed-lo...
  • Plugin version: 2.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.5
  • WordPress version: 6.3.1
  • First release: Aug 14, 2020
  • Latest release: Aug 20, 2020
  • Number of updates: 14
  • Update frequency: every 0.4 days
  • Top authors: yazdaniwp (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

2,000+ active /13,758 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
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼7.67ms] Passed 4 tests

A check of server-side resources used by E-namad & Shamed Logo Manager
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0937.72 ▼2.07
Dashboard /wp-admin3.39 ▲0.0445.91 ▼14.28
Posts /wp-admin/edit.php3.50 ▲0.1443.77 ▼2.92
Add New Post /wp-admin/post-new.php5.97 ▲0.0879.69 ▼11.39
Media Library /wp-admin/upload.php3.31 ▲0.0834.64 ▲1.56
تنظیمات لوگوی اینماد /wp-admin/options-general.php?page=enamad-logo-manager-options3.2832.22

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 10 new options
New WordPress options
widget_recent-posts
widget_ywp-widget-enamad
widget_theysaidso_widget
widget_ywp-widget-shamed
widget_recent-comments
widget_ywp-widget-esl-all
theysaidso_admin_options
db_upgraded
widget_ywp-widget-zarrinpal
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for E-namad & Shamed Logo Manager
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.28 ▼0.071.69 ▲0.0643.59 ▲4.83
Dashboard /wp-admin2,199 ▲185.51 ▼0.2183.61 ▼10.7342.02 ▼0.15
Posts /wp-admin/edit.php2,104 ▲41.94 ▼0.0737.27 ▲1.3136.04 ▼2.25
Add New Post /wp-admin/post-new.php1,534 ▲623.38 ▲0.68660.92 ▼1.5050.10 ▼10.17
Media Library /wp-admin/upload.php1,404 ▲104.20 ▲0.0894.84 ▼15.6946.62 ▲0.08
تنظیمات لوگوی اینماد /wp-admin/options-general.php?page=enamad-logo-manager-options9071.9926.7063.90

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 10 options
    • widget_ywp-widget-shamed
    • widget_ywp-widget-zarrinpal
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_ywp-widget-enamad
    • db_upgraded
    • widget_ywp-widget-esl-all
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 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 50% from 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
The following issues need your attention
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/e-namad-shamed-logo-manager/templates/option-page.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/e-namad-shamed-logo-manager/widget/class-widget-all.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/e-namad-shamed-logo-manager/widget/class-widget-enamad.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/e-namad-shamed-logo-manager/widget/class-widget-zarrin.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/e-namad-shamed-logo-manager/widget/class-widget-shamed.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: You should set the name of your plugin on the first line ( === e-namad-shamed-logo-manager === )
  • Screenshots: Add descriptions for screenshots #1, #2, #3, #4 in e-namad-shamed-logo-manager/assets to your readme.txt
The official readme.txt is a good inspiration

e-namad-shamed-logo-manager/index.php 92% from 13 tests

Analyzing the main PHP file in "E-namad & Shamed Logo Manager" version 2.2
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("e-namad-shamed-logo-manager.php" instead of "index.php")

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 detected318 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP67013318

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity5.20
▷ Minimum class complexity2.00
▷ Maximum class complexity17.00
Average method complexity1.81
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods26
▷ Static methods00.00%
▷ Public methods26100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.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