83% bunu-kopyala

Code Review | Bunu Kopyala

WordPress plugin Bunu Kopyala scored 83% from 54 tests.

About plugin

  • Plugin page: bunu-kopyala
  • Plugin version: 1.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Feb 22, 2023
  • Latest release: Feb 23, 2023
  • Number of updates: 17
  • Update frequency: every 0.1 days
  • Top authors: b4ris (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 111 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

An overview of server-side resources used by Bunu Kopyala
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.18 ▼0.76
Dashboard /wp-admin3.33 ▲0.0246.35 ▼9.79
Posts /wp-admin/edit.php3.38 ▲0.0244.14 ▼5.09
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.38 ▼5.89
Media Library /wp-admin/upload.php3.25 ▲0.0233.31 ▼2.03

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Bunu Kopyala
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.21 ▼1.171.73 ▲0.1063.35 ▲24.07
Dashboard /wp-admin2,206 ▲174.85 ▼0.07103.51 ▼6.0137.10 ▼0.05
Posts /wp-admin/edit.php2,093 ▲42.01 ▲0.0238.38 ▲0.6037.41 ▲5.12
Add New Post /wp-admin/post-new.php1,534 ▲123.53 ▲0.40605.29 ▼22.7660.41 ▲7.95
Media Library /wp-admin/upload.php1,382 ▼64.23 ▲0.0595.33 ▼14.9241.50 ▼4.32

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bunu-kopyala/bunu-kopyala.php:15

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)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Contributors: The plugin contributors field is not present
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === bunu-kopyala === )
The official readme.txt might help

bunu-kopyala/bunu-kopyala.php 92% from 13 tests

The main PHP script in "Bunu Kopyala" version 1.6 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 148 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected77 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1203870
Markdown11207

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity5.33
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.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
No PNG images were found in this plugin