84% wp-sheet-editor-autofill

Code Review | Autofill post information for WP Sheet Editor

WordPress plugin Autofill post information for WP Sheet Editor scored84%from 54 tests.

About plugin

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

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,243 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Server-side resources used by Autofill post information for WP Sheet Editor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0033.97 ▼2.34
Dashboard /wp-admin3.31 ▲0.0043.45 ▼3.17
Posts /wp-admin/edit.php3.36 ▲0.0042.93 ▼0.93
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.79 ▼4.80
Media Library /wp-admin/upload.php3.23 ▲0.0030.84 ▲0.29

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Autofill post information for WP Sheet Editor: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.72 ▲0.371.75 ▲0.0338.92 ▼1.13
Dashboard /wp-admin2,198 ▲185.56 ▼0.0685.62 ▼6.8138.26 ▼6.63
Posts /wp-admin/edit.php2,103 ▲32.01 ▲0.0435.64 ▼2.2131.85 ▼2.28
Add New Post /wp-admin/post-new.php1,535 ▲618.16 ▼5.62599.99 ▼59.1260.04 ▲8.01
Media Library /wp-admin/upload.php1,400 ▼04.19 ▼0.0996.68 ▲0.5543.06 ▼0.63

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

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

Smoke tests 75% 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)
Even though no errors were found, 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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-sheet-editor-autofill/autofill-cells.php:60

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: quick edit, spreadsheet, admin, mass edit, pages...

wp-sheet-editor-autofill/autofill-cells.php 92% from 13 tests

The primary PHP file in "Autofill post information for WP Sheet Editor" version 1.0.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-sheet-editor-autofill.php" instead of "autofill-cells.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin34 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1141734

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.17
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods116.67%
▷ Public methods583.33%
▷ Protected methods00.00%
▷ Private methods116.67%
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
No PNG images were found in this plugin