Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.89MB] [CPU: ▼34.60ms] Passed 4 tests
An overview of server-side resources used by Titan Elements
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.05 ▼6.43 |
Dashboard /wp-admin | 3.05 ▼0.25 | 24.77 ▼26.95 |
Posts /wp-admin/edit.php | 3.06 ▼0.30 | 24.51 ▼26.15 |
Add New Post /wp-admin/post-new.php | 3.05 ▼2.83 | 25.69 ▼71.74 |
Media Library /wp-admin/upload.php | 3.06 ▼0.17 | 24.65 ▼13.55 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
These are issues you should consider
- Illegal file modification found: 1 file (0.00KB) outside of "wp-content/plugins/titan-elements/" and "wp-content/uploads/"
- (new file) wp-content/plugins/wp-titan-elements-DATA/.empty
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Titan Elements
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲22 | 14.30 ▼0.05 | 1.79 ▼0.31 | 43.28 ▲2.28 |
Dashboard /wp-admin | 2,197 ▲23 | 5.51 ▼0.09 | 95.91 ▲1.98 | 82.60 ▲39.95 |
Posts /wp-admin/edit.php | 2,120 ▲20 | 1.99 ▲0.02 | 34.06 ▼7.13 | 32.05 ▼5.65 |
Add New Post /wp-admin/post-new.php | 1,552 ▲24 | 18.09 ▼5.29 | 710.23 ▲77.54 | 62.55 ▲10.58 |
Media Library /wp-admin/upload.php | 1,420 ▲23 | 4.22 ▲0.05 | 102.07 ▲2.19 | 83.51 ▲37.28 |
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
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/titan-elements/wp-titan-elements.php+30
Undefined index: Author URI
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
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
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/titan-elements/elements/core-modules/singular/te-module-singular.php:30
- > PHP Warning
Use of undefined constant WP_TITAN_DIR - assumed 'WP_TITAN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/titan-elements/elements/element-hooks.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/titan-elements/elements/element-hooks.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/titan-elements/admin/editor.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/titan-elements/admin/extend-wp-editor.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/titan-elements/elements/functions/element-functions.php:68
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: code editor, titan elements, helper, designer, visual editor
titan-elements/wp-titan-elements.php 92% from 13 tests
The main PHP file in "Titan Elements" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("titan-elements.php" instead of "wp-titan-elements.php")
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 plugin3,447 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 10 | 251 | 406 | 1,827 |
PHP | 10 | 53 | 198 | 1,006 |
CSS | 4 | 43 | 13 | 614 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 42 | |
▷ Named functions | 42 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.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
4 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/js/mini-colors/jquery.minicolors.png | 67.02KB | 34.31KB | ▼ 48.80% |
resources/images/icon.png | 3.42KB | 0.83KB | ▼ 75.76% |
resources/images/logo.png | 26.02KB | 10.80KB | ▼ 58.49% |
resources/images/editor-bg.png | 6.76KB | 2.53KB | ▼ 62.54% |