84% wp-typography

Code Review | wp-Typography

WordPress plugin wp-Typography scored84%from 54 tests.

About plugin

  • Plugin page: wp-typography
  • Plugin version: 5.9.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.1
  • WordPress version: 6.3.1
  • First release: Jul 14, 2009
  • Latest release: Jan 22, 2023
  • Number of updates: 693
  • Update frequency: every 7.1 days
  • Top authors: kingjeffrey (68.54%)pputzer (31.6%)

Code review

54 tests

User reviews

65 reviews

Install metrics

20,000+ active /464,273 total downloads

Benchmarks

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.92MB] [CPU: ▼4.96ms] Passed 4 tests

This is a short check of server-side resources used by wp-Typography
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /11.44 ▲7.9869.59 ▲28.30
Dashboard /wp-admin4.34 ▲1.0057.37 ▼13.13
Posts /wp-admin/edit.php4.34 ▲0.9952.33 ▲1.24
Add New Post /wp-admin/post-new.php6.46 ▲0.5790.17 ▼20.67
Media Library /wp-admin/upload.php4.34 ▲1.1149.52 ▲12.73
wp-Typography /wp-admin/options-general.php?page=wp-typography4.3441.86

Server storage [IO: ▲12.97MB] [DB: ▲0.09MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 255 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
typo_installed_version
typo_configuration
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

wp-Typography: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.23 ▼0.121.66 ▲0.0641.71 ▼1.36
Dashboard /wp-admin2,193 ▲135.53 ▼0.1389.64 ▲0.1737.94 ▼4.54
Posts /wp-admin/edit.php2,104 ▲12.00 ▲0.0133.69 ▼0.6432.97 ▲1.06
Add New Post /wp-admin/post-new.php6,377 ▲4,85127.84 ▲6.78920.59 ▲184.0252.84 ▼0.79
Media Library /wp-admin/upload.php1,404 ▲44.15 ▼0.02112.36 ▲2.9746.98 ▼2.01
wp-Typography /wp-admin/options-general.php?page=wp-typography1,0392.1523.9138.64

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 8 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • typo_configuration
    • widget_recent-posts
    • widget_theysaidso_widget
    • typo_installed_version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
The following issues need your attention
  • 81× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'WP_Typography\\Components\\Plugin_Component' not found in wp-content/plugins/wp-typography/includes/wp-typography/components/class-public-interface.php:48
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Typography\\Vendor\\PHP_Typography\\Fixes\\Token_Fixes\\Abstract_Token_Fix' not found in wp-content/plugins/wp-typography/vendor-scoped/mundschenk-at/php-typography/src/fixes/token-fixes/class-wrap-emails-fix.php:41
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Typography\\Vendor\\Masterminds\\HTML5\\Parser\\StringInputStream' not found in wp-content/plugins/wp-typography/vendor-scoped/masterminds/html5/src/HTML5/Parser/FileInputStream.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Typography\\Vendor\\PHP_Typography\\Fixes\ode_Fixes\\Abstract_Node_Fix' not found in wp-content/plugins/wp-typography/vendor-scoped/mundschenk-at/php-typography/src/fixes/node-fixes/class-dewidow-fix.php:42
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Typography\\Vendor\\PHP_Typography\\Fixes\\Registry' not found in wp-content/plugins/wp-typography/vendor-scoped/mundschenk-at/php-typography/src/fixes/class-default-registry.php:40
    • > PHP Fatal error
      Uncaught Error: Interface 'WP_Typography\\Vendor\\PHP_Typography\\Settings\\Quotes' not found in wp-content/plugins/wp-typography/vendor-scoped/mundschenk-at/php-typography/src/settings/class-simple-quotes.php:36
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Typography\\Vendor\\PHP_Typography\\Fixes\ode_Fixes\\Abstract_Node_Fix' not found in wp-content/plugins/wp-typography/vendor-scoped/mundschenk-at/php-typography/src/fixes/node-fixes/class-smart-diacritics-fix.php:38
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Typography\\Vendor\\PHP_Typography\\Fixes\\Token_Fixes\\Abstract_Token_Fix' not found in wp-content/plugins/wp-typography/vendor-scoped/mundschenk-at/php-typography/src/fixes/token-fixes/class-wrap-hard-hyphens-fix.php:40
    • > PHP Fatal error
      Uncaught Error: Class 'PHP_Typography\\Fixes\ode_Fixes\\Abstract_Node_Fix' not found in wp-content/plugins/wp-typography/includes/wp-typography/typography/class-custom-node-fix.php:40
    • > PHP Fatal error
      Uncaught Error: Interface 'WP_Typography\\Settings\\Locale_Settings' not found in wp-content/plugins/wp-typography/includes/wp-typography/settings/class-abstract-locale-settings.php:41

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

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
Please fix the following attributes:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: A description for screenshot #5 is missing in wp-typography/assets to your readme.txt
Please take inspiration from this readme.txt

wp-typography/wp-typography.php Passed 13 tests

This is the main PHP file of "wp-Typography" version 5.9.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
111 characters long description:
Improve your web typography with: hyphenation, space control, intelligent character replacement, and CSS hooks.

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
Everything looks great! No dangerous files found in this plugin468,086 lines of code in 246 files:
LanguageFilesBlank linesComment linesLines of code
JSON7900456,277
PHP14291612,31110,032
Markdown1058101,527
JavaScript1049285188
CSS5152062

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity9.54
▷ Minimum class complexity1.00
▷ Maximum class complexity142.00
Average method complexity2.55
▷ Minimum method complexity1.00
▷ Maximum method complexity62.00
Code structure
Namespaces26
Interfaces13
Traits0
Classes116
▷ Abstract classes2017.24%
▷ Concrete classes9682.76%
▷ Final classes44.17%
Methods749
▷ Static methods9612.82%
▷ Public methods56975.97%
▷ Protected methods14319.09%
▷ Private methods374.94%
Functions28
▷ Named functions13.57%
▷ Anonymous functions2796.43%
Constants429
▷ Global constants20.47%
▷ Class constants42799.53%
▷ Public constants39993.44%

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