Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼146.02ms] Passed 4 tests
An overview of server-side resources used by TMEP.cz widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 34.01 ▲7.14 |
Dashboard /wp-admin | 3.10 ▲0.04 | 46.99 ▲0.79 |
Posts /wp-admin/edit.php | 3.15 ▲0.04 | 49.61 ▲0.06 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.02 | 87.59 ▼586.33 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 37.43 ▲1.42 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_tmep |
Browser metrics Passed 4 tests
This is an overview of browser requirements for TMEP.cz widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,689 ▲117 | 16.19 ▲0.57 | 8.68 ▲1.30 | 53.45 ▼4.23 |
Dashboard /wp-admin | 2,969 ▲35 | 5.89 ▼0.07 | 144.61 ▼25.29 | 110.00 ▼14.13 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▼0.11 | 69.07 ▼0.37 | 99.92 ▲5.40 |
Add New Post /wp-admin/post-new.php | 1,591 ▼92 | 18.78 ▲0.07 | 385.51 ▼23.65 | 116.27 ▲7.48 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.00 ▼0.01 | 166.74 ▲11.41 | 129.65 ▼0.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_tmep
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
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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/widget-for-tmepcz/widget-for-tmepcz.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: dew point, temperature, humidity, tmep, weather
widget-for-tmepcz/widget-for-tmepcz.php Passed 13 tests
"TMEP.cz widget" version 1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
84 characters long description:
Widget for displaying current measurements of temperature and humidity from tmep.cz.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin98 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 35 | 24 | 98 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 5.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 1 | |
▷ Named functions | 1 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin