Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼140.57ms] Passed 4 tests
This is a short check of server-side resources used by Tiempo
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▲0.20 | 36.56 ▲13.35 |
Dashboard /wp-admin | 3.14 ▲0.08 | 53.26 ▲6.00 |
Posts /wp-admin/edit.php | 3.25 ▲0.14 | 52.79 ▲8.44 |
Add New Post /wp-admin/post-new.php | 5.50 ▲0.06 | 92.81 ▼576.75 |
Media Library /wp-admin/upload.php | 3.08 ▲0.08 | 35.23 ▲0.05 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_tiempo_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Tiempo
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,816 ▲220 | 16.68 ▲0.69 | 14.44 ▲6.47 | 46.86 ▼10.01 |
Dashboard /wp-admin | 2,977 ▲43 | 5.93 ▼0.00 | 139.81 ▼14.17 | 112.98 ▼3.55 |
Posts /wp-admin/edit.php | 2,743 ▲4 | 2.69 ▼0.00 | 69.57 ▼0.34 | 88.66 ▲1.10 |
Add New Post /wp-admin/post-new.php | 1,687 ▲4 | 18.44 ▼0.33 | 368.74 ▲0.07 | 117.86 ▲8.06 |
Media Library /wp-admin/upload.php | 1,814 ▲7 | 4.99 ▼0.11 | 145.04 ▼10.03 | 118.87 ▼10.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 1 option
- widget_tiempo_widget
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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/tiempo/admin/partials/tiempo-admin-display.php
- > /wp-content/plugins/tiempo/public/partials/tiempo-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: Please add descriptions for these screenshots #1, #2 in tiempo/assets to your readme.txt
tiempo/tiempo.php Passed 13 tests
The principal PHP file in "Tiempo" v. 1.0.0 is loaded by WordPress automatically on each request
45 characters long description:
Beautiful Spanish weather forecasting widget.
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
Good job! No executable or dangerous file extensions detected754 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 146 | 543 | 403 |
JavaScript | 2 | 40 | 62 | 186 |
CSS | 2 | 22 | 13 | 165 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 4.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.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 | 27 | |
▷ Static methods | 2 | 7.41% |
▷ Public methods | 22 | 81.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 18.52% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin