89% semrush-seo-writing-assistant

Code Review | Semrush SEO Writing Assistant

WordPress plugin Semrush SEO Writing Assistant scored89%from 54 tests.

About plugin

  • Plugin page: semrush-seo-writi...
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.3
  • WordPress version: 6.3.1
  • First release: Oct 3, 2018
  • Latest release: Aug 10, 2023
  • Number of updates: 25
  • Update frequency: every 71.3 days
  • Top authors: semrush (100%)

Code review

54 tests

User reviews

24 reviews

Install metrics

10,000+ active /141,699 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Semrush SEO Writing Assistant
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.54 ▼8.81
Dashboard /wp-admin3.32 ▲0.0144.96 ▼5.83
Posts /wp-admin/edit.php3.37 ▲0.0144.64 ▼3.37
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.84 ▼12.87
Media Library /wp-admin/upload.php3.24 ▲0.0136.85 ▲3.59

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Semrush SEO Writing Assistant
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.15 ▼1.151.59 ▼0.2339.05 ▼4.69
Dashboard /wp-admin2,206 ▲185.07 ▼0.81114.32 ▲8.1442.50 ▲1.94
Posts /wp-admin/edit.php2,089 ▼02.09 ▲0.0435.03 ▲0.2132.09 ▼4.60
Add New Post /wp-admin/post-new.php6,713 ▲5,18529.50 ▲11.45981.52 ▲379.23109.28 ▲57.05
Media Library /wp-admin/upload.php1,388 ▼34.22 ▼0.10106.72 ▲6.4647.24 ▲4.79

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed: Please take inspiration from this readme.txt

semrush-seo-writing-assistant/semrush-seo-writing-assistant.php 85% from 13 tests

"Semrush SEO Writing Assistant" version 1.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 151 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin74 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP31910374

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods360.00%
▷ Protected methods00.00%
▷ Private methods240.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin