78% typer-core

Code Review | Typer Core

WordPress plugin Typer Core scored78%from 54 tests.

About plugin

  • Plugin page: typer-core
  • Plugin version: 1.9.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.2
  • WordPress version: 6.3.1
  • First release: Dec 4, 2019
  • Latest release: Jul 5, 2023
  • Number of updates: 21
  • Update frequency: every 62.7 days
  • Top authors: seventhqueen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /10,427 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲3.77MB] [CPU: ▲14.05ms] Passed 4 tests

Server-side resources used by Typer Core
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /8.47 ▲5.0157.21 ▲14.08
Dashboard /wp-admin7.12 ▲3.8268.82 ▲16.96
Posts /wp-admin/edit.php7.15 ▲3.8073.68 ▲27.80
Add New Post /wp-admin/post-new.php9.61 ▲3.7298.05 ▲3.10
Media Library /wp-admin/upload.php6.96 ▲3.7454.73 ▲22.04

Server storage [IO: ▲13.15MB] [DB: ▲0.24MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 877 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Typer Core
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,952 ▲16618.52 ▲3.891.66 ▼0.4040.70 ▼3.06
Dashboard /wp-admin2,361 ▲1819.02 ▲3.42189.39 ▲102.3638.71 ▼3.69
Posts /wp-admin/edit.php2,301 ▲1986.21 ▲4.1993.45 ▲49.0134.49 ▼7.25
Add New Post /wp-admin/post-new.php1,589 ▲5425.24 ▲7.11779.84 ▲97.7966.71 ▼2.13
Media Library /wp-admin/upload.php1,435 ▲326.70 ▲2.52114.49 ▲15.0841.22 ▼3.16

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Please fix the following items
  • 8× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/typer-core/inc/customizr/controls/views/code.php
    • > /wp-content/plugins/typer-core/inc/carbon-fields/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
    • > /wp-content/plugins/typer-core/inc/customizr/controls/views/color.php
    • > /wp-content/plugins/typer-core/inc/customizr/controls/views/select.php
    • > /wp-content/plugins/typer-core/inc/customizr/controls/views/generic.php
    • > /wp-content/plugins/typer-core/inc/customizr/controls/views/textarea.php
    • > /wp-content/plugins/typer-core/inc/customizr/controls/views/number.php
    • > /wp-content/plugins/typer-core/inc/customizr/controls/views/radio.php
  • 280× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/typer-core/inc/carbon-fields/vendor/composer/installers/src/Composer/Installers/CockpitInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/typer-core/inc/carbon-fields/vendor/htmlburger/carbon-fields/core/Container/Term_Meta_Container.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki_Field' not found in wp-content/plugins/typer-core/inc/customizr/field/class-kirki-field-sortable.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Textarea_Field' not found in wp-content/plugins/typer-core/inc/carbon-fields/vendor/htmlburger/carbon-fields/core/Field/Scripts_Field.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/typer-core/inc/carbon-fields/vendor/htmlburger/carbon-fields/core/Field/Predefined_Options_Field.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki_Field_Radio' not found in wp-content/plugins/typer-core/inc/customizr/field/class-kirki-field-radio-buttonset.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/typer-core/inc/carbon-fields/vendor/composer/installers/src/Composer/Installers/DokuWikiInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Term_Condition' not found in wp-content/plugins/typer-core/inc/carbon-fields/vendor/htmlburger/carbon-fields/core/Container/Condition/Term_Parent_Condition.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/typer-core/inc/carbon-fields/vendor/composer/installers/src/Composer/Installers/VgmcpInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/typer-core/inc/carbon-fields/vendor/htmlburger/carbon-fields/core/Container/Condition/Term_Level_Condition.php:10

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)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: elementor theme, typer theme, blog theme

typer-core/loader.php 92% from 13 tests

The main file in "Typer Core" v. 1.9.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("typer-core.php" instead of "loader.php")

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
Everything looks great! No dangerous files found in this plugin71,208 lines of code in 806 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript28811,30414,29632,144
PHP4075,55215,47521,844
JSON8008,935
CSS153301,1643,615
PO File288981,1112,411
Sass5036831,894
SVG200139
YAML4370138
Markdown324068
XML10020

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity8.66
▷ Minimum class complexity1.00
▷ Maximum class complexity315.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces32
Interfaces5
Traits0
Classes372
▷ Abstract classes133.49%
▷ Concrete classes35996.51%
▷ Final classes133.62%
Methods1,633
▷ Static methods21413.10%
▷ Public methods1,19773.30%
▷ Protected methods39023.88%
▷ Private methods462.82%
Functions146
▷ Named functions3423.29%
▷ Anonymous functions11276.71%
Constants46
▷ Global constants1941.30%
▷ Class constants2758.70%
▷ Public constants27100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/customizr/assets/images/1c.png0.77KB0.15KB▼ 80.03%
inc/customizr/assets/images/kirki-bottom.png1.51KB1.09KB▼ 27.89%
inc/customizr/assets/images/jquery.fs.stepper-arrows.png0.30KB0.18KB▼ 40.52%
inc/customizr/assets/images/3cm.png0.91KB0.25KB▼ 72.00%
inc/customizr/assets/images/3cr.png0.91KB0.32KB▼ 64.81%