Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▼4.94ms] Passed 4 tests
Analyzing server-side resources used by PAYPAL CURRENCY CONVERTER BASIC FOR WOOCOMMERCE
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 38.99 ▼3.61 |
Dashboard /wp-admin | 3.53 ▲0.23 | 47.96 ▼1.88 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 44.57 ▼0.94 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.23 | 86.25 ▼13.34 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 38.50 ▲3.52 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by PAYPAL CURRENCY CONVERTER BASIC FOR WOOCOMMERCE
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.48 ▲0.21 | 1.73 ▼0.47 | 43.51 ▼8.82 |
Dashboard /wp-admin | 2,206 ▲18 | 5.85 ▼0.00 | 102.99 ▼3.41 | 39.70 ▼3.02 |
Posts /wp-admin/edit.php | 2,086 ▼0 | 2.00 ▼0.04 | 36.63 ▼1.32 | 32.29 ▼1.21 |
Add New Post /wp-admin/post-new.php | 1,547 ▲14 | 18.34 ▼4.72 | 610.26 ▼2.51 | 45.14 ▼17.13 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.17 ▼0.05 | 96.29 ▼18.22 | 41.66 ▼5.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
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
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATH/wp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/paypal-currency-converter-basic-for-woocommerce/functions.php on line 9
- > PHP Warning
require_once(ABSPATH/wp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/paypal-currency-converter-basic-for-woocommerce/functions.php on line 9
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/paypal-currency-converter-basic-for-woocommerce/functions.php on line 9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
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 to be fixed:
- Tags: You are using too many tags: 16 tag instead of maximum 10
paypal-currency-converter-basic-for-woocommerce/paypalcc-basic.php 85% from 13 tests
The main file in "PAYPAL CURRENCY CONVERTER BASIC FOR WOOCOMMERCE" v. 3.3.1 Basic... 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:
- Version: The version number should be digits and periods (ex. "1.0.3" instead of "3.3.1 Basic...")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("paypal-currency-converter-basic-for-woocommerce.php" instead of "paypalcc-basic.php")
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
There were no executable files found in this plugin1,177 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 256 | 145 | 1,078 |
JavaScript | 2 | 15 | 22 | 62 |
PO File | 1 | 9 | 16 | 37 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 120.00 |
▷ Minimum class complexity | 120.00 |
▷ Maximum class complexity | 120.00 |
Average method complexity | 6.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
4 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/easycron-logo.png | 7.20KB | 2.84KB | ▼ 60.55% |
assets/images/intelligent-it-logo.png | 8.89KB | 3.76KB | ▼ 57.70% |
assets/images/PPCC-PRO-icon-36x36.png | 3.55KB | 2.02KB | ▼ 43.10% |
assets/images/PPCC-PRO-icon-80x80.png | 13.44KB | 4.86KB | ▼ 63.82% |