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.15MB] [CPU: ▼3.22ms] Passed 4 tests
A check of server-side resources used by Templ Optimizer
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.14 | 40.44 ▲1.69 |
Dashboard /wp-admin | 3.45 ▲0.14 | 46.00 ▼0.94 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 47.33 ▼1.37 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.16 | 91.59 ▼12.24 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 35.86 ▲5.53 |
Templ Optimizer /wp-admin/tools.php?page=templ-optimizer | 3.34 | 30.05 |
Server storage [IO: ▲0.62MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
templ_optimizer_settings |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Templ Optimizer
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲32 | 14.67 ▲0.53 | 1.75 ▼0.08 | 43.66 ▼1.48 |
Dashboard /wp-admin | 2,199 ▲22 | 5.58 ▼0.06 | 93.61 ▲6.37 | 42.72 ▲1.59 |
Posts /wp-admin/edit.php | 2,106 ▲9 | 1.86 ▼0.08 | 35.05 ▼2.64 | 37.21 ▲4.62 |
Add New Post /wp-admin/post-new.php | 1,528 ▲1 | 23.51 ▲0.32 | 632.60 ▼52.48 | 61.52 ▲1.55 |
Media Library /wp-admin/upload.php | 1,401 ▲4 | 4.22 ▼0.04 | 100.03 ▲1.71 | 42.01 ▲1.19 |
Templ Optimizer /wp-admin/tools.php?page=templ-optimizer | 1,702 | 10.91 | 192.40 | 132.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- templ_optimizer_settings
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'templOptimizer' not found in wp-content/plugins/templ-optimizer/includes/vendor/WPConfigTransformer.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: performance, optimize, database, speed, clean-up
templ-optimizer/templ-optimizer.php Passed 13 tests
The primary PHP file in "Templ Optimizer" version 2.0.1 is used by WordPress to initiate all plugin functionality
139 characters long description:
An easy-to-use optimization plugin that lets you clean your database and tweak various performance related settings on your WordPress site.
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
Success! There were no dangerous files found in this plugin914 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 235 | 171 | 829 |
JavaScript | 2 | 0 | 28 | 33 |
CSS | 3 | 6 | 0 | 31 |
HTML | 1 | 1 | 0 | 21 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 17.20 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 2.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 57 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 53 | 92.98% |
▷ Protected methods | 4 | 7.02% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin