84% wp-sheet-editor-columns-renaming

Code Review | Columns renaming for WP Sheet Editor

WordPress plugin Columns renaming for WP Sheet Editor scored84%from 54 tests.

About plugin

  • Plugin page: wp-sheet-editor-c...
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.2
  • WordPress version: 6.3.1
  • First release: May 16, 2017
  • Latest release: Sep 9, 2019
  • Number of updates: 7
  • Update frequency: every 122.1 days
  • Top authors: JoseVega (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,259 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Server-side resources used by Columns renaming for WP Sheet Editor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0133.01 ▼9.03
Dashboard /wp-admin3.31 ▲0.0146.02 ▼2.11
Posts /wp-admin/edit.php3.36 ▲0.0047.45 ▲2.91
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.98 ▼0.62
Media Library /wp-admin/upload.php3.23 ▲0.0033.60 ▼0.35

Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Columns renaming for WP Sheet Editor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.28 ▼1.101.55 ▼0.2841.22 ▼5.70
Dashboard /wp-admin2,209 ▲245.86 ▼0.0497.41 ▼8.1538.00 ▼5.58
Posts /wp-admin/edit.php2,089 ▼32.01 ▲0.0439.69 ▲5.5834.68 ▼0.23
Add New Post /wp-admin/post-new.php1,542 ▲918.54 ▼4.96648.00 ▼42.6946.01 ▼27.04
Media Library /wp-admin/upload.php1,388 ▼34.21 ▼0.0197.05 ▲2.1543.54 ▼1.54

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors 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/wp-sheet-editor-columns-renaming/columns-renaming.php:199

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 issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: admin, pages, mass edit, spreadsheet, bulk edit...

wp-sheet-editor-columns-renaming/columns-renaming.php 92% from 13 tests

This is the main PHP file of "Columns renaming for WP Sheet Editor" version 1.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-sheet-editor-columns-renaming.php" instead of "columns-renaming.php")

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
There were no executable files found in this plugin202 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13830137
JavaScript112565

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity29.00
▷ Minimum class complexity29.00
▷ Maximum class complexity29.00
Average method complexity3.80
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods110.00%
▷ Public methods990.00%
▷ Protected methods00.00%
▷ Private methods110.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.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
There are no PNG files in this plugin