84% clima-freekitime

Code Review | clima freekitime

WordPress plugin clima freekitime scored84%from 54 tests.

About plugin

  • Plugin page: clima-freekitime
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Sep 28, 2012
  • Latest release: Sep 28, 2012
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: jmsv16 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /3,169 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.96ms] Passed 4 tests

This is a short check of server-side resources used by clima freekitime
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.21 ▲0.62
Dashboard /wp-admin3.35 ▲0.0545.98 ▼0.65
Posts /wp-admin/edit.php3.40 ▲0.0543.01 ▼3.67
Add New Post /wp-admin/post-new.php5.93 ▲0.0577.70 ▼16.14
Media Library /wp-admin/upload.php3.28 ▲0.0539.99 ▲3.45

Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for clima freekitime
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲9613.21 ▼1.552.09 ▲0.5643.96 ▲3.89
Dashboard /wp-admin2,215 ▲275.89 ▲0.0098.23 ▼3.4082.99 ▲38.98
Posts /wp-admin/edit.php2,107 ▲152.02 ▲0.0534.43 ▼7.5832.14 ▼5.48
Add New Post /wp-admin/post-new.php1,681 ▲15322.72 ▲4.27751.29 ▲72.1657.34 ▼3.65
Media Library /wp-admin/upload.php1,406 ▲154.20 ▼0.0191.32 ▼12.3179.20 ▲36.30

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 2× 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/clima-freekitime/widget-clima-freekitime.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/clima-freekitime/widget-clima-freekitime.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: Please add images for these screenshots: #1 (una vista de como  se vera el plugin una ves implementado ya sea como widget o como funcion dentro de nuestra plantilla), #2 (una vista de la pagina de configuracion del plugin muestra las opciones que se pueden cambiar para adaptarlo a tus necesidades)
The official readme.txt might help

clima-freekitime/clima-freekitime.php Passed 13 tests

The primary PHP file in "clima freekitime" version 1.0 is used by WordPress to initiate all plugin functionality
102 characters long description:
selecciona la ciudad y muestra las condiciones climaticas de la misma usando la api de yahoo! weather.

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
No dangerous file extensions were detected313 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP36571218
XML11051
CSS14044

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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.07MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/noche.png2.20KB1.74KB▼ 21.05%
screenshot-2.png46.52KB18.66KB▼ 59.90%
screenshot-1.png20.82KB8.37KB▼ 59.79%
img/dia.png3.32KB1.92KB▼ 42.13%