79% wp-template-overrides

Code Review | WP Template Overrides

WordPress plugin WP Template Overrides scored79%from 54 tests.

About plugin

  • Plugin page: wp-template-overr...
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7.1-3.8.1
  • WordPress version: 6.3.1
  • First release: Nov 29, 2013
  • Latest release: Mar 9, 2014
  • Number of updates: 7
  • Update frequency: every 14.4 days
  • Top authors: casben79 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /1,894 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.96ms] Passed 4 tests

An overview of server-side resources used by WP Template Overrides
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.42 ▼4.27
Dashboard /wp-admin3.36 ▲0.0548.36 ▼2.63
Posts /wp-admin/edit.php3.41 ▲0.0547.45 ▼3.66
Add New Post /wp-admin/post-new.php5.94 ▲0.0593.04 ▼5.26
Media Library /wp-admin/upload.php3.28 ▲0.0536.83 ▼0.26

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 292 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by WP Template Overrides
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.51 ▲0.161.77 ▲0.0644.66 ▲2.41
Dashboard /wp-admin2,210 ▲254.84 ▼0.97102.05 ▼5.3540.68 ▲2.13
Posts /wp-admin/edit.php2,093 ▲42.00 ▲0.0438.24 ▲1.6733.75 ▼1.90
Add New Post /wp-admin/post-new.php1,517 ▼417.40 ▼5.73679.42 ▼17.8155.63 ▲9.97
Media Library /wp-admin/upload.php1,392 ▲44.25 ▲0.14101.83 ▼12.8846.53 ▼1.85
Template Overrides /wp-admin/wp-template-overrides.php260.440.1215.74

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means 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
The following issues need your attention
  • 8× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      Use of undefined constant WPTO_PLUGIN_PATH - assumed 'WPTO_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-template-overrides/inc/admin_parts/list-overrides.php on line 5
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/wp-template-overrides/inc/class-wpto-listtable.php:5
    • > PHP Warning
      require_once(WPTO_PLUGIN_PATHinc/class-wpto-listtable.php): failed to open stream: No such file or directory in wp-content/plugins/wp-template-overrides/inc/admin_parts/list-overrides.php on line 5
    • > PHP Fatal error
      require_once(): Failed opening required 'WPTO_PLUGIN_PATHinc/class-wpto-listtable.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-template-overrides/inc/admin_parts/list-overrides.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-template-overrides/inc/admin_parts/new-override.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-template-overrides/wp-template-overrides.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wp-template-overrides/inc/admin_parts/edit-override.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-template-overrides/inc/wpto-admin-page.php:17

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
    • > GET request to /wp-admin/wp-template-overrides.php
    • > Network (severe)
    wp-admin/wp-template-overrides.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: tweaks, template override, template, override template, modifications

wp-template-overrides/wp-template-overrides.php Passed 13 tests

"WP Template Overrides" version 0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
68 characters long description:
A plugin to assist in minor template tweaks, without all the hassle.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected758 lines of code in 288 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2824921382
PHP6186111376

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity20.00
▷ Minimum class complexity7.00
▷ Maximum class complexity33.00
Average method complexity2.85
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin