79% copywriting-cz

Code Review | Copywriting.cz

WordPress plugin Copywriting.cz scored79%from 54 tests.

About plugin

  • Plugin page: copywriting-cz
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Apr 19, 2018
  • Latest release: Jun 8, 2023
  • Number of updates: 15
  • Update frequency: every 125.1 days
  • Top authors: webdeal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,140 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.24ms] Passed 4 tests

Server-side resources used by Copywriting.cz
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.75 ▲2.67
Dashboard /wp-admin3.35 ▲0.0450.12 ▼1.85
Posts /wp-admin/edit.php3.40 ▲0.0450.42 ▼9.45
Add New Post /wp-admin/post-new.php5.93 ▲0.0497.25 ▼12.33
Media Library /wp-admin/upload.php3.27 ▲0.0439.94 ▲3.42
Copywriting.cz /wp-admin/tools.php?page=copywriting-cz3.2433.32

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
cpcz_token
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Copywriting.cz
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.72 ▲0.461.59 ▼0.0740.28 ▼4.09
Dashboard /wp-admin2,202 ▲285.63 ▲0.0390.12 ▼5.1340.63 ▲0.18
Posts /wp-admin/edit.php2,104 ▲11.99 ▼0.1340.42 ▼2.1636.31 ▼0.65
Add New Post /wp-admin/post-new.php1,529 ▲323.00 ▼0.57667.08 ▲21.9761.73 ▲12.57
Media Library /wp-admin/upload.php1,407 ▲74.21 ▲0.0198.38 ▼22.7743.61 ▼2.02
Copywriting.cz /wp-admin/tools.php?page=copywriting-cz8021.9925.1030.73

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • cpcz_token
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/copywriting-cz/admin.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_option() in wp-content/plugins/copywriting-cz/copywriting-cz.php:19

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)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: copywritingcz, autoload, copywriting

copywriting-cz/copywriting-cz.php Passed 13 tests

The entry point to "Copywriting.cz" version 1.0.4 is a PHP file that has certain tags in its header comment area
103 characters long description:
Umožňuje nahrávat texty zakoupené na Copywriting.cz přímo na Váš web bez nutnosti kopírování

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
Good job! No executable or dangerous file extensions detected188 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP33950188

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity3.88
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods555.56%
▷ Protected methods00.00%
▷ Private methods444.44%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin