84% dynamic-populate-button-maker

Code Review | Dynamic Populate Button Maker

WordPress plugin Dynamic Populate Button Maker scored84%from 54 tests.

About plugin

  • Plugin page: dynamic-populate-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.3.1
  • WordPress version: 6.3.1
  • First release: Oct 3, 2015
  • Latest release: Oct 3, 2015
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: BilliardGreg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /618 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.18ms] Passed 4 tests

Analyzing server-side resources used by Dynamic Populate Button Maker
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0139.20 ▼2.08
Dashboard /wp-admin3.35 ▲0.0149.26 ▼3.05
Posts /wp-admin/edit.php3.40 ▲0.0147.77 ▼0.89
Add New Post /wp-admin/post-new.php5.93 ▲0.0192.47 ▼14.68
Media Library /wp-admin/upload.php3.28 ▲0.0138.04 ▲1.94

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Dynamic Populate Button Maker
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.06 ▼0.221.78 ▼0.0940.14 ▼4.47
Dashboard /wp-admin2,189 ▲95.61 ▲0.0092.89 ▲6.0941.98 ▼3.98
Posts /wp-admin/edit.php2,100 ▼01.98 ▲0.0141.59 ▲5.3338.32 ▲0.82
Add New Post /wp-admin/post-new.php1,529 ▲123.43 ▲0.20605.60 ▼46.3855.91 ▼0.51
Media Library /wp-admin/upload.php1,400 ▼34.17 ▼0.02100.96 ▲4.2440.38 ▼1.45

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% 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 fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/dynamic-populate-button-maker/dynamic-populate-button-maker.php:40

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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 need to be fixed:
  • Screenshots: Add an image for screenshot #1 (No Screenshot)
  • Tags: No tags were detected
Please take inspiration from this readme.txt

dynamic-populate-button-maker/dynamic-populate-button-maker.php Passed 13 tests

The main PHP file in "Dynamic Populate Button Maker" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
111 characters long description:
Generate a link that can be used where a dynamic populate via query variable is used like in some form systems.

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
Everything looks great! No dangerous files found in this plugin22 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP111822

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin