84% textoptimizer

Code Review | TextOptimizer

WordPress plugin TextOptimizer scored 84% from 54 tests.

About plugin

  • Plugin page: textoptimizer
  • Plugin version: 4.4.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.7
  • WordPress version: 6.3.1
  • First release: Nov 30, 2016
  • Latest release: May 13, 2021
  • Number of updates: 81
  • Update frequency: every 20.3 days
  • Top authors: textoptimizer (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active / 6,886 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.45ms] Passed 4 tests

This is a short check of server-side resources used by TextOptimizer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.64 ▼3.10
Dashboard /wp-admin3.34 ▲0.0347.12 ▼3.72
Posts /wp-admin/edit.php3.39 ▲0.0350.66 ▲3.17
Add New Post /wp-admin/post-new.php5.94 ▲0.0587.63 ▼7.74
Media Library /wp-admin/upload.php3.26 ▲0.0339.00 ▼3.23

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 79 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for TextOptimizer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,939 ▲20413.39 ▼0.961.77 ▼0.1742.64 ▼2.09
Dashboard /wp-admin2,339 ▲1545.12 ▲0.20106.06 ▲5.8949.50 ▲6.75
Posts /wp-admin/edit.php2,207 ▲1212.24 ▲0.1941.33 ▲5.6051.90 ▲20.17
Add New Post /wp-admin/post-new.php10,626 ▲9,09322.45 ▼0.97966.71 ▲291.6599.68 ▲38.79
Media Library /wp-admin/upload.php1,546 ▲1584.38 ▲0.22134.74 ▲31.5653.53 ▲10.07

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/textoptimizer/textoptimizer-meta.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/textoptimizer/textoptimizer.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (34 tag instead of maximum 10)
You can look at the official readme.txt

textoptimizer/textoptimizer.php Passed 13 tests

The main file in "TextOptimizer" v. 4.4.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
59 characters long description:
Optimize your text to rank higher in search engine results.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected12,966 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.02
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
39 PNG files occupy 0.42MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
i_extension/loading_1.png55.47KB18.73KB▼ 66.24%
i_extension/load-text_icon.png1.13KB0.95KB▼ 16.25%
i_extension/lightbulb_orange.png1.99KB1.39KB▼ 29.81%
i_extension/signin-icon.png1.92KB1.36KB▼ 29.37%
i_extension/circles_icon.png34.01KB13.76KB▼ 59.54%