Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/xratetj/xratetj.php+30
Methods with the same name as their class will not be constructors in a future version of PHP; xratetj has a deprecated constructor
Server metrics [RAM: ▼1.90MB] [CPU: ▼51.50ms] Passed 4 tests
Analyzing server-side resources used by XRateTJ
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.37 | 4.65 ▼35.31 |
Dashboard /wp-admin | 2.11 ▼1.19 | 6.43 ▼43.06 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 8.39 ▼40.76 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 5.64 ▼86.87 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 5.20 ▼33.48 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_xratetj |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
XRateTJ: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.25 ▼1.55 | 1.61 ▼0.04 | 40.83 ▼4.29 |
Dashboard /wp-admin | 2,209 ▲24 | 4.83 ▼0.03 | 98.98 ▼1.38 | 44.15 ▼2.40 |
Posts /wp-admin/edit.php | 2,086 ▼0 | 2.06 ▲0.01 | 39.01 ▼0.68 | 33.94 ▼3.61 |
Add New Post /wp-admin/post-new.php | 1,534 ▼3 | 22.92 ▼0.44 | 629.76 ▼75.10 | 53.76 ▼5.12 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.20 ▼0.02 | 96.41 ▼17.93 | 41.13 ▼7.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/xratetj/xratetj.php+30
Methods with the same name as their class will not be constructors in a future version of PHP; xratetj has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 7 options
- widget_xratetj
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/xratetj/xratetj.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add an image for screenshot #1 (XRateTJ widget plugin screenshot (widget on sidebar))
xratetj/xratetj.php Passed 13 tests
The main file in "XRateTJ" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
35 characters long description:
Tajik somoni exchange rates plugin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin211 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 23 | 35 | 211 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
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 | 8.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 | 0 | |
▷ Named functions | 0 | 0.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
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 14.32KB | 6.10KB | ▼ 57.41% |
img/agro/flag_us.png | 1.69KB | 0.71KB | ▼ 58.08% |
img/agro/flag_eu.png | 1.58KB | 0.62KB | ▼ 60.67% |
img/agro/flag_ru.png | 1.68KB | 0.70KB | ▼ 58.44% |