Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼141.93ms] Passed 4 tests
A check of server-side resources used by LMC XML Reader
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.07 | 43.52 ▲8.92 |
Dashboard /wp-admin | 3.12 ▲0.07 | 51.10 ▲6.50 |
Posts /wp-admin/edit.php | 3.18 ▲0.07 | 45.95 ▼4.80 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.06 | 98.07 ▼556.54 |
Media Library /wp-admin/upload.php | 3.07 ▲0.06 | 32.00 ▼12.88 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_wp_widget_lmcxmlreader |
Browser metrics Passed 4 tests
LMC XML Reader: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 15.82 ▼0.16 | 8.57 ▼1.86 | 50.07 ▼3.25 |
Dashboard /wp-admin | 2,973 ▲36 | 5.99 ▲0.02 | 138.32 ▼32.49 | 118.48 ▼4.75 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.82 ▲0.01 | 66.94 ▼0.76 | 91.20 ▼11.32 |
Add New Post /wp-admin/post-new.php | 1,615 ▼68 | 21.29 ▲2.50 | 298.85 ▼75.85 | 110.63 ▼1.72 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.02 ▲0.01 | 166.47 ▲13.89 | 128.56 ▼3.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 1 option
- widget_wp_widget_lmcxmlreader
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/lmc-xml-reader/lmc-xml-reader.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
- Screenshots: These screenshots do not have images: #1 (Admin widget configuration), #2 (Display in a page as a shortcode)
lmc-xml-reader/lmc-xml-reader.php Passed 13 tests
"LMC XML Reader" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
117 characters long description:
Live parses and displays (widget/shortcode) an external XML file from given URL (LMC.cz/Jobs.cz/Prace.cz/Teamio.com).
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin342 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 85 | 31 | 342 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 32.00 |
▷ Minimum class complexity | 32.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 8.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.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 | 5 | |
▷ Named functions | 5 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.12MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 12.32KB | 12.64KB | 0.00% |
screenshot-2.png | 105.46KB | 45.85KB | ▼ 56.53% |