10% wordpress-easy-allopass

Code Review | Wp Easy Allopass

WordPress plugin Wp Easy Allopass scored 10% from 54 tests.

About plugin

  • Plugin page: wordpress-easy-al...
  • Plugin version: 4.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-5.3
  • WordPress version: 5.8.1
  • First release: Oct 6, 2011
  • Latest release: Dec 4, 2019
  • Number of updates: 61
  • Update frequency: every 48.9 days
  • Top authors: Hasina77 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 7,328 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/wordpress-easy-allopass/wp-easy-allopass.php+40
    Undefined index: HTTPS

Server metrics [RAM: ▼1.76MB] [CPU: ▼196.80ms] Passed 4 tests

Server-side resources used by Wp Easy Allopass
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /1.87 ▼0.855.12 ▼23.05
Dashboard /wp-admin1.88 ▼1.179.58 ▼32.81
Posts /wp-admin/edit.php1.89 ▼1.226.09 ▼39.45
Add New Post /wp-admin/post-new.php1.89 ▼3.555.35 ▼678.70
Media Library /wp-admin/upload.php1.89 ▼1.127.62 ▼36.24
Wp Easy Allopass /wp-admin/options-general.php?page=Wp-Easy-Allopass1.895.54

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 24 new files
Database: 2 new tables, no new options
New tables
wp_weallopass_prod
wp_weallopass_stat

Browser metrics Passed 4 tests

This is an overview of browser requirements for Wp Easy Allopass
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲8815.95 ▲0.369.10 ▼3.5646.31 ▼1.43
Dashboard /wp-admin2,997 ▲665.97 ▼0.19147.48 ▼8.84109.85 ▲5.66
Posts /wp-admin/edit.php2,744 ▲52.71 ▼0.0064.94 ▼3.1790.09 ▼1.11
Add New Post /wp-admin/post-new.php1,686 ▲8218.82 ▲0.27400.02 ▼36.82103.41 ▼13.24
Media Library /wp-admin/upload.php1,812 ▲25.04 ▲0.00157.29 ▲3.66115.17 ▼24.60
Wp Easy Allopass /wp-admin/options-general.php?page=Wp-Easy-Allopass1,6032.0656.1579.19

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/wordpress-easy-allopass/wp-easy-allopass.php+40
    Undefined index: HTTPS
  • The uninstall procedure failed, leaving 2 tables in the database
    • wp_weallopass_stat
    • wp_weallopass_prod

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=Wp-Easy-Allopass
    • > Notice in wp-content/plugins/wordpress-easy-allopass/wp-easy-allopass.php+40
    Undefined index: HTTPS
    • > GET request to /wp-admin/options-general.php?page=Wp-Easy-Allopass
    • > Notice in wp-content/plugins/wordpress-easy-allopass/wp-easy-allopass.php+67
    Undefined index: DATAS
    • > GET request to /wp-admin/options-general.php?page=Wp-Easy-Allopass
    • > Notice in wp-content/plugins/wordpress-easy-allopass/wp-easy-allopass_admin.php+180
    Undefined variable: id_site
    • > GET request to /wp-admin/options-general.php?page=Wp-Easy-Allopass
    • > Notice in wp-content/plugins/wordpress-easy-allopass/wp-easy-allopass_admin.php+184
    Undefined variable: id_produit
    • > GET request to /wp-admin/options-general.php?page=Wp-Easy-Allopass
    • > User deprecated in wp-includes/functions.php+5495
    get_bloginfo was called with an argument that is deprecated since version 2.2.0! The siteurl option is deprecated for the family of bloginfo() functions. Use the url option instead.

SRP 0% 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
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/wordpress-easy-allopass/index.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wordpress-easy-allopass/wp-easy-allopass.php:29
    • > PHP Fatal error
      Uncaught Error: Call to a member function flush() on null in wp-content/plugins/wordpress-easy-allopass/wp-easy-allopass_admin.php:3

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)
No browser errors were detected

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Screenshots: These screenshots require images: #1 (Wp easy allopass - Add product screen.), #2 (Wp Easy Allopass - Product list screen), #3 (Wp Easy Allopass - Sales statistics), #4 (Wp Easy Allopass - Shortcode instructions.), #5 (Wp Easy Allopass - Frontend (Example).)
  • Plugin Name: You should set the name of your plugin on the first line ( === wordpress-easy-allopass === )
  • Tags: There are too many tags (17 tag instead of maximum 10)
The official readme.txt might help

wordpress-easy-allopass/wp-easy-allopass.php 77% from 13 tests

"Wp Easy Allopass" version 4.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("wordpress-easy-allopass.php" instead of "wp-easy-allopass.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 547 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected970 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP55156794
PO File16211176

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants132
▷ Global constants132100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
image/fiche.png0.23KB0.13KB▼ 45.00%
image/active.png0.99KB0.16KB▼ 84.37%
image/site.png0.28KB0.17KB▼ 39.01%
image/edit.png0.34KB0.21KB▼ 37.64%
image/suppr.png0.24KB0.13KB▼ 45.08%