92% birttu-medios

Code Review | Birttu

WordPress plugin Birttu scored 92% from 54 tests.

About plugin

  • Plugin page: birttu-medios
  • Plugin version: 1.6.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.4.2
  • WordPress version: 5.8.1
  • First release: Jan 16, 2020
  • Latest release: Dec 30, 2020
  • Number of updates: 19
  • Update frequency: every 18.4 days
  • Top authors: birttu (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active / 485 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.22MB] [CPU: ▼147.99ms] Passed 4 tests

Server-side resources used by Birttu
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.98 ▲0.2636.38 ▲13.93
Dashboard /wp-admin3.20 ▲0.1553.61 ▲10.32
Posts /wp-admin/edit.php3.19 ▲0.0841.88 ▼2.65
Add New Post /wp-admin/post-new.php4.19 ▼1.2548.08 ▼598.15
Media Library /wp-admin/upload.php3.15 ▲0.1432.33 ▼1.49

Server storage [IO: ▲1.86MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
Just a few items left to fix
  • You have illegally modified 1 file (49.63KB) outside of "wp-content/plugins/birttu-medios/" and "wp-content/uploads/"
    • (new file) ads.txt
Filesystem: 30 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Birttu
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,699 ▲10315.82 ▲0.3610.37 ▲1.1742.79 ▼5.34
Dashboard /wp-admin2,990 ▲565.90 ▼0.25143.35 ▼25.97119.14 ▲5.90
Posts /wp-admin/edit.php2,757 ▲182.71 ▼0.0162.27 ▼1.9485.21 ▼8.36
Add New Post /wp-admin/post-new.php1,517 ▼15518.52 ▼0.39370.73 ▲0.39106.70 ▼8.72
Media Library /wp-admin/upload.php1,830 ▲235.01 ▼0.03145.78 ▼4.78113.41 ▼7.26

Uninstaller [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      include(index_0.php): failed to open stream: No such file or directory in wp-content/plugins/birttu-medios/indexj.php on line 18
    • > PHP Warning
      file(config/configuracion.txt): failed to open stream: No such file or directory in wp-content/plugins/birttu-medios/indexj.php on line 6
    • > PHP Warning
      include(): Failed opening 'index_0.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/birttu-medios/indexj.php on line 18
    • > PHP Warning
      include_once(): Failed opening 'estado_conexion.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/birttu-medios/indexj.php on line 3
    • > PHP Warning
      include_once(estado_conexion.php): failed to open stream: No such file or directory in wp-content/plugins/birttu-medios/indexj.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: There are too many tags (16 tag instead of maximum 10)
  • Screenshots: Please add descriptions for these screenshots #11, #12 in birttu-medios/assets to your readme.txt
The official readme.txt is a good inspiration

birttu-medios/birttu.php 77% from 13 tests

"Birttu" version 1.6.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("birttu-medios.php" instead of "birttu.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected1,935 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP10303211,723
PO File25860163
CSS10038
JavaScript22311

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 0% from 2 tests

Image compression 0% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 1.72MB with 1.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
wallnews1.png151.77KB42.05KB▼ 72.29%
config2.png172.14KB67.78KB▼ 60.63%
widget1.png113.91KB45.27KB▼ 60.26%
(invalid) barra.png98.15KB0.00KB▼ 100.00%
config1.png56.49KB24.81KB▼ 56.09%