67% convertor-valutar-curs-bnr

Code Review | Convertor valutar curs 3 Banci: BNR, BCR si BT

WordPress plugin Convertor valutar curs 3 Banci: BNR, BCR si BT scored67%from 54 tests.

About plugin

  • Plugin page: convertor-valutar...
  • Plugin version: 3...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4.2
  • WordPress version: 6.3.1
  • First release: Dec 8, 2014
  • Latest release: Mar 22, 2016
  • Number of updates: 15
  • Update frequency: every 31.3 days
  • Top authors: bobyrou (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

20+ active /7,181 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.93MB] [CPU: ▼52.53ms] Passed 4 tests

An overview of server-side resources used by Convertor valutar curs 3 Banci: BNR, BCR si BT
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.05 ▼1.414.12 ▼39.41
Dashboard /wp-admin2.07 ▼1.235.89 ▼44.94
Posts /wp-admin/edit.php2.07 ▼1.286.32 ▼40.25
Add New Post /wp-admin/post-new.php2.07 ▼3.816.87 ▼85.53
Media Library /wp-admin/upload.php2.07 ▼1.164.81 ▼30.60

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Convertor valutar curs 3 Banci: BNR, BCR si BT
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲6713.75 ▼0.631.94 ▲0.1738.27 ▼7.15
Dashboard /wp-admin2,211 ▲264.91 ▼0.00111.80 ▼4.1047.16 ▼0.34
Posts /wp-admin/edit.php2,094 ▲52.03 ▲0.0641.75 ▲3.5237.95 ▲0.20
Add New Post /wp-admin/post-new.php1,527 ▼618.13 ▼4.93606.61 ▼49.4058.09 ▼1.28
Media Library /wp-admin/upload.php1,396 ▲54.22 ▲0.03102.65 ▲5.9241.43 ▼1.86

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the eronCSS handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/convertor-valutar-curs-bnr/includes/curs.php
    • > /wp-content/plugins/convertor-valutar-curs-bnr/convertor.php
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_register_style() in wp-content/plugins/convertor-valutar-curs-bnr/includes/functions.php:76
    • > PHP Notice
      Undefined index: act in wp-content/plugins/convertor-valutar-curs-bnr/convertor.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/convertor-valutar-curs-bnr/eron.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 19 tag instead of maximum 10
The official readme.txt is a good inspiration

convertor-valutar-curs-bnr/eron.php 77% from 13 tests

The entry point to "Convertor valutar curs 3 Banci: BNR, BCR si BT" version 3... is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("convertor-valutar-curs-bnr.php" instead of "eron.php")
  • Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "3...")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 146 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin250 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP45311165
JavaScript218183
CSS1002

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin