74% clipix-save-button

Code Review | Clipix "Save" Button

WordPress plugin Clipix "Save" Button scored74%from 54 tests.

About plugin

  • Plugin page: clipix-save-button
  • Plugin version: 0.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.2
  • WordPress version: 6.3.1
  • First release: May 8, 2015
  • Latest release: Aug 21, 2015
  • Number of updates: 15
  • Update frequency: every 7.0 days
  • Top authors: markluo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /844 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
Installer ran successfully

Server metrics [RAM: ▼1.90MB] [CPU: ▼52.96ms] Passed 4 tests

An overview of server-side resources used by Clipix "Save" Button
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.384.14 ▼37.14
Dashboard /wp-admin2.11 ▼1.205.69 ▼42.77
Posts /wp-admin/edit.php2.11 ▼1.256.25 ▼43.77
Add New Post /wp-admin/post-new.php2.11 ▼3.785.85 ▼88.15
Media Library /wp-admin/upload.php2.11 ▼1.126.67 ▼32.12

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Clipix "Save" Button
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲4314.25 ▲0.082.17 ▼0.1240.09 ▼2.55
Dashboard /wp-admin2,195 ▲155.70 ▲0.0593.14 ▼3.3283.42 ▲41.63
Posts /wp-admin/edit.php2,115 ▲152.00 ▲0.0138.89 ▲2.3536.15 ▼2.28
Add New Post /wp-admin/post-new.php1,692 ▲16422.22 ▼0.62688.72 ▲39.5241.75 ▼9.07
Media Library /wp-admin/upload.php1,415 ▲124.14 ▼0.0899.18 ▼4.6664.70 ▲18.81

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin cannot be uninstalled
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the clipix_admin handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • clipix_setting
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/clipix-save-button/savebutton.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: save, save button, clipix

clipix-save-button/savebutton.php 92% from 13 tests

The primary PHP file in "Clipix "Save" Button" version 0.1.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("clipix-save-button.php" instead of "savebutton.php")

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
There were no executable files found in this plugin245 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13114210
CSS19435

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity12.00
▷ Minimum method complexity2.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/clipix_logo32.png1.19KB1.25KB0.00%
assets/Clipix_logo16.png0.44KB0.32KB▼ 26.77%