Benchmarks
Plugin footprint Passed 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.02MB] [CPU: ▼299.36ms] Passed 4 tests
Server-side resources used by Crypto 2 BGN
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.40 | 58.32 ▲41.00 |
Dashboard /wp-admin | 3.41 ▲0.00 | 36.19 ▼5.46 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 41.19 ▼2.16 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 95.84 ▼1,190.32 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 26.54 ▲0.51 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Crypto 2 BGN
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,775 ▲21 | 16.06 ▲0.21 | 5.81 ▼0.18 | 2.74 ▲0.25 |
Dashboard /wp-admin | 2,904 ▲17 | 6.46 ▼0.08 | 126.36 ▼10.08 | 150.73 ▼12.32 |
Posts /wp-admin/edit.php | 2,688 ▼3 | 3.43 ▲0.00 | 60.47 ▲0.63 | 142.65 ▼2.71 |
Add New Post /wp-admin/post-new.php | 1,717 ▲56 | 21.42 ▲4.79 | 446.30 ▲33.58 | 156.82 ▲6.31 |
Media Library /wp-admin/upload.php | 1,692 ▼6 | 5.72 ▲0.01 | 131.33 ▼16.65 | 187.79 ▼2.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however 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
Please fix the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/crypto2bgn/crypto-2-bgn.php
- > /wp-content/plugins/crypto2bgn/index.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: currencies, converter, coinmarketcap, crypto
crypto2bgn/crypto-2-bgn.php 77% from 13 tests
The principal PHP file in "Crypto 2 BGN" v. 0.8 is loaded by WordPress automatically on each request
It is important to fix the following:
- Domain Path: The domain path folder was not found ("/languages")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("crypto2bgn.php" instead of "crypto-2-bgn.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
No dangerous file extensions were detected90 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Markdown | 1 | 37 | 0 | 51 |
PHP | 2 | 20 | 19 | 39 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
No PNG files were detected