78% wpm-template-manager

Code Review | Template Manager by WordPress Monsters

WordPress plugin Template Manager by WordPress Monsters scored 78% from 54 tests.

About plugin

  • Plugin page: wpm-template-manager
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.0-4.8
  • WordPress version: 6.3.1
  • First release: May 16, 2017
  • Latest release: May 17, 2017
  • Number of updates: 23
  • Update frequency: every 1.5 days
  • Top authors: Wordpress Monsters (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 815 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.08MB] [CPU: ▼3.06ms] Passed 4 tests

An overview of server-side resources used by Template Manager by WordPress Monsters
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0841.70 ▲0.33
Dashboard /wp-admin3.38 ▲0.0848.36 ▲0.60
Posts /wp-admin/edit.php3.50 ▲0.1445.97 ▼3.10
Add New Post /wp-admin/post-new.php5.97 ▲0.0884.16 ▼10.07
Media Library /wp-admin/upload.php3.30 ▲0.0736.33 ▲3.81
Settings /wp-admin/edit.php?post_type=wpm-template&page=template_manager_settings3.2630.37
Add New /wp-admin/post-new.php?post_type=wpm-template3.4348.48
Templates /wp-admin/edit.php?post_type=wpm-template3.3536.22

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Template Manager by WordPress Monsters
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲10114.79 ▲0.601.99 ▲0.2744.27 ▲3.07
Dashboard /wp-admin2,239 ▲515.84 ▲0.9196.58 ▼5.3838.20 ▼6.41
Posts /wp-admin/edit.php2,122 ▲332.02 ▲0.0135.42 ▼0.7734.74 ▼0.77
Add New Post /wp-admin/post-new.php1,556 ▲3523.28 ▲0.09637.75 ▼73.0867.36 ▲15.26
Media Library /wp-admin/upload.php1,421 ▲364.21 ▲0.0393.68 ▼4.2242.60 ▼1.43
Settings /wp-admin/edit.php?post_type=wpm-template&page=template_manager_settings1,3062.0323.6031.01
Add New /wp-admin/post-new.php?post_type=wpm-template2,1597.93171.7465.61
Templates /wp-admin/edit.php?post_type=wpm-template1,0832.0030.8128.85

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 were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/edit.php?post_type=wpm-template&page=template_manager_settings
    • > Notice in wp-content/plugins/wpm-template-manager/includes/options-page.php+92
    Undefined index: archive_post
  • 24 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=wpm-template&page=template_manager_settings
    • > Notice in wp-content/plugins/wpm-template-manager/wpm-template-manager.php+54
    Undefined variable: option
    • > GET request to /wp-admin/edit.php?post_type=wpm-template&page=template_manager_settings
    • > Notice in wp-content/plugins/wpm-template-manager/includes/options-page.php+98
    Undefined index: single_post
    • > GET request to /wp-admin/edit.php?post_type=wpm-template&page=template_manager_settings
    • > Notice in wp-content/plugins/wpm-template-manager/includes/options-page.php+92
    Undefined index: archive_attachment
    • > GET request to /wp-admin/edit.php?post_type=wpm-template&page=template_manager_settings
    • > Notice in wp-content/plugins/wpm-template-manager/includes/options-page.php+98
    Undefined index: single_attachment
    • > GET request to /wp-admin/edit.php?post_type=wpm-template&page=template_manager_settings
    • > Notice in wp-content/plugins/wpm-template-manager/includes/options-page.php+92
    Undefined index: archive_oembed_cache
    • > GET request to /wp-admin/edit.php?post_type=wpm-template&page=template_manager_settings
    • > Notice in wp-content/plugins/wpm-template-manager/includes/options-page.php+98
    Undefined index: single_oembed_cache
    • > GET request to /wp-admin/edit.php?post_type=wpm-template&page=template_manager_settings
    • > Notice in wp-content/plugins/wpm-template-manager/includes/options-page.php+92
    Undefined index: archive_user_request
    • > GET request to /wp-admin/edit.php?post_type=wpm-template&page=template_manager_settings
    • > Notice in wp-content/plugins/wpm-template-manager/includes/options-page.php+98
    Undefined index: single_user_request
    • > GET request to /wp-admin/edit.php?post_type=wpm-template&page=template_manager_settings
    • > Notice in wp-content/plugins/wpm-template-manager/includes/options-page.php+92
    Undefined index: archive_wp_block
    • > GET request to /wp-admin/edit.php?post_type=wpm-template&page=template_manager_settings
    • > Notice in wp-content/plugins/wpm-template-manager/includes/options-page.php+98
    Undefined index: single_wp_block
    • > GET request to /wp-admin/edit.php?post_type=wpm-template&page=template_manager_settings
    • > Notice in wp-content/plugins/wpm-template-manager/includes/options-page.php+92
    Undefined index: archive_wp_template
    • > GET request to /wp-admin/edit.php?post_type=wpm-template&page=template_manager_settings
    • > Notice in wp-content/plugins/wpm-template-manager/includes/options-page.php+98
    Undefined index: single_wp_template
    • > GET request to /wp-admin/edit.php?post_type=wpm-template&page=template_manager_settings
    • > Notice in wp-content/plugins/wpm-template-manager/includes/options-page.php+92
    Undefined index: archive_wp_template_part
    • > GET request to /wp-admin/edit.php?post_type=wpm-template&page=template_manager_settings
    • > Notice in wp-content/plugins/wpm-template-manager/includes/options-page.php+98
    Undefined index: single_wp_template_part
    • > GET request to /wp-admin/edit.php?post_type=wpm-template&page=template_manager_settings
    • > Notice in wp-content/plugins/wpm-template-manager/includes/options-page.php+92
    Undefined index: archive_wp_global_styles
    • > GET request to /wp-admin/edit.php?post_type=wpm-template&page=template_manager_settings
    • > Notice in wp-content/plugins/wpm-template-manager/includes/options-page.php+98
    Undefined index: single_wp_global_styles
    • > GET request to /wp-admin/edit.php?post_type=wpm-template&page=template_manager_settings
    • > Notice in wp-content/plugins/wpm-template-manager/includes/options-page.php+92
    Undefined index: archive_wp_navigation
    • > GET request to /wp-admin/edit.php?post_type=wpm-template&page=template_manager_settings
    • > Notice in wp-content/plugins/wpm-template-manager/includes/options-page.php+98
    Undefined index: single_wp_navigation
    • > GET request to /wp-admin/edit.php?post_type=wpm-template&page=template_manager_settings
    • > Notice in wp-content/plugins/wpm-template-manager/includes/options-page.php+113
    Undefined index: tax_category
    • > GET request to /wp-admin/edit.php?post_type=wpm-template&page=template_manager_settings
    • > Notice in wp-content/plugins/wpm-template-manager/includes/options-page.php+113
    Undefined index: tax_post_tag
    • > GET request to /wp-admin/edit.php?post_type=wpm-template&page=template_manager_settings
    • > Notice in wp-content/plugins/wpm-template-manager/includes/options-page.php+113
    Undefined index: tax_wp_theme
    • > GET request to /wp-admin/edit.php?post_type=wpm-template&page=template_manager_settings
    • > Notice in wp-content/plugins/wpm-template-manager/includes/options-page.php+113
    Undefined index: tax_wp_template_part_area
    • > GET request to /wp-admin/edit.php?post_type=wpm-template&page=template_manager_settings
    • > Notice in wp-content/plugins/wpm-template-manager/includes/options-page.php+128
    Undefined index: single_404
    • > GET request to /wp-admin/edit.php?post_type=wpm-template&page=template_manager_settings
    • > Notice in wp-content/plugins/wpm-template-manager/includes/options-page.php+139
    Undefined index: single_search

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
The following issues need your attention
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wpm-template-manager/wpm-template-manager.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpm-template-manager/includes/enqueues.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpm-template-manager/includes/options-page.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wpm-template-manager/includes/post-type-template.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpm-template-manager/includes/meta-box.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === wpm-template-manager === )
You can look at the official readme.txt

wpm-template-manager/wpm-template-manager.php Passed 13 tests

Analyzing the main PHP file in "Template Manager by WordPress Monsters" version 1.1.0
116 characters long description:
This is a temlate manager plugin for easy WordPress development from scratch when you are use Page Builders plugins.

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
Good job! No executable or dangerous file extensions detected391 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP680114385
CSS1106

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There are no PNG files in this plugin