78% aweber-params-shortcode

Code Review | Aweber Params Shortcode - Schogini

WordPress plugin Aweber Params Shortcode - Schogini scored78%from 54 tests.

About plugin

  • Plugin page: aweber-params-sho...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.5.1
  • WordPress version: 6.3.1
  • First release: Mar 17, 2013
  • Latest release: Mar 19, 2013
  • Number of updates: 14
  • Update frequency: every 0.1 days
  • Top authors: schogini (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

10+ active /1,176 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Server-side resources used by Aweber Params Shortcode - Schogini
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.58 ▼8.23
Dashboard /wp-admin3.34 ▼0.0147.40 ▼19.55
Posts /wp-admin/edit.php3.39 ▲0.0347.78 ▼2.56
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.67 ▼14.16
Media Library /wp-admin/upload.php3.26 ▲0.0339.81 ▲1.27
Aweber Params /wp-admin/options-general.php?page=aweber-params3.2030.82

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Aweber Params Shortcode - Schogini
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.69 ▲0.541.76 ▼0.4539.82 ▼2.20
Dashboard /wp-admin2,199 ▲225.63 ▲0.0289.47 ▼2.8838.02 ▼2.78
Posts /wp-admin/edit.php2,104 ▲41.99 ▼0.0339.86 ▼0.6036.23 ▼1.81
Add New Post /wp-admin/post-new.php1,531 ▲523.22 ▲0.01615.95 ▼62.3651.83 ▼8.72
Media Library /wp-admin/upload.php1,401 ▲14.18 ▼0.0295.78 ▼15.6043.19 ▼9.58
Aweber Params /wp-admin/options-general.php?page=aweber-params8482.0024.9225.05

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=aweber-params
    • > Notice in wp-content/plugins/aweber-params-shortcode/aweber_params.php+74
    Undefined index: awber_params_hidden

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/aweber-params-shortcode/aweber_params.php:64

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Plugin Name: Please specify the plugin name on the first line ( === aweber-params-shortcode === )
The official readme.txt is a good inspiration

aweber-params-shortcode/aweber_params.php 92% from 13 tests

This is the main PHP file of "Aweber Params Shortcode - Schogini" version 1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("aweber-params-shortcode.php" instead of "aweber_params.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin119 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13150119

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin