84% text-spinner

Code Review | Text Spinner

WordPress plugin Text Spinner scored84%from 54 tests.

About plugin

  • Plugin page: text-spinner
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-5.2
  • WordPress version: 6.3.1
  • First release: Mar 6, 2014
  • Latest release: May 24, 2019
  • Number of updates: 11
  • Update frequency: every 173.2 days
  • Top authors: khaxan (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

3,000+ active /25,025 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.33ms] Passed 4 tests

Analyzing server-side resources used by Text Spinner
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.98 ▼0.35
Dashboard /wp-admin3.31 ▲0.0049.99 ▲1.26
Posts /wp-admin/edit.php3.36 ▲0.0048.39 ▼6.91
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.09 ▼15.32
Media Library /wp-admin/upload.php3.23 ▲0.0041.54 ▲5.84

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Text Spinner: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.301.80 ▲0.0644.58 ▼1.91
Dashboard /wp-admin2,198 ▲185.63 ▼0.0190.47 ▼1.1043.58 ▲1.95
Posts /wp-admin/edit.php2,097 ▼62.03 ▲0.0237.76 ▼4.0334.01 ▼3.41
Add New Post /wp-admin/post-new.php1,526 ▼1022.94 ▲0.03669.93 ▲7.3260.84 ▲5.98
Media Library /wp-admin/upload.php1,403 ▲34.20 ▼0.0799.00 ▼7.5941.76 ▼5.63

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/text-spinner/text-spinner.php:41

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: php spintax, text spinner, shortcode, wordpress seo, seo...

text-spinner/text-spinner.php Passed 13 tests

The entry point to "Text Spinner" version 1.3.0 is a PHP file that has certain tags in its header comment area
63 characters long description:
Allows you to use spintax in your posts, pages and theme files.

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
There were no executable files found in this plugin51 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1163251

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods360.00%
▷ Protected methods00.00%
▷ Private methods240.00%
Functions2
▷ Named functions2100.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
There are no PNG files in this plugin