78% quup-button

Code Review | quup Button

WordPress plugin quup Button scored78%from 54 tests.

About plugin

  • Plugin page: quup-button
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Apr 29, 2013
  • Latest release: Apr 30, 2013
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: apostylee (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /802 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.64ms] Passed 4 tests

An overview of server-side resources used by quup Button
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0742.29 ▲1.88
Dashboard /wp-admin3.36 ▲0.0545.37 ▼11.48
Posts /wp-admin/edit.php3.41 ▲0.0545.65 ▼0.33
Add New Post /wp-admin/post-new.php5.94 ▲0.0581.69 ▼4.62
Media Library /wp-admin/upload.php3.28 ▲0.0534.80 ▲1.93

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 13 new options
New WordPress options
quup_button_align
quup_button_layout
quup_button_margin
can_compress_scripts
quup_button_display
quup_button_version
theysaidso_admin_options
widget_recent-posts
db_upgraded
quup_button_account
...

Browser metrics Passed 4 tests

quup Button: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.20 ▼1.421.84 ▼0.1145.62 ▼2.09
Dashboard /wp-admin2,207 ▲195.90 ▲1.03113.11 ▼6.7142.38 ▼3.89
Posts /wp-admin/edit.php2,090 ▲12.05 ▼0.0133.85 ▼7.1234.62 ▼2.75
Add New Post /wp-admin/post-new.php1,522 ▲323.43 ▲0.12655.79 ▼26.9255.56 ▼0.04
Media Library /wp-admin/upload.php1,392 ▲14.32 ▲0.08103.64 ▼1.2142.38 ▼3.02
WP quup Button /wp-admin/quup-button.php260.440.0615.09

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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 take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/quup-button/quup-button.php:11

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
    • > GET request to /wp-admin/quup-button.php
    • > Network (severe)
    wp-admin/quup-button.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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:
  • Stable tag: No string
  • Donate link: Invalid URI found ("")
Please take inspiration from this readme.txt

quup-button/quup-button.php Passed 13 tests

This is the main PHP file of "quup Button" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
68 characters long description:
Yazılarınızın quup' da kolayca paylaşılmasına olanak sağlar.

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

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin