10% cotacao-euro-hoje

Code Review | Cotação Euro

WordPress plugin Cotação Euro scored10%from 54 tests.

About plugin

  • Plugin page: cotacao-euro-hoje
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Apr 20, 2015
  • Latest release: Jul 18, 2015
  • Number of updates: 10
  • Update frequency: every 10.3 days
  • Top authors: febeckers (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,339 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/cotacao-euro-hoje/index.php+115
    Function create_function() is deprecated

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

Server-side resources used by Cotação Euro
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.415.41 ▼37.22
Dashboard /wp-admin2.08 ▼1.236.05 ▼49.28
Posts /wp-admin/edit.php2.08 ▼1.285.64 ▼47.50
Add New Post /wp-admin/post-new.php2.08 ▼3.815.74 ▼92.28
Media Library /wp-admin/upload.php2.08 ▼1.157.15 ▼30.31

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_cotacaoeuro
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Cotação Euro
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲6013.35 ▼1.394.35 ▲2.2844.96 ▲0.99
Dashboard /wp-admin2,223 ▲175.86 ▼0.18102.66 ▼3.2137.43 ▼2.77
Posts /wp-admin/edit.php2,099 ▲22.03 ▲0.0135.97 ▼1.6636.37 ▲0.40
Add New Post /wp-admin/post-new.php1,542 ▲1122.86 ▼0.42636.05 ▲5.4760.41 ▼1.16
Media Library /wp-admin/upload.php1,402 ▲24.25 ▲0.09114.69 ▲9.8046.80 ▼1.74

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin cannot be uninstalled
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_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 prefix-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_cotacaoeuro
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • 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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cotacao-euro-hoje/index.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === cotacao-euro-hoje === )
You can take inspiration from this readme.txt

cotacao-euro-hoje/index.php 92% from 13 tests

The principal PHP file in "Cotação Euro" v. 1.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("cotacao-euro-hoje.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected58 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1343053
CSS1045

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.08
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 methods480.00%
▷ Protected methods00.00%
▷ Private methods120.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin