Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/exchange-rate-table/exchange-rate-table.php+39
Methods with the same name as their class will not be constructors in a future version of PHP; exchange_rate_table has a deprecated constructor
Server metrics [RAM: ▼1.88MB] [CPU: ▼57.57ms] Passed 4 tests
Analyzing server-side resources used by Exchange Rate Table
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.11 ▼1.36 | 5.09 ▼35.26 |
Dashboard /wp-admin | 2.13 ▼1.18 | 6.15 ▼48.04 |
Posts /wp-admin/edit.php | 2.13 ▼1.23 | 7.43 ▼50.89 |
Add New Post /wp-admin/post-new.php | 2.13 ▼3.76 | 7.89 ▼96.10 |
Media Library /wp-admin/upload.php | 2.13 ▼1.10 | 5.95 ▼29.74 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 260 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_exchange_rate_table |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Exchange Rate Table
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.24 ▼1.16 | 1.87 ▲0.06 | 43.07 ▼4.82 |
Dashboard /wp-admin | 2,209 ▲30 | 4.87 ▼0.03 | 109.49 ▼1.74 | 41.94 ▼9.25 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▲0.04 | 39.61 ▲2.90 | 34.33 ▼5.83 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.13 ▲5.60 | 663.45 ▼32.92 | 59.79 ▲1.87 |
Media Library /wp-admin/upload.php | 1,391 ▲9 | 4.28 ▲0.10 | 105.73 ▲7.10 | 47.77 ▼1.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/exchange-rate-table/exchange-rate-table.php+39
Methods with the same name as their class will not be constructors in a future version of PHP; exchange_rate_table has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_exchange_rate_table
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/exchange-rate-table/exchange-rate-table.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% 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:
- Screenshots: Add images for these screenshots: #1 (Short table for the Japanese Yen with codes), #2 (Short table for the Dollar with countries), #3 (Short table for the Euro with currency names), #4 (Admin panel), #5 (Medium for the Euro with country names), #6 (Medium size table for the HK Dollar with countries)
exchange-rate-table/exchange-rate-table.php Passed 13 tests
The main PHP file in "Exchange Rate Table" ver. 1.4 adds more information about the plugin and also serves as the entry point for this plugin
127 characters long description:
Exchange Rate Table for any currency in the world. Choose the currency to display, header colors and the table size and format.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin270 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 120 | 81 | 270 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 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 | 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
250 compressed PNG files occupy 0.13MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
countries/th.png | 0.44KB | 0.67KB | 0.00% |
countries/tv.png | 0.52KB | 0.66KB | 0.00% |
countries/ba.png | 0.58KB | 0.71KB | 0.00% |
countries/om.png | 0.47KB | 0.64KB | 0.00% |
countries/mw.png | 0.52KB | 0.68KB | 0.00% |