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 gracefully, with no errors
Server metrics [RAM: ▲0.64MB] [CPU: ▲1.61ms] Passed 4 tests
Server-side resources used by Image and text animated headlines
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.97 ▲0.50 | 43.73 ▲1.26 |
Dashboard /wp-admin | 4.05 ▲0.75 | 52.33 ▼1.19 |
Posts /wp-admin/edit.php | 4.06 ▲0.70 | 54.90 ▲1.01 |
Add New Post /wp-admin/post-new.php | 6.62 ▲0.73 | 92.16 ▲5.36 |
Media Library /wp-admin/upload.php | 3.88 ▲0.65 | 42.11 ▲6.01 |
Animation1 settings /wp-admin/admin.php?page=animaton_1_settings | 3.90 | 41.47 |
Animated headlines /wp-admin/admin.php?page=imtah_settings | 3.87 | 39.94 |
Animation2 settings /wp-admin/admin.php?page=animaton_2_settings | 3.91 | 39.50 |
Animation3 settings /wp-admin/admin.php?page=animaton_3_settings | 3.91 | 41.50 |
Server storage [IO: ▲0.51MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 14 new files
Database: 3 new tables, 36 new options
New tables |
---|
wp_imtah_animation1Table |
wp_imtah_animation2Table |
wp_imtah_animation3Table |
New WordPress options |
---|
theysaidso_admin_options |
imtah_animation1_text1 |
imtah_animation3_text3 |
imtah_animation2_text4 |
imtah_animation3_url |
imtah_animation3_font |
imtah_animation2_text2 |
imtah_animation2_text3 |
imtah_animation3_image_attachment_id2 |
imtah_animation3_text2 |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Image and text animated headlines
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,137 ▲391 | 15.43 ▲1.16 | 8.62 ▲6.82 | 45.10 ▲2.29 |
Dashboard /wp-admin | 2,412 ▲221 | 6.63 ▲1.77 | 144.81 ▲27.52 | 42.74 ▲3.37 |
Posts /wp-admin/edit.php | 2,329 ▲240 | 3.64 ▲1.65 | 58.40 ▲18.58 | 36.41 ▲0.41 |
Add New Post /wp-admin/post-new.php | 1,772 ▲258 | 24.92 ▲7.40 | 599.16 ▼49.47 | 36.39 ▼39.00 |
Media Library /wp-admin/upload.php | 1,501 ▲119 | 4.68 ▲0.47 | 94.61 ▼7.65 | 45.77 ▲3.41 |
Animation1 settings /wp-admin/admin.php?page=animaton_1_settings | 1,525 | 3.82 | 82.73 | 28.83 |
Animated headlines /wp-admin/admin.php?page=imtah_settings | 1,059 | 3.23 | 45.94 | 70.05 |
Animation2 settings /wp-admin/admin.php?page=animaton_2_settings | 1,559 | 3.85 | 83.20 | 30.37 |
Animation3 settings /wp-admin/admin.php?page=animaton_3_settings | 1,559 | 3.88 | 84.44 | 29.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5737
Function unregister_setting was called with an argument that is deprecated since version 4.7.0! $sanitize_callback is deprecated. The callback from register_setting() is used instead.
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_wpb_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Please fix the following
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-and-text-animated-headlines/animation2.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-and-text-animated-headlines/animation1.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-and-text-animated-headlines/animation3.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-and-text-animated-headlines/animation1.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=animaton_3_settings
- > Javascript (severe) in unknown
/wp-content/plugins/image-and-text-animated-headlines/js/animation1.js?ver=2017 5:41 Uncaught TypeError: wp.media is not a function
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=animaton_3_settings
- > Javascript (severe) in unknown
/wp-content/plugins/image-and-text-animated-headlines/js/animation2.js?ver=2017 6:42 Uncaught TypeError: wp.media is not a function
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=animaton_3_settings
- > Javascript (severe) in unknown
/wp-content/plugins/image-and-text-animated-headlines/js/animation3.js?ver=2017 6:42 Uncaught TypeError: wp.media is not a function
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (screenshot-1.jpg), #2 (screenshot-2.jpg), #3 (screenshot-3.jpg)
image-and-text-animated-headlines/Image-and-text-animated-headlines.php 92% from 13 tests
The main file in "Image and text animated headlines" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("image-and-text-animated-headlines.php" instead of "Image-and-text-animated-headlines.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected4,025 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 789 | 975 | 3,887 |
JavaScript | 4 | 31 | 11 | 138 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 38.80 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 124.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.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 | 87 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 66 | 75.86% |
▷ Protected methods | 21 | 24.14% |
▷ Private methods | 0 | 0.00% |
Functions | 63 | |
▷ Named functions | 63 | 100.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
There were not PNG files found in your plugin