10% wp-textillate

Code Review | Wp Textillate

WordPress plugin Wp Textillate scored10%from 54 tests.

About plugin

  • Plugin page: wp-textillate
  • Plugin version: 0.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.0.1
  • WordPress version: 6.3.1
  • First release: Dec 17, 2014
  • Latest release: Sep 18, 2015
  • Number of updates: 22
  • Update frequency: every 12.5 days
  • Top authors: codefield (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

10+ active /1,918 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.375.01 ▼36.08
Dashboard /wp-admin2.11 ▼1.235.23 ▼57.52
Posts /wp-admin/edit.php2.11 ▼1.246.59 ▼41.53
Add New Post /wp-admin/post-new.php2.11 ▼3.786.09 ▼89.35
Media Library /wp-admin/upload.php2.11 ▼1.125.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,945 ▲17413.95 ▼0.435.48 ▲3.1441.77 ▼6.15
Dashboard /wp-admin2,237 ▲375.83 ▼0.0298.84 ▼17.5337.56 ▼12.47
Posts /wp-admin/edit.php2,116 ▲131.99 ▲0.0141.72 ▲5.7236.64 ▼5.39
Add New Post /wp-admin/post-new.php1,567 ▲2218.42 ▼4.67617.44 ▼7.8853.51 ▲2.09
Media Library /wp-admin/upload.php1,419 ▲164.22 ▼0.02101.77 ▲1.7042.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

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 === )
You can take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
CSS8492623,320
JavaScript173344592,286
PHP11233519905
SVG100229
Markdown111021

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 code0.19
Average class complexity11.20
▷ Minimum class complexity5.00
▷ Maximum class complexity18.00
Average method complexity2.27
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods40
▷ Static methods2357.50%
▷ Public methods40100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
FileSize - originalSize - compressedSavings
Screenshot/Screenshot - Frontend 02.png13.32KB6.21KB▼ 53.35%
screenshot-5.png23.05KB9.86KB▼ 57.24%
js/vendors/gritter/images/018.png1.59KB0.97KB▼ 38.85%
js/vendors/gritter/images/gritter-purple.png1.47KB0.60KB▼ 59.14%
Screenshot/Screenshot - Frontend 03.png14.73KB6.52KB▼ 55.69%