89% ecards-lite

Code Review | eCards Lite

WordPress plugin eCards Lite scored89%from 54 tests.

About plugin

  • Plugin page: ecards-lite
  • Plugin version: 4.2.5
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.4
  • WordPress version: 6.3.1
  • First release: Jul 4, 2015
  • Latest release: Oct 26, 2023
  • Number of updates: 45
  • Update frequency: every 67.5 days
  • Top authors: butterflymedia (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active /8,612 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼3.47ms] Passed 4 tests

Server-side resources used by eCards Lite
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1238.29 ▲0.74
Dashboard /wp-admin3.44 ▲0.1346.41 ▼0.10
Posts /wp-admin/edit.php3.49 ▲0.1344.95 ▲3.47
Add New Post /wp-admin/post-new.php6.02 ▲0.1381.77 ▼17.59
Media Library /wp-admin/upload.php3.36 ▲0.1332.49 ▲3.07
eCards Lite /wp-admin/options-general.php?page=ecards3.3230.98

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 28 new options
New WordPress options
ecard_label
ecard_hardcoded_email
ecard_label_success
ecard_body_additional
ecard_send_behaviour
widget_recent-posts
db_upgraded
ecard_link_anchor
ecard_use_akismet
ecard_counter
...

Browser metrics Passed 4 tests

eCards Lite: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.17 ▼0.441.78 ▲0.0944.11 ▲0.73
Dashboard /wp-admin2,201 ▲275.62 ▲0.0790.22 ▼6.1643.26 ▼0.94
Posts /wp-admin/edit.php2,109 ▲92.00 ▼0.0234.80 ▼5.5932.86 ▼5.94
Add New Post /wp-admin/post-new.php1,531 ▼523.12 ▲5.04650.31 ▲27.4660.20 ▼16.10
Media Library /wp-admin/upload.php1,400 ▼04.26 ▲0.0995.52 ▲2.0142.06 ▲0.54
eCards Lite /wp-admin/options-general.php?page=ecards9642.0024.9456.50

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
  • This plugin did not uninstall successfully, leaving 28 options in the database
    • ecard_label_email_friend
    • ecard_counter
    • ecard_submit
    • ecard_restrictions
    • widget_recent-posts
    • ecard_label_email_own
    • db_upgraded
    • ecard_link_anchor
    • ecard_hardcoded_email
    • theysaidso_admin_options
    • ...

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
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (eCards Settings), #2 (eCards Email Settings), #3 (eCards Restrictions and Payment), #4 (eCards Labels), #5 (eCards Dashboard/Help/Usage)
Please take inspiration from this readme.txt

ecards-lite/ecards-lite.php 92% from 13 tests

The main PHP script in "eCards Lite" version 4.2.5 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 354 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin854 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP413655670
CSS266114
XML27870

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
5 compressed PNG files occupy 0.13MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-5.png45.92KB48.77KB0.00%
screenshot-2.png26.32KB27.56KB0.00%
screenshot-1.png27.72KB28.90KB0.00%
screenshot-4.png15.09KB15.49KB0.00%
screenshot-3.png15.17KB15.91KB0.00%