Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.29MB] [CPU: ▼6.42ms] Passed 4 tests
An overview of server-side resources used by Cyrillic Permalinks
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.30 | 42.38 ▲5.84 |
Dashboard /wp-admin | 3.61 ▲0.26 | 48.99 ▼10.30 |
Posts /wp-admin/edit.php | 3.72 ▲0.36 | 45.24 ▼1.84 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.30 | 82.05 ▼15.34 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 35.62 ▲1.80 |
Cyrillic Permalinks /wp-admin/options-general.php?page=cyr-slugs-settings-general-settings | 3.51 | 34.86 |
Server storage [IO: ▲0.83MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 58 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Cyrillic Permalinks
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.28 ▼0.12 | 1.70 ▼0.02 | 44.34 ▲4.14 |
Dashboard /wp-admin | 2,202 ▲25 | 5.59 ▲0.03 | 85.01 ▼8.56 | 37.62 ▼4.16 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.99 ▼0.00 | 34.13 ▼2.45 | 33.93 ▼2.31 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.10 ▼0.51 | 664.43 ▼41.28 | 70.37 ▲11.23 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.23 ▲0.04 | 107.65 ▲5.55 | 48.40 ▲4.63 |
Cyrillic Permalinks /wp-admin/options-general.php?page=cyr-slugs-settings-general-settings | 926 | 1.95 | 37.84 | 29.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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 fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/cyrillic-slugs/cyr-slugs.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/cyrillic-slugs/settings/settings-general.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: There are too many tags (14 tag instead of maximum 10)
- Screenshots: Add a description for screenshot #1 in cyrillic-slugs/assets to your readme.txt
cyrillic-slugs/cyr-slugs.php 92% from 13 tests
The main PHP file in "Cyrillic Permalinks" ver. 2.0.4 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("cyrillic-slugs.php" instead of "cyr-slugs.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin13,935 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 27 | 2,342 | 1,968 | 10,068 |
PHP | 4 | 194 | 266 | 1,860 |
HTML | 4 | 390 | 38 | 1,714 |
CSS | 3 | 68 | 37 | 256 |
Markdown | 1 | 6 | 0 | 24 |
JSON | 1 | 0 | 0 | 13 |
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.33 |
Average class complexity | 30.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 71.00 |
Average method complexity | 2.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 46 | 97.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.13% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.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
15 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
wp-settings-framework/assets/vendor/jquery-timepicker/include/ui-1.10.0/ui-lightness/images/ui-icons_228ef1_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
wp-settings-framework/assets/vendor/jquery-timepicker/include/ui-1.10.0/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png | 0.25KB | 0.15KB | ▼ 37.45% |
wp-settings-framework/assets/vendor/jquery-timepicker/include/ui-1.10.0/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png | 0.13KB | 0.18KB | 0.00% |
wp-settings-framework/assets/vendor/jquery-timepicker/include/ui-1.10.0/ui-lightness/images/ui-bg_flat_10_000000_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
wp-settings-framework/assets/vendor/jquery-timepicker/include/ui-1.10.0/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png | 0.09KB | 0.14KB | 0.00% |