Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.80MB] [CPU: ▲10.12ms] Passed 4 tests
An overview of server-side resources used by wp-greet
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.27 ▲0.81 | 55.89 ▲9.20 |
Dashboard /wp-admin | 4.10 ▲0.79 | 63.25 ▲8.79 |
Posts /wp-admin/edit.php | 4.15 ▲0.79 | 65.28 ▲8.28 |
Add New Post /wp-admin/post-new.php | 6.70 ▲0.81 | 112.38 ▲14.22 |
Media Library /wp-admin/upload.php | 4.04 ▲0.81 | 52.98 ▲14.71 |
Mail /wp-admin/admin.php?page=wp-greet/wpg-admin-mail.php | 3.99 | 46.31 |
Security /wp-admin/admin.php?page=wp-greet/wpg-admin-sec.php | 3.99 | 45.90 |
Galleries /wp-admin/admin.php?page=wp-greet/wpg-admin-gal.php | 3.99 | 45.04 |
Logging /wp-admin/admin.php?page=wp-greet/wpg-admin-log.php | 3.99 | 48.83 |
wp-greet /wp-admin/admin.php?page=wp-greet/wpg-admin.php | 3.99 | 46.13 |
Server storage [IO: ▲7.00MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 368 new files
Database: 2 new tables, 38 new options
New tables |
---|
wp_wpgreet_cards |
wp_wpgreet_stats |
New WordPress options |
---|
wp-greet-mailconfirm |
db_upgraded |
wp-greet-autofillform |
wp-greet-tinymce |
can_compress_scripts |
wp-greet-ectext |
widget_recent-posts |
wp-greet-termsofusage |
wp-greet-stampimage |
wp-greet-usesmtp |
... |
Browser metrics Passed 4 tests
Checking browser requirements for wp-greet
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,854 ▲68 | 14.24 ▼0.12 | 2.03 ▼0.45 | 39.89 ▼8.02 |
Dashboard /wp-admin | 2,238 ▲58 | 5.56 ▼0.05 | 103.22 ▲7.31 | 87.79 ▲49.66 |
Posts /wp-admin/edit.php | 2,154 ▲54 | 2.03 ▼0.00 | 38.50 ▼1.41 | 36.64 ▲0.63 |
Add New Post /wp-admin/post-new.php | 1,564 ▲38 | 23.07 ▲0.08 | 709.76 ▲15.14 | 148.41 ▲87.32 |
Media Library /wp-admin/upload.php | 1,448 ▲51 | 4.14 ▼0.08 | 105.41 ▲5.19 | 77.92 ▲33.54 |
Mail /wp-admin/admin.php?page=wp-greet/wpg-admin-mail.php | 1,063 | 2.05 | 24.76 | 30.64 |
Security /wp-admin/admin.php?page=wp-greet/wpg-admin-sec.php | 1,104 | 2.18 | 23.92 | 27.58 |
Galleries /wp-admin/admin.php?page=wp-greet/wpg-admin-gal.php | 865 | 2.20 | 26.72 | 28.09 |
Logging /wp-admin/admin.php?page=wp-greet/wpg-admin-log.php | 885 | 2.02 | 27.41 | 33.26 |
wp-greet /wp-admin/admin.php?page=wp-greet/wpg-admin.php | 1,301 | 2.03 | 25.72 | 31.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_wpgreet_cards
- wp_wpgreet_stats
- Zombie WordPress options detected upon uninstall: 38 options
- wp-greet-usesmtp
- wp-greet-linesperpage
- can_compress_scripts
- wp-greet-carddays
- wp-greet-fields
- wp-greet-termsofusage
- wp-greet-onlinecard
- wp-greet-captcha
- wp-greet-smtp-port
- db_upgraded
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 11× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/wp-greet/wpg-admin.php
- > /wp-content/plugins/wp-greet/wpg-admin-gal.php
- > /wp-content/plugins/wp-greet/wpg-func-mail6.php
- > /wp-content/plugins/wp-greet/wpg-admin-mail.php
- > /wp-content/plugins/wp-greet/wpg-func.php
- > /wp-content/plugins/wp-greet/setup.php
- > /wp-content/plugins/wp-greet/wpg-admin-reschedule.php
- > /wp-content/plugins/wp-greet/wp-greet.php
- > /wp-content/plugins/wp-greet/wpg-admin-log.php
- > /wp-content/plugins/wp-greet/wpg-func-mail.php
- 39× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
imagescale() expects parameter 1 to be resource, bool given in wp-content/plugins/wp-greet/wpg-stamped.php on line 83
- > PHP Warning
imagesy() expects parameter 1 to be resource, null given in wp-content/plugins/wp-greet/wpg-stamped.php on line 85
- > PHP Notice
Undefined index: sti in wp-content/plugins/wp-greet/wpg-stamped.php on line 25
- > PHP Warning
file_get_contents(): Filename cannot be empty in wp-content/plugins/wp-greet/wpg-stamped.php on line 43
- > PHP Warning
imagedestroy() expects parameter 1 to be resource, bool given in wp-content/plugins/wp-greet/wpg-stamped.php on line 107
- > PHP Warning
file_get_contents(): Filename cannot be empty in wp-content/plugins/wp-greet/wpg-stamped.php on line 42
- > PHP Notice
Undefined variable: s in wp-content/plugins/wp-greet/wpg-stamped.php on line 70
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/wp-greet/templates/wp-greet-form-template.php on line 53
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-greet/wpg-offerstamp.php:139
- > PHP Warning
imagedestroy() expects parameter 1 to be resource, null given in wp-content/plugins/wp-greet/wpg-stamped.php on line 109
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: email, send, plugin, greetcard, greetingcard
wp-greet/wp-greet.php Passed 13 tests
"wp-greet" version 6.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
79 characters long description:
wp-greet is a WordPress plugin to send greeting cards from your WordPress blog.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin44,446 lines of code in 295 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 162 | 871 | 1,013 | 20,228 |
PO File | 19 | 3,102 | 3,975 | 7,476 |
CSS | 14 | 28 | 235 | 7,279 |
TypeScript | 81 | 5 | 0 | 4,897 |
PHP | 19 | 1,027 | 1,214 | 4,566 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 66 | |
▷ Named functions | 66 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
15 PNG files occupy 0.14MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
stamps/TuxStamp3.png | 7.30KB | 6.22KB | ▼ 14.81% |
stamps/TuxStamp4.png | 7.38KB | 4.91KB | ▼ 33.51% |
tuxstamp4.png | 7.38KB | 4.91KB | ▼ 33.51% |
tuxstamp1.png | 14.68KB | 8.57KB | ▼ 41.59% |
stamps/TuxStamp1.png | 14.68KB | 8.57KB | ▼ 41.59% |