89% seogun

Code Review | SEO Gun

WordPress plugin SEO Gun scored89%from 54 tests.

About plugin

  • Plugin page: seogun
  • Plugin version: 1.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4.1
  • WordPress version: 6.3.1
  • First release: May 13, 2020
  • Latest release: May 14, 2020
  • Number of updates: 11
  • Update frequency: every 0.1 days
  • Top authors: seogun (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /672 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▲0.54ms] 75% from 4 tests

Analyzing server-side resources used by SEO Gun
Please fix the following
  • CPU: The total CPU usage must kept under 500.00ms (currently 507.31ms on /wp-admin/options-general.php?page=seogun)
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.78 ▼2.53
Dashboard /wp-admin3.32 ▲0.0248.06 ▼2.85
Posts /wp-admin/edit.php3.38 ▲0.0254.95 ▲6.10
Add New Post /wp-admin/post-new.php5.93 ▲0.04101.03 ▲1.87
Media Library /wp-admin/upload.php3.25 ▲0.0240.17 ▲5.68
SEO Gun /wp-admin/options-general.php?page=seogun3.68507.31

Server storage [IO: ▲0.35MB] [DB: ▲0.05MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
seogun_settings
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

SEO Gun: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.17 ▼0.241.67 ▼0.0238.65 ▼5.54
Dashboard /wp-admin2,199 ▲225.65 ▲0.0290.34 ▼2.3241.29 ▼1.25
Posts /wp-admin/edit.php2,107 ▲72.02 ▼0.0142.87 ▲1.0936.21 ▼2.13
Add New Post /wp-admin/post-new.php6,383 ▲4,85519.47 ▼3.49946.80 ▲269.9939.84 ▼15.72
Media Library /wp-admin/upload.php1,404 ▲44.19 ▲0.0197.63 ▼2.1743.49 ▼1.69
SEO Gun /wp-admin/options-general.php?page=seogun2,0312.0125.26124.77

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • seogun_settings

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 75% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Contributors: No valid plugin tags found
  • Screenshots: No descriptions were found for these screenshots #3, #4 in seogun/assets to your readme.txt
  • Donate link: Invalid URI ("")
  • Contributors: The plugin contributors field is not present
You can look at the official readme.txt

seogun/seogun.php Passed 13 tests

The main PHP file in "SEO Gun" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
98 characters long description:
AI based wordpress plugin that help's you to enhance your SEO by linking all your article togther.

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
Everything looks great! No dangerous files found in this plugin1,587 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP423450614
JavaScript216837588
CSS1451227
PO File15053139
SVG120012
JSON7007

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity12.00
▷ Minimum class complexity3.00
▷ Maximum class complexity27.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods1466.67%
▷ Protected methods00.00%
▷ Private methods733.33%
Functions7
▷ Named functions00.00%
▷ Anonymous functions7100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin