Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method WP_TV_Template_Viewer::wp_tv_activate() should not be called statically
Server metrics [RAM: ▲0.07MB] [CPU: ▼2.46ms] Passed 4 tests
This is a short check of server-side resources used by WP Template Viewer
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 40.33 ▼0.38 |
Dashboard /wp-admin | 3.38 ▲0.08 | 47.57 ▼4.86 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 46.12 ▼0.45 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 91.16 ▼4.13 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.94 ▲1.86 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
WP Template Viewer: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,225 ▲490 | 14.32 ▼0.27 | 14.48 ▲12.89 | 41.02 ▼0.59 |
Dashboard /wp-admin | 2,209 ▲21 | 4.88 ▼0.03 | 100.16 ▼5.18 | 43.41 ▲5.12 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 1.98 ▼0.05 | 37.11 ▼0.19 | 30.40 ▼1.88 |
Add New Post /wp-admin/post-new.php | 1,514 ▼20 | 17.66 ▼5.33 | 601.07 ▲2.01 | 56.49 ▼6.92 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.18 ▼0.04 | 98.24 ▼4.37 | 42.58 ▼1.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method WP_TV_Template_Viewer::wp_tv_deactivate() should not be called statically
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-template-viewer/wp-template-viewer.php:95
- > PHP Fatal error
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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: template files, content, template, files, file content...
wp-template-viewer/wp-template-viewer.php 92% from 13 tests
The primary PHP file in "WP Template Viewer" version 1.0.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Domain Path: The domain path folder does not exist ("/lang")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin548 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 144 | 227 | 309 |
CSS | 2 | 27 | 5 | 145 |
JavaScript | 1 | 27 | 11 | 94 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 52.00 |
▷ Minimum class complexity | 52.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 4.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 2 | 14.29% |
▷ Public methods | 13 | 92.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 7.14% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin