89% seo-file-names

Code Review | Seo File Names

WordPress plugin Seo File Names scored 89% from 54 tests.

About plugin

  • Plugin page: seo-file-names
  • Plugin version: 0.9.35
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.18-5.9.2
  • WordPress version: 6.3.1
  • First release: Nov 13, 2021
  • Latest release: Mar 20, 2022
  • Number of updates: 17
  • Update frequency: every 7.5 days
  • Top authors: afterglow22 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

20+ active / 610 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.16MB] [CPU: ▼2.11ms] Passed 4 tests

An overview of server-side resources used by Seo File Names
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.97 ▼2.75
Dashboard /wp-admin3.50 ▲0.2046.89 ▼3.65
Posts /wp-admin/edit.php3.61 ▲0.2648.44 ▼2.05
Add New Post /wp-admin/post-new.php6.08 ▲0.1992.88 ▼0.00
Media Library /wp-admin/upload.php3.42 ▲0.1935.65 ▲0.90
SEO File Names /wp-admin/options-general.php?page=asf-settings3.4037.17

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Seo File Names
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.48 ▲0.091.77 ▼0.5941.39 ▼9.77
Dashboard /wp-admin2,207 ▲194.88 ▲0.01111.38 ▼10.6940.34 ▼5.36
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0238.60 ▲3.3635.95 ▼0.92
Add New Post /wp-admin/post-new.php1,517 ▼1617.66 ▼5.73586.87 ▲1.1853.37 ▲5.62
Media Library /wp-admin/upload.php1,395 ▲74.19 ▼0.0093.56 ▼1.3541.48 ▲0.50
SEO File Names /wp-admin/options-general.php?page=asf-settings1,4221.9234.5959.42

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

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)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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 just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Tags: There are too many tags (12 tag instead of maximum 10)
Please take inspiration from this readme.txt

seo-file-names/afg-seo-file-names.php 85% from 13 tests

The principal PHP file in "Seo File Names" v. 0.9.35 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("seo-file-names.php" instead of "afg-seo-file-names.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 148 characters long)

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 plugin2,433 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP112153331,049
JavaScript56842480
CSS17932469
PO File17275261
SVG501112
Markdown125062

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity39.75
▷ Minimum class complexity1.00
▷ Maximum class complexity87.00
Average method complexity4.60
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods43
▷ Static methods00.00%
▷ Public methods2148.84%
▷ Protected methods00.00%
▷ Private methods2251.16%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
No PNG images were found in this plugin