78% aviso-de-cookies-de-amplifica

Code Review | Aviso de cookies Amplifica

WordPress plugin Aviso de cookies Amplifica scored78%from 54 tests.

About plugin

  • Plugin page: aviso-de-cookies-...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.2.4
  • WordPress version: 6.3.1
  • First release: Aug 18, 2015
  • Latest release: Aug 20, 2015
  • Number of updates: 29
  • Update frequency: every 0.1 days
  • Top authors: david_amplifica (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /2,000 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.74ms] Passed 4 tests

Server-side resources used by Aviso de cookies Amplifica
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0147.80 ▲5.64
Dashboard /wp-admin3.32 ▲0.0250.27 ▲0.13
Posts /wp-admin/edit.php3.38 ▲0.0255.81 ▲1.00
Add New Post /wp-admin/post-new.php5.91 ▲0.0289.61 ▼18.22
Media Library /wp-admin/upload.php3.25 ▲0.0239.44 ▼1.85

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Aviso de cookies Amplifica
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.66 ▲0.311.83 ▼0.1043.46 ▼0.28
Dashboard /wp-admin2,210 ▲335.67 ▲0.1282.63 ▼7.9476.07 ▲34.21
Posts /wp-admin/edit.php2,112 ▲122.00 ▼0.1541.41 ▲1.3037.38 ▼3.00
Add New Post /wp-admin/post-new.php1,553 ▲2523.17 ▲0.16690.28 ▼15.4660.80 ▲4.36
Media Library /wp-admin/upload.php1,415 ▲124.16 ▲0.0498.33 ▼15.7470.01 ▲20.74

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/aviso-de-cookies-de-amplifica/adc_amplifica.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/aviso-de-cookies-de-amplifica/adc_aviso_cookies_admin_template.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/aviso-de-cookies-de-amplifica/adc_aviso_cookies_plugin_template.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: spanish law, seo, aviso de cookies

aviso-de-cookies-de-amplifica/adc_amplifica.php 92% from 13 tests

The entry point to "Aviso de cookies Amplifica" version 1.2 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: The principal plugin file should be the same as the plugin slug ("aviso-de-cookies-de-amplifica.php" instead of "adc_amplifica.php")

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
Good job! No executable or dangerous file extensions detected263 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3528239
CSS21024

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.05
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%
Functions6
▷ Named functions6100.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/logotipo-amplifica.png5.48KB2.57KB▼ 53.14%
images/ic-amplifica.png0.42KB0.32KB▼ 25.40%