Benchmarks
Plugin footprint 65% 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.02MB] [CPU: ▼5.62ms] Passed 4 tests
A check of server-side resources used by Current currency status
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 35.15 ▼6.66 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.00 ▼4.01 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 52.92 ▲4.61 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 80.47 ▼15.76 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 41.61 ▲3.94 |
Server storage [IO: ▲0.89MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Current currency status: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,912 ▲141 | 13.61 ▼1.01 | 7.81 ▲5.73 | 40.44 ▼6.08 |
Dashboard /wp-admin | 2,233 ▲59 | 4.92 ▼0.03 | 110.87 ▼12.10 | 73.24 ▲23.43 |
Posts /wp-admin/edit.php | 2,113 ▲24 | 2.03 ▼0.02 | 39.47 ▲3.14 | 39.40 ▲4.75 |
Add New Post /wp-admin/post-new.php | 1,689 ▲156 | 22.67 ▼0.67 | 695.17 ▲14.93 | 30.76 ▼22.25 |
Media Library /wp-admin/upload.php | 1,406 ▲21 | 4.20 ▼0.06 | 124.24 ▲12.87 | 49.32 ▲2.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Current_currency_status::ccStatus_deactivation_hook() should not be called statically
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/current-currency-status/inc/ccs-admin-layout.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/current-currency-status/inc/ccs-front-end.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots need descriptions #4, #5 in current-currency-status/assets to your readme.txt
- Screenshots: Screenshot #1 (Admin backend to display currency update and calculate.) image required
current-currency-status/current-currency-status.php 92% from 13 tests
The principal PHP file in "Current currency status" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
- 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
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin2,529 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 283 | 337 | 1,619 |
SVG | 1 | 0 | 3 | 540 |
PHP | 5 | 43 | 113 | 206 |
JavaScript | 2 | 51 | 53 | 164 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 2 | 66.67% |
▷ Class constants | 1 | 33.33% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
9 PNG files occupy 0.63MB with 0.41MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-5.png | 134.44KB | 44.74KB | ▼ 66.72% |
assets/screenshot-1.png | 109.13KB | 31.04KB | ▼ 71.56% |
assets/icon-128x128.png | 6.12KB | 3.08KB | ▼ 49.69% |
assets/screenshot-4.png | 125.21KB | 42.28KB | ▼ 66.23% |
assets/screenshot-2.png | 113.54KB | 32.97KB | ▼ 70.96% |