84% sorsawodigital-button

Code Review | WP Button by Sorsawo Digital

WordPress plugin WP Button by Sorsawo Digital scored84%from 54 tests.

About plugin

  • Plugin page: sorsawodigital-bu...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Dec 15, 2016
  • Latest release: Dec 15, 2016
  • Number of updates: 4
  • Update frequency: every 3.0 days
  • Top authors: sorsawodigital (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /453 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
Install script ran successfully

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

Server-side resources used by WP Button by Sorsawo Digital
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.24 ▲0.91
Dashboard /wp-admin3.32 ▲0.0146.54 ▲1.41
Posts /wp-admin/edit.php3.37 ▲0.0142.76 ▼4.10
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.34 ▼11.11
Media Library /wp-admin/upload.php3.24 ▲0.0134.81 ▲0.69

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for WP Button by Sorsawo Digital
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5514.41 ▲0.062.03 ▲0.3545.90 ▲1.91
Dashboard /wp-admin2,195 ▲155.53 ▼0.1988.14 ▼1.4436.95 ▼3.17
Posts /wp-admin/edit.php2,103 ▼02.02 ▲0.0035.21 ▼9.5533.79 ▼5.73
Add New Post /wp-admin/post-new.php1,526 ▼023.70 ▲0.59680.00 ▲8.0258.40 ▲3.67
Media Library /wp-admin/upload.php1,397 ▼34.15 ▼0.0997.92 ▼4.1645.02 ▼0.37

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 detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • 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 everything seems fine, this is not 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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sorsawodigital-button/sorsawodigital-button.php:32

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: button, link

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

The primary PHP file in "WP Button by Sorsawo Digital" version 1.0.0 is used by WordPress to initiate all plugin functionality
47 characters long description:
Create beautiful button on your WordPress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected64 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2132446
CSS11018

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.65
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods360.00%
▷ Protected methods00.00%
▷ Private methods240.00%
Functions0
▷ Named functions00.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
PNG images were not found in this plugin