84% wp-sheet-editor-post-templates

Code Review | WP Post Templates for WP Sheet Editor

WordPress plugin WP Post Templates for WP Sheet Editor scored84%from 54 tests.

About plugin

  • Plugin page: wp-sheet-editor-p...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.9
  • WordPress version: 6.3.1
  • First release: May 2, 2018
  • Latest release: Nov 4, 2018
  • Number of updates: 5
  • Update frequency: every 37.2 days
  • Top authors: JoseVega (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,483 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.08ms] Passed 4 tests

This is a short check of server-side resources used by WP Post Templates for WP Sheet Editor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0340.52 ▼1.78
Dashboard /wp-admin3.34 ▲0.0350.74 ▲2.51
Posts /wp-admin/edit.php3.39 ▲0.0349.57 ▼4.92
Add New Post /wp-admin/post-new.php5.92 ▲0.0393.72 ▼6.82
Media Library /wp-admin/upload.php3.26 ▲0.0338.83 ▲1.19

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WP Post Templates for WP Sheet Editor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.15 ▼1.241.75 ▼0.3143.08 ▼1.74
Dashboard /wp-admin2,206 ▲215.94 ▲1.04100.29 ▼15.1041.46 ▲0.25
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0238.44 ▲1.0034.50 ▲0.68
Add New Post /wp-admin/post-new.php1,528 ▼523.39 ▼0.09678.34 ▼13.8858.05 ▲4.19
Media Library /wp-admin/upload.php1,388 ▼04.15 ▲0.00105.62 ▼9.1448.29 ▲1.42

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

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

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 4× 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-post-templates/posts-templates.php:228
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-sheet-editor-post-templates/views/welcome-page-content.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-sheet-editor-post-templates/vendor/vg-plugin-sdk/samples/email-optin-form.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/wp-sheet-editor-post-templates/vendor/vg-plugin-sdk/views/page-template.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: admin, spreadsheet, posts management, bulk edit, pages...

wp-sheet-editor-post-templates/posts-templates.php 92% from 13 tests

Analyzing the main PHP file in "WP Post Templates for WP Sheet Editor" version 1.0.1
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-sheet-editor-post-templates.php" instead of "posts-templates.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin456 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP510851408
CSS16048

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity24.50
▷ Minimum class complexity24.00
▷ Maximum class complexity25.00
Average method complexity3.04
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods23
▷ Static methods28.70%
▷ Public methods2295.65%
▷ Protected methods00.00%
▷ Private methods14.35%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.06MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/imgs/logo-248x102.png14.09KB5.48KB▼ 61.08%
assets/imgs/icon-20x20.png45.33KB0.51KB▼ 98.88%