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-includes/class-wp-hook.php+310
Non-static method GNA_CurrencyConverter::activate_handler() should not be called statically
Server metrics [RAM: ▲0.11MB] [CPU: ▲3.43ms] Passed 4 tests
Server-side resources used by GNA Currency Converter
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 45.12 ▲4.52 |
Dashboard /wp-admin | 3.42 ▲0.11 | 54.50 ▲1.38 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 54.54 ▲4.36 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 101.41 ▲3.45 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 45.62 ▲6.84 |
All Rates /wp-admin/edit.php?post_type=ex_rates | 3.39 | 44.76 |
Add New /wp-admin/post-new.php?post_type=ex_rates | 3.24 | 34.83 |
Server storage [IO: ▲1.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for GNA Currency Converter
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,077 ▲316 | 15.04 ▲0.69 | 5.46 ▲3.53 | 46.72 ▲2.06 |
Dashboard /wp-admin | 2,353 ▲182 | 6.16 ▲0.63 | 106.59 ▲0.82 | 70.34 ▲26.81 |
Posts /wp-admin/edit.php | 2,292 ▲189 | 3.37 ▲1.36 | 48.03 ▲9.23 | 71.25 ▲36.03 |
Add New Post /wp-admin/post-new.php | 1,709 ▲181 | 21.96 ▼1.12 | 618.08 ▼30.46 | 37.00 ▼20.48 |
Media Library /wp-admin/upload.php | 1,433 ▲30 | 4.21 ▲0.05 | 85.21 ▼21.90 | 80.95 ▲33.92 |
All Rates /wp-admin/edit.php?post_type=ex_rates | 1,296 | 3.33 | 45.66 | 70.83 |
Add New /wp-admin/post-new.php?post_type=ex_rates | 2,134 | 3.82 | 66.32 | 81.75 |
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
- This plugin cannot be uninstalled
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method GNA_CurrencyConverter::deactivate_handler() should not be called statically
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/post-new.php?post_type=ex_rates
- > Notice in wp-content/plugins/gna-currency-converter/gna-currency-converter-core.php+226
Undefined index: n_gna_cc_save_meta
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'GNA_CurrencyConverter_Admin_Menu' not found in wp-content/plugins/gna-currency-converter/admin/gna-currency-converter-admin-settings-menu.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/gna-currency-converter/inc/gna-currency-converter-config.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Donate link: Invalid url: "none"
gna-currency-converter/gna-currency-converter.php 92% from 13 tests
The primary PHP file in "GNA Currency Converter" version 0.9.8 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 174 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected6,882 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 22 | 13 | 2,314 |
Sass | 14 | 34 | 34 | 1,648 |
LESS | 14 | 34 | 44 | 1,638 |
SVG | 1 | 0 | 0 | 685 |
PHP | 6 | 90 | 52 | 559 |
JavaScript | 1 | 16 | 16 | 38 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 7.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 1 | 20.00% |
▷ Concrete classes | 4 | 80.00% |
▷ Final classes | 0 | 0.00% |
Methods | 56 | |
▷ Static methods | 4 | 7.14% |
▷ Public methods | 56 | 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 | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/gna_20x20.png | 2.98KB | 0.33KB | ▼ 88.89% |