Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/wp-textillate/wp-textillate.php+15
Methods with the same name as their class will not be constructors in a future version of PHP; WpTextillate has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼56.12ms] Passed 4 tests
Analyzing server-side resources used by Wp Textillate
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.37 | 5.01 ▼36.08 |
Dashboard /wp-admin | 2.11 ▼1.23 | 5.23 ▼57.52 |
Posts /wp-admin/edit.php | 2.11 ▼1.24 | 6.59 ▼41.53 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 6.09 ▼89.35 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 5.59 ▼30.26 |
Server storage [IO: ▲1.20MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 74 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
WpTextillate_Options |
widget_recent-comments |
widget_wptextillate_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Wp Textillate: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,945 ▲174 | 13.95 ▼0.43 | 5.48 ▲3.14 | 41.77 ▼6.15 |
Dashboard /wp-admin | 2,237 ▲37 | 5.83 ▼0.02 | 98.84 ▼17.53 | 37.56 ▼12.47 |
Posts /wp-admin/edit.php | 2,116 ▲13 | 1.99 ▲0.01 | 41.72 ▲5.72 | 36.64 ▼5.39 |
Add New Post /wp-admin/post-new.php | 1,567 ▲22 | 18.42 ▼4.67 | 617.44 ▼7.88 | 53.51 ▲2.09 |
Media Library /wp-admin/upload.php | 1,419 ▲16 | 4.22 ▼0.02 | 101.77 ▲1.70 | 42.42 ▼0.82 |
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
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/wp-textillate/wp-textillate.php+15
Methods with the same name as their class will not be constructors in a future version of PHP; WpTextillate has a deprecated constructor
- The uninstall procedure has failed, leaving 8 options in the database
- can_compress_scripts
- widget_recent-posts
- WpTextillate_Options
- db_upgraded
- widget_theysaidso_widget
- widget_wptextillate_widget
- theysaidso_admin_options
- widget_recent-comments
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
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
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-textillate/wp-textillate.php:137
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-textillate/includes/widgets.php:9
- > PHP Fatal error
Uncaught Error: Class 'WpTextillate' not found in wp-content/plugins/wp-textillate/includes/all-classes.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/wp-textillate/includes/assets.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-textillate/includes/ajax.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-textillate/includes/admin/panel.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-textillate/includes/shortcodes.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (This is how WP-textillate might look in your backend.), #2 (This is how WP-textillate add new text backend.), #3 (This is how WP-textillate on widgets backend.), #4 (This is how WP-textillate example shown frontend 01.), #5 (This is how WP-textillate example shown frontend 02.), #6 (This is how WP-textillate example shown frontend 03.)
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== wp-textillate ===
)
wp-textillate/wp-textillate.php Passed 13 tests
"Wp Textillate" version 0.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
106 characters long description:
The plugin allows you to add moving text with different animations both widgets and content via shortcode.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected6,761 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 492 | 62 | 3,320 |
JavaScript | 17 | 334 | 459 | 2,286 |
PHP | 11 | 233 | 519 | 905 |
SVG | 1 | 0 | 0 | 229 |
Markdown | 1 | 11 | 0 | 21 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 11.20 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 40 | |
▷ Static methods | 23 | 57.50% |
▷ Public methods | 40 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
26 PNG files occupy 0.37MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
Screenshot/Screenshot - Frontend 02.png | 13.32KB | 6.21KB | ▼ 53.35% |
screenshot-5.png | 23.05KB | 9.86KB | ▼ 57.24% |
js/vendors/gritter/images/018.png | 1.59KB | 0.97KB | ▼ 38.85% |
js/vendors/gritter/images/gritter-purple.png | 1.47KB | 0.60KB | ▼ 59.14% |
Screenshot/Screenshot - Frontend 03.png | 14.73KB | 6.52KB | ▼ 55.69% |