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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 40.42 ▼4.27 |
Dashboard /wp-admin | 3.36 ▲0.05 | 48.36 ▼2.63 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 47.45 ▼3.66 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 93.04 ▼5.26 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.51 ▲0.16 | 1.77 ▲0.06 | 44.66 ▲2.41 |
Dashboard /wp-admin | 2,210 ▲25 | 4.84 ▼0.97 | 102.05 ▼5.35 | 40.68 ▲2.13 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▲0.04 | 38.24 ▲1.67 | 33.75 ▼1.90 |
Add New Post /wp-admin/post-new.php | 1,517 ▼4 | 17.40 ▼5.73 | 679.42 ▼17.81 | 55.63 ▲9.97 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.25 ▲0.14 | 101.83 ▼12.88 | 46.53 ▼1.85 |
Template Overrides /wp-admin/wp-template-overrides.php | 26 | 0.44 | 0.12 | 15.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
- > PHP Warning
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 282 | 49 | 21 | 382 |
PHP | 6 | 186 | 111 | 376 |
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 code | 0.28 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 2.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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