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.09MB] [CPU: ▼5.01ms] Passed 4 tests
This is a short check of server-side resources used by Weather Forecast in Portugal
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 42.01 ▲0.99 |
Dashboard /wp-admin | 3.38 ▲0.08 | 45.26 ▼1.55 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 47.82 ▼2.51 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 92.73 ▼16.98 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 36.39 ▲2.98 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 76 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_meteo-ipma |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Weather Forecast in Portugal: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,944 ▲209 | 13.91 ▼0.45 | 17.08 ▲15.38 | 42.60 ▼2.41 |
Dashboard /wp-admin | 2,210 ▲25 | 5.83 ▲0.79 | 115.37 ▲1.49 | 39.30 ▼4.29 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.02 ▲0.03 | 39.13 ▼0.28 | 34.54 ▼0.42 |
Add New Post /wp-admin/post-new.php | 1,532 ▼1 | 23.35 ▲0.07 | 604.15 ▼1.93 | 49.11 ▲1.53 |
Media Library /wp-admin/upload.php | 1,395 ▲13 | 4.27 ▲0.04 | 98.89 ▲1.08 | 46.18 ▲0.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- widget_meteo-ipma
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
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 | 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
- 5× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: args in wp-content/plugins/ipma-weather-widget/public/partials/widget.php on line 17
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ipma-weather-widget/widgets/class-meteo-ipma.php:17
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ipma-weather-widget/public/partials/widget.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/ipma-weather-widget/admin/partials/widget-form.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/ipma-weather-widget/public/partials/widget.php:18
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 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
7 plugin tags: ipma, dipcode, tempo, celsius, sidebar...
ipma-weather-widget/ipma-widget.php 77% from 13 tests
The entry point to "Weather Forecast in Portugal" version 1.0.4 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ipma-weather-widget.php" instead of "ipma-widget.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: Please don't use more than 140 characters for the plugin description (currently 181 characters long)
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
Everything looks great! No dangerous files found in this plugin482 lines of code in 67 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 119 | 512 | 318 |
PO File | 1 | 43 | 45 | 108 |
JavaScript | 50 | 49 | 50 | 54 |
CSS | 3 | 0 | 3 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 3 | 9.38% |
▷ Public methods | 27 | 84.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 15.62% |
Functions | 3 | |
▷ Named functions | 3 | 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
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/sprite.png | 3.51KB | 2.05KB | ▼ 41.59% |
public/img/logo.png | 5.68KB | 3.20KB | ▼ 43.63% |