82% birttu-medios

Code Review | Birttu

WordPress plugin Birttu scored82%from 54 tests.

About plugin

  • Plugin page: birttu-medios
  • Plugin version: 1.7.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.9.2
  • WordPress version: 6.3.1
  • First release: Jan 16, 2020
  • Latest release: Mar 29, 2022
  • Number of updates: 21
  • Update frequency: every 38.2 days
  • Top authors: birttu (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /891 total downloads

Benchmarks

Plugin footprint 82% from 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.57MB] [CPU: ▼19.74ms] Passed 4 tests

Server-side resources used by Birttu
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1542.65 ▲3.46
Dashboard /wp-admin3.45 ▲0.1047.37 ▼17.74
Posts /wp-admin/edit.php3.42 ▲0.0638.96 ▼10.22
Add New Post /wp-admin/post-new.php3.28 ▼2.6140.26 ▼54.46
Media Library /wp-admin/upload.php3.38 ▲0.1437.74 ▲3.98

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, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_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 /2,830 ▲5914.34 ▼0.291.94 ▲0.2144.32 ▲3.98
Dashboard /wp-admin2,211 ▲345.53 ▼0.1480.25 ▼4.3636.96 ▼7.95
Posts /wp-admin/edit.php2,114 ▲142.01 ▲0.0633.44 ▼1.4034.06 ▼2.10
Add New Post /wp-admin/post-new.php1,551 ▲1718.31 ▲0.35593.43 ▼36.9584.76 ▲20.20
Media Library /wp-admin/upload.php1,419 ▲224.20 ▲0.0694.24 ▼3.4541.98 ▲0.52

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

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_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
    • > 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

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:
  • Screenshots: Please add descriptions for these screenshots #11, #12 in birttu-medios/assets to your readme.txt
  • Tags: There are too many tags (16 tag instead of maximum 10)
The official readme.txt is a good inspiration

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

"Birttu" version 1.7.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 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 1.72MB with 0.97MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
speakpanel.png703.25KB294.67KB▼ 58.10%
widget1.png113.91KB45.27KB▼ 60.26%
widgetcomenta2.png222.32KB96.78KB▼ 56.47%
config2.png172.14KB67.78KB▼ 60.63%
widget2.png45.23KB24.34KB▼ 46.18%