78% seo-copywriting

Code Review | SEO Copywriting

WordPress plugin SEO Copywriting scored78%from 54 tests.

About plugin

  • Plugin page: seo-copywriting
  • Plugin version: 2.3.6
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Oct 12, 2021
  • Latest release: Sep 4, 2023
  • Number of updates: 11
  • Update frequency: every 62.9 days
  • Top authors: seomantis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server metrics [RAM: ▲0.17MB] [CPU: ▼2.52ms] Passed 4 tests

This is a short check of server-side resources used by SEO Copywriting
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1639.59 ▼4.44
Dashboard /wp-admin3.47 ▲0.1746.16 ▼7.20
Posts /wp-admin/edit.php3.59 ▲0.2351.00 ▲2.11
Add New Post /wp-admin/post-new.php6.08 ▲0.1989.60 ▼0.55
Media Library /wp-admin/upload.php3.40 ▲0.1646.71 ▲14.16
SEO Plugins /wp-admin/admin.php?page=wp-seo-plugins-login3.3832.98
Copy /wp-admin/admin.php?page=seo-copy3.3633.58

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for SEO Copywriting
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲10413.37 ▼1.001.56 ▼0.1645.28 ▲2.19
Dashboard /wp-admin2,242 ▲575.04 ▼0.85111.94 ▼6.7132.92 ▼12.56
Posts /wp-admin/edit.php2,131 ▲422.53 ▲0.5440.06 ▲4.6129.69 ▼8.94
Add New Post /wp-admin/post-new.php6,768 ▲5,24828.02 ▲4.86972.43 ▲264.7144.52 ▼21.20
Media Library /wp-admin/upload.php1,496 ▲1144.49 ▲0.30115.14 ▲9.1045.64 ▲1.04
SEO Plugins /wp-admin/admin.php?page=wp-seo-plugins-login9581.9627.8423.87
Copy /wp-admin/admin.php?page=seo-copy8761.9626.5921.11

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

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 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/seo-copywriting/public/partials/seocopy-public-display.php
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/seo-copywriting/admin/partials/seocopy-admin-settings.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/seo-copywriting/admin/partials/seocopy-admin-querysuggestion-box.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/seo-copywriting/admin/partials/seocopy-admin-custom-box.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/seo-copywriting/admin/partials/seocopy-admin-display.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: plugin copywriting, seo, keyword, seo plugin, google keywords...

seo-copywriting/seocopy.php 85% from 13 tests

Analyzing the main PHP file in "SEO Copywriting" version 2.3.6
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("seo-copywriting.php" instead of "seocopy.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
Everything looks great! No dangerous files found in this plugin2,542 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript51752481,197
PHP172035641,014
CSS3216215
PO File13537113
Markdown1002
SVG1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity7.89
▷ Minimum class complexity1.00
▷ Maximum class complexity56.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods53
▷ Static methods59.43%
▷ Public methods4788.68%
▷ Protected methods00.00%
▷ Private methods611.32%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants685.71%
▷ Class constants114.29%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/img/icon.png3.09KB2.05KB▼ 33.81%