Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.81ms] Passed 4 tests
Analyzing server-side resources used by Deprecated EMS Pay for WooCommerce plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.42 ▼1.03 |
Dashboard /wp-admin | 3.31 ▲0.00 | 50.27 ▼2.26 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.96 ▲0.84 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.77 ▼24.75 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.35 ▼3.21 |
Server storage [IO: ▲1.12MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 51 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Deprecated EMS Pay for WooCommerce plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.22 ▼1.16 | 1.70 ▼0.57 | 40.58 ▼1.45 |
Dashboard /wp-admin | 2,206 ▲15 | 5.88 ▲0.03 | 107.88 ▲4.82 | 55.88 ▲13.01 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 1.99 ▼0.15 | 36.90 ▼0.05 | 34.19 ▼2.02 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.19 ▲5.67 | 681.05 ▲48.25 | 48.30 ▼11.35 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.25 ▲0.02 | 98.70 ▼4.61 | 44.73 ▼2.24 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/ems-payments-for-woocommerce/includes/core/example.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 24 tag instead of maximum 10
ems-payments-for-woocommerce/ems-payments-for-woocommerce.php 85% from 13 tests
The main file in "Deprecated EMS Pay for WooCommerce plugin" v. 1.1.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- 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
- Requires at least: The required version number must match the one declared in readme.txt ("4.4" instead of "3.0")
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
Good job! No executable or dangerous file extensions detected2,351 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 602 | 712 | 2,212 |
Markdown | 2 | 19 | 0 | 64 |
Bourne Shell | 1 | 20 | 9 | 61 |
JavaScript | 1 | 3 | 4 | 14 |
PHP code Passed 2 tests
Analyzing 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 code | 0.25 |
Average class complexity | 10.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 1.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 1 | 5.56% |
▷ Concrete classes | 17 | 94.44% |
▷ Final classes | 2 | 11.76% |
Methods | 202 | |
▷ Static methods | 29 | 14.36% |
▷ Public methods | 108 | 53.47% |
▷ Protected methods | 80 | 39.60% |
▷ Private methods | 14 | 6.93% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 47 | |
▷ Global constants | 3 | 6.38% |
▷ Class constants | 44 | 93.62% |
▷ Public constants | 44 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 PNG files occupy 0.43MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icons/discover.png | 3.75KB | 1.66KB | ▼ 55.60% |
assets/images/icons/bancontact.png | 4.10KB | 1.73KB | ▼ 57.91% |
assets/icon-256x256.png | 17.06KB | 6.92KB | ▼ 59.44% |
assets/images/icons/klarna.png | 2.93KB | 1.23KB | ▼ 58.14% |
assets/images/icons/masterpass.png | 3.97KB | 1.88KB | ▼ 52.67% |