88% quick-edit-template-link

Code Review | Template Debugger

WordPress plugin Template Debugger scored 88% from 54 tests.

About plugin

  • Plugin page: quick-edit-templa...
  • Plugin version: 3.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.4.1
  • WordPress version: 5.8.1
  • First release: Nov 21, 2014
  • Latest release: May 26, 2020
  • Number of updates: 35
  • Update frequency: every 57.5 days
  • Top authors: ChubbyNinjaa (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

2,000+ active / 22,230 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼141.89ms] Passed 4 tests

A check of server-side resources used by Template Debugger
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.00 ▲0.1630.89 ▲4.97
Dashboard /wp-admin3.20 ▲0.1342.54 ▲0.86
Posts /wp-admin/edit.php3.31 ▲0.2033.69 ▼2.39
Add New Post /wp-admin/post-new.php5.57 ▲0.1271.13 ▼566.89
Media Library /wp-admin/upload.php3.15 ▲0.1426.64 ▲0.87

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Template Debugger
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,807 ▲20616.09 ▲0.575.00 ▼2.6475.96 ▼0.00
Dashboard /wp-admin2,954 ▲626.13 ▼0.00111.36 ▼29.42166.94 ▼13.76
Posts /wp-admin/edit.php2,727 ▼133.37 ▲0.0161.95 ▼2.63141.53 ▼1.69
Add New Post /wp-admin/post-new.php3,793 ▼1418.93 ▲0.01411.49 ▼28.99173.92 ▼3.36
Media Library /wp-admin/upload.php1,769 ▲175.50 ▲0.02147.77 ▲2.96187.62 ▼2.35

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% from 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
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/quick-edit-template-link/quick-edit-template-link.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quick-edit-template-link/clone/functions.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Plugin Name: You should set the name of your plugin on the first line ( === quick-edit-template-link === )
You can look at the official readme.txt

quick-edit-template-link/quick-edit-template-link.php Passed 13 tests

The main PHP script in "Template Debugger" version 3.1.2 is automatically included on every request by WordPress
105 characters long description:
A template debugger that helps you identify what template files are being used on the page you're viewing

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin791 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP318454672
PO File13131104
CSS381515

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity97.00
▷ Minimum class complexity97.00
▷ Maximum class complexity97.00
Average method complexity3.46
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods39
▷ Static methods00.00%
▷ Public methods3487.18%
▷ Protected methods00.00%
▷ Private methods512.82%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin