68% brzon

Code Review | Associados Amazon Plugin

WordPress plugin Associados Amazon Plugin scored68%from 54 tests.

About plugin

  • Plugin page: brzon
  • Plugin version: 0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9.1
  • WordPress version: 6.3.1
  • First release: Dec 16, 2014
  • Latest release: Dec 17, 2014
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: Revokee (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /747 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.95MB] [CPU: ▼34.51ms] Passed 4 tests

An overview of server-side resources used by Associados Amazon Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0048.79 ▲8.43
Dashboard /wp-admin2.99 ▼0.3131.33 ▼22.28
Posts /wp-admin/edit.php2.99 ▼0.3627.20 ▼27.31
Add New Post /wp-admin/post-new.php2.99 ▼2.8928.34 ▼73.85
Media Library /wp-admin/upload.php2.99 ▼0.2424.11 ▼14.60
brzon /wp-admin/options-general.php?page=brzon2.9923.47

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Associados Amazon Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5814.73 ▼0.022.06 ▲0.1163.40 ▲20.14
Dashboard /wp-admin2,222 ▲155.83 ▲0.91127.79 ▲12.8251.69 ▲7.27
Posts /wp-admin/edit.php2,107 ▲72.05 ▲0.0643.33 ▲5.6037.50 ▲0.92
Add New Post /wp-admin/post-new.php1,534 ▼623.34 ▲0.20723.69 ▲46.8956.69 ▼4.70
Media Library /wp-admin/upload.php1,407 ▲74.23 ▼0.04107.23 ▼2.1545.56 ▼5.48
brzon /wp-admin/options-general.php?page=brzon1,0712.1428.7941.36

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
These items require your attention
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=brzon
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
    • > GET request to /wp-admin/options-general.php?page=brzon
    • > Notice in wp-content/plugins/brzon/brzon.php+568
    Undefined index: az_updated

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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/brzon/brzon.php:671

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: Please add descriptions for these screenshots #0, #0 in brzon/assets to your readme.txt
The official readme.txt is a good inspiration

brzon/brzon.php Passed 13 tests

The entry point to "Associados Amazon Plugin" version 0.8 is a PHP file that has certain tags in its header comment area
47 characters long description:
Adicione Produtos da Amazon.com.br ao seu site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin626 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13511626

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected