84% wpuntexturize

Code Review | wpuntexturize

WordPress plugin wpuntexturize scored84%from 54 tests.

About plugin

  • Plugin page: wpuntexturize
  • Plugin version: 2.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 1.5-6.3
  • WordPress version: 6.3.1
  • First release: May 28, 2009
  • Latest release: Aug 16, 2023
  • Number of updates: 30
  • Update frequency: every 173.1 days
  • Top authors: coffee2code (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

900+ active /17,062 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.63ms] Passed 4 tests

This is a short check of server-side resources used by wpuntexturize
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0433.90 ▼2.27
Dashboard /wp-admin3.35 ▲0.0544.94 ▼2.56
Posts /wp-admin/edit.php3.40 ▲0.0548.53 ▲2.30
Add New Post /wp-admin/post-new.php5.93 ▲0.0596.03 ▼13.79
Media Library /wp-admin/upload.php3.27 ▲0.0534.42 ▲0.09

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

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

Browser metrics Passed 4 tests

wpuntexturize: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.20 ▼1.051.89 ▲0.3340.68 ▲1.85
Dashboard /wp-admin2,206 ▲154.86 ▼0.03109.43 ▼1.0044.54 ▲4.15
Posts /wp-admin/edit.php2,089 ▼32.06 ▲0.0439.84 ▲4.9134.58 ▲4.36
Add New Post /wp-admin/post-new.php1,520 ▼823.32 ▲5.12604.68 ▼20.9644.10 ▼8.45
Media Library /wp-admin/upload.php1,388 ▼34.22 ▲0.0796.18 ▼8.7041.34 ▼3.89

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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 items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wpuntexturize/tests/phpunit/bootstrap.php

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: curly, post, substitutions, quotes, wptexturize...

wpuntexturize/wpuntexturize.php 92% from 13 tests

The primary PHP file in "wpuntexturize" version 2.2.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 192 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin821 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP4165236487
Markdown4910294
Bourne Shell16221
XML10014
JSON1005

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity4.50
▷ Minimum class complexity3.00
▷ Maximum class complexity6.00
Average method complexity1.12
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods61
▷ Static methods1626.23%
▷ Public methods61100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions240.00%
▷ Anonymous functions360.00%
Constants3
▷ Global constants266.67%
▷ Class constants133.33%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin