Benchmarks
Plugin footprint 83% 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.13MB] [CPU: ▼4.60ms] Passed 4 tests
Server-side resources used by SrbTransLatin - Serbian Latinisation
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 40.81 ▼1.54 |
Dashboard /wp-admin | 3.43 ▲0.13 | 45.80 ▼4.60 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 46.01 ▼0.79 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 87.35 ▼11.45 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 37.76 ▲4.11 |
Settings /wp-admin/admin.php?page=srbtranslatin-settings | 3.38 | 36.18 |
Server storage [IO: ▲0.68MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 152 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_oblak_stl_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for SrbTransLatin - Serbian Latinisation
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲105 | 13.25 ▼1.14 | 4.70 ▲2.65 | 38.74 ▼13.81 |
Dashboard /wp-admin | 2,249 ▲61 | 4.86 ▼1.02 | 103.43 ▼9.09 | 37.20 ▼2.48 |
Posts /wp-admin/edit.php | 2,129 ▲40 | 2.03 ▲0.04 | 37.98 ▼1.99 | 37.67 ▲2.46 |
Add New Post /wp-admin/post-new.php | 1,561 ▲28 | 23.13 ▲0.04 | 621.86 ▼43.20 | 52.32 ▲0.93 |
Media Library /wp-admin/upload.php | 1,428 ▲40 | 4.20 ▲0.03 | 98.87 ▼8.11 | 44.46 ▲2.28 |
Settings /wp-admin/admin.php?page=srbtranslatin-settings | 883 | 2.04 | 25.14 | 24.90 |
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 detected upon uninstall: 7 options
- can_compress_scripts
- widget_recent-posts
- widget_oblak_stl_widget
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/srbtranslatin/templates/selector-list.php
- > /wp-content/plugins/srbtranslatin/templates/selector-dropdown.php
- 68× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\\XPath\\Extension\\AbstractExtension' not found in wp-content/plugins/srbtranslatin/vendor/symfony/css-selector/XPath/Extension/HtmlExtension.php:29
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\CssSelector\\Parser\\Handler\\HandlerInterface' not found in wp-content/plugins/srbtranslatin/vendor/symfony/css-selector/Parser/Handler/HashHandler.php:30
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\CssSelector\\Exception\\ExceptionInterface' not found in wp-content/plugins/srbtranslatin/vendor/symfony/css-selector/Exception/ParseException.php:22
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\CssSelector\\Parser\\ParserInterface' not found in wp-content/plugins/srbtranslatin/vendor/symfony/css-selector/Parser/Parser.php:28
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\CssSelector\\Parser\\Handler\\HandlerInterface' not found in wp-content/plugins/srbtranslatin/vendor/symfony/css-selector/Parser/Handler/IdentifierHandler.php:30
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\ode\\AbstractNode' not found in wp-content/plugins/srbtranslatin/vendor/symfony/css-selector/Node/ElementNode.php:24
- > PHP Fatal error
Uncaught Error: Class 'voku\\helper\\AbstractSimpleHtmlDom' not found in wp-content/plugins/srbtranslatin/vendor/voku/simple_html_dom/src/voku/helper/SimpleHtmlDom.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\CssSelector\\Parser\\Handler\\HandlerInterface' not found in wp-content/plugins/srbtranslatin/vendor/symfony/css-selector/Parser/Handler/StringHandler.php:32
- > PHP Notice
Undefined variable: scripts in wp-content/plugins/srbtranslatin/templates/selector-dropdown.php on line 13
- > PHP Notice
Undefined variable: scripts in wp-content/plugins/srbtranslatin/templates/selector-oneline.php on line 19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (Plugin Settings page), #2 (Script Selector), #3 (WPML Language selector with cyrillic and latin scripts)
srbtranslatin/srbtranslatin.php Passed 13 tests
The main PHP script in "SrbTransLatin - Serbian Latinisation" version 3.0.0 is automatically included on every request by WordPress
107 characters long description:
SrbTransLatin - Serbian Latinisation plugin allows you to have a website in both cyrillic and latin scripts
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
There were no executable files found in this plugin10,600 lines of code in 142 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 127 | 2,351 | 6,642 | 9,293 |
Markdown | 6 | 331 | 1 | 736 |
JSON | 7 | 0 | 0 | 522 |
JavaScript | 1 | 8 | 2 | 41 |
SVG | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 11.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 132.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 76.00 |
Code structure | ||
---|---|---|
Namespaces | 23 | |
Interfaces | 14 | |
Traits | 1 | |
Classes | 94 | |
▷ Abstract classes | 9 | 9.57% |
▷ Concrete classes | 85 | 90.43% |
▷ Final classes | 3 | 3.53% |
Methods | 915 | |
▷ Static methods | 54 | 5.90% |
▷ Public methods | 842 | 92.02% |
▷ Protected methods | 42 | 4.59% |
▷ Private methods | 31 | 3.39% |
Functions | 47 | |
▷ Named functions | 29 | 61.70% |
▷ Anonymous functions | 18 | 38.30% |
Constants | 26 | |
▷ Global constants | 5 | 19.23% |
▷ Class constants | 21 | 80.77% |
▷ Public constants | 21 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
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/stl-cyr.png | 2.49KB | 1.13KB | ▼ 54.84% |