78% semrush-contentshake

Code Review | Semrush ContentShake

WordPress plugin Semrush ContentShake scored 78% from 54 tests.

About plugin

  • Plugin page: semrush-contentshake
  • Plugin version: 1.1.21
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Apr 27, 2023
  • Latest release: Apr 27, 2023
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: semrush (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 734 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.06MB] [CPU: ▼5.40ms] Passed 4 tests

An overview of server-side resources used by Semrush ContentShake
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0436.24 ▼11.49
Dashboard /wp-admin3.35 ▲0.0546.17 ▼3.57
Posts /wp-admin/edit.php3.47 ▲0.1149.46 ▼0.05
Add New Post /wp-admin/post-new.php5.98 ▲0.0998.11 ▼6.50
Media Library /wp-admin/upload.php3.28 ▲0.0435.16 ▲0.46
ContentShake /wp-admin/options-general.php?page=contentshake3.2633.89

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 8 new options
New WordPress options
semrush_contentshake_api_key_accepting
widget_theysaidso_widget
semrush_contentshake_api_key
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Semrush ContentShake: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲7213.25 ▼1.131.82 ▼0.3937.30 ▲0.25
Dashboard /wp-admin2,210 ▲195.85 ▼0.05108.74 ▲0.3542.17 ▼4.51
Posts /wp-admin/edit.php2,096 ▲42.04 ▲0.0739.29 ▼2.3034.59 ▼1.32
Add New Post /wp-admin/post-new.php1,536 ▲823.45 ▲5.08668.97 ▲51.9152.26 ▼2.36
Media Library /wp-admin/upload.php1,392 ▲44.20 ▲0.0296.33 ▼4.5540.68 ▼2.31
ContentShake /wp-admin/options-general.php?page=contentshake8052.0123.4344.14

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

Smoke tests 50% from 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)
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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/semrush-contentshake/contentshake.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function home_url() in wp-content/plugins/semrush-contentshake/pages/settings.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: semrush, content marketing, seo, ai

semrush-contentshake/contentshake.php 85% from 13 tests

The entry point to "Semrush ContentShake" version 1.1.21 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("semrush-contentshake.php" instead of "contentshake.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
Good job! No executable or dangerous file extensions detected274 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP37183274

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity1.61
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods15.56%
▷ Public methods1794.44%
▷ Protected methods00.00%
▷ Private methods15.56%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 1.20MB with 0.59MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/logo@2x.png4.84KB3.16KB▼ 34.71%
images/banner.png106.39KB27.93KB▼ 73.75%
images/logo@3x.png7.81KB4.51KB▼ 42.31%
images/banner@3x.png742.61KB195.36KB▼ 73.69%
images/logo.png2.26KB1.83KB▼ 19.28%