90% seo-writing-assistant-semrush-custom-fields

Code Review | SEO Writing Assistant SEMrush Custom Fields

WordPress plugin SEO Writing Assistant SEMrush Custom Fields scored90%from 54 tests.

About plugin

  • Plugin page: seo-writing-assis...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.2.1
  • WordPress version: 6.3.1
  • First release: Feb 14, 2019
  • Latest release: Jun 17, 2019
  • Number of updates: 10
  • Update frequency: every 12.3 days
  • Top authors: enrico.sorcinelli (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /2,178 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.00MB] [CPU: ▼3.29ms] Passed 4 tests

Analyzing server-side resources used by SEO Writing Assistant SEMrush Custom Fields
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.06 ▼3.32
Dashboard /wp-admin3.31 ▲0.0042.91 ▼5.62
Posts /wp-admin/edit.php3.36 ▲0.0044.66 ▼1.16
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.60 ▼3.05
Media Library /wp-admin/upload.php3.23 ▲0.0034.06 ▼0.73

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

SEO Writing Assistant SEMrush Custom Fields: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.21 ▼1.171.69 ▼0.1736.70 ▼8.57
Dashboard /wp-admin2,206 ▲154.82 ▼0.10111.55 ▲11.5542.46 ▼0.28
Posts /wp-admin/edit.php2,086 ▼62.04 ▲0.0139.01 ▲0.7934.68 ▲3.64
Add New Post /wp-admin/post-new.php1,534 ▼923.00 ▲4.65673.25 ▲47.9352.97 ▲1.85
Media Library /wp-admin/upload.php1,388 ▼04.30 ▲0.1594.45 ▼7.7141.25 ▲0.04

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: custom fields, page builder, readability, seo, content analysis...

seo-writing-assistant-semrush-custom-fields/seo-writing-assistant-semrush-custom-fields.php 92% from 13 tests

The primary PHP file in "SEO Writing Assistant SEMrush Custom Fields" version 1.1.0 is used by WordPress to initiate all plugin functionality
Please take the time to 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

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
Success! There were no dangerous files found in this plugin226 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP345136143
JavaScript1153460
PO File13823

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity3.11
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods333.33%
▷ Public methods888.89%
▷ Protected methods00.00%
▷ Private methods111.11%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
There were not PNG files found in your plugin