84% seo-file-renamer

Code Review | SEO File Renamer

WordPress plugin SEO File Renamer scored84%from 54 tests.

About plugin

  • Plugin page: seo-file-renamer
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1.0-5.8.2
  • WordPress version: 6.3.1
  • First release: Nov 18, 2021
  • Latest release: Dec 2, 2021
  • Number of updates: 11
  • Update frequency: every 1.4 days
  • Top authors: kinskiandbourke (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /397 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.91ms] Passed 4 tests

An overview of server-side resources used by SEO File Renamer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.19 ▲1.40
Dashboard /wp-admin3.32 ▼0.0349.00 ▼14.03
Posts /wp-admin/edit.php3.37 ▲0.0145.17 ▲2.39
Add New Post /wp-admin/post-new.php5.90 ▲0.0178.50 ▼21.41
Media Library /wp-admin/upload.php3.24 ▲0.0134.96 ▲3.35

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

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

Browser metrics Passed 4 tests

Checking browser requirements for SEO File Renamer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲3514.24 ▼0.122.05 ▲0.3246.89 ▲4.88
Dashboard /wp-admin2,212 ▲385.57 ▼0.0482.87 ▲0.2381.48 ▲37.88
Posts /wp-admin/edit.php2,135 ▲352.01 ▲0.0336.83 ▲2.4632.69 ▼2.63
Add New Post /wp-admin/post-new.php1,561 ▲3523.11 ▼0.20729.11 ▲48.6154.48 ▲3.66
Media Library /wp-admin/upload.php1,432 ▲324.14 ▼0.15104.10 ▼2.5783.37 ▲36.53

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
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/seo-file-renamer/seo-file-renamer.php:111

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: sanitization, renamer, google search, seo

seo-file-renamer/seo-file-renamer.php Passed 13 tests

The entry point to "SEO File Renamer" version 1.0.3 is a PHP file that has certain tags in its header comment area
58 characters long description:
A super simple plugin for uploaded file name sanitization.

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
Good job! No executable or dangerous file extensions detected214 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP42418118
CSS10077
SVG10119

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods770.00%
▷ Protected methods00.00%
▷ Private methods330.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
lib/admin/images/seo-renamer-icon.png0.67KB0.67KB0.00%