10% indicadores-colombia

Code Review | Widget Indicadores Economicos en Colombia

WordPress plugin Widget Indicadores Economicos en Colombia scored10%from 54 tests.

About plugin

  • Plugin page: indicadores-colombia
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1+
  • WordPress version: 6.3.1
  • First release: May 24, 2016
  • Latest release: Jun 23, 2016
  • Number of updates: 13
  • Update frequency: every 2.3 days
  • Top authors: igniwebapps (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,518 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method Widget_economicIndicatorsCO::activate() should not be called statically

Server metrics [RAM: ▼1.71MB] [CPU: ▼49.59ms] Passed 4 tests

Analyzing server-side resources used by Widget Indicadores Economicos en Colombia
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.28 ▼1.188.46 ▼28.17
Dashboard /wp-admin2.29 ▼1.0111.76 ▼38.80
Posts /wp-admin/edit.php2.29 ▼1.069.99 ▼42.74
Add New Post /wp-admin/post-new.php2.29 ▼3.599.99 ▼88.64
Media Library /wp-admin/upload.php2.29 ▼0.948.49 ▼24.01

Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
economicIndicatorsCO
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Widget Indicadores Economicos en Colombia
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.34 ▲0.071.76 ▲0.0137.70 ▼2.25
Dashboard /wp-admin2,198 ▲185.57 ▼0.0989.80 ▼6.2442.06 ▼3.20
Posts /wp-admin/edit.php2,103 ▼02.03 ▲0.0538.29 ▼9.4736.42 ▼0.01
Add New Post /wp-admin/post-new.php1,526 ▼223.13 ▼0.09614.57 ▲12.9550.13 ▼10.72
Media Library /wp-admin/upload.php1,400 ▼04.24 ▲0.0694.38 ▼4.8041.42 ▼0.12

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method Widget_economicIndicatorsCO::register() should not be called statically
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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 take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/indicadores-colombia/igniweb-indicadoresCO.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
  • Screenshots: These screenshots do not have images: #1 (Area Administrable.), #2 (Visualización.)
You can take inspiration from this readme.txt

indicadores-colombia/igniweb-indicadoresCO.php 92% from 13 tests

The primary PHP file in "Widget Indicadores Economicos en Colombia" version 1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("indicadores-colombia.php" instead of "igniweb-indicadoresCO.php")

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
Success! There were no dangerous files found in this plugin66 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1651166

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png7.16KB3.99KB▼ 44.31%
screenshot-2.png5.93KB3.80KB▼ 35.98%